@layer utilities {
  .scrollbar-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  .scrollbar-thin::-webkit-scrollbar-track {
    background: #141722;
  }
  .scrollbar-thin::-webkit-scrollbar-thumb {
    background: #2c3148;
    border-radius: 9999px;
  }
  .scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #3d4464;
  }
}

/* Dark Obsidian Design System */
body {
  background-color: #131520;
  color: #e2e8f0;
  -webkit-font-smoothing: antialiased;
}

.dm-card {
  background-color: #181b28;
  border: 1px solid #25293d;
  border-radius: 3px;
}

.dm-card-danger {
  background-color: #181b28;
  border: 1px solid #d94366;
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(217, 67, 102, 0.14);
}

.dm-surface {
  background-color: #141722;
  border: 1px solid #25293d;
  border-radius: 3px;
}

.dm-gradient {
  background: linear-gradient(155deg, #ab34ff 0%, #6f55fa 50%, #3b82f6 100%);
  border-radius: 3px;
  box-shadow: 0 12px 32px rgba(111, 85, 250, 0.22);
}

.dm-input,
.dm-select {
  background-color: #131520;
  border: 1px solid #25293d;
  border-radius: 3px;
  color: #f1f5f9;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dm-input::placeholder {
  color: #64748b;
}

.dm-input:focus,
.dm-select:focus {
  outline: none;
  border-color: #6f55fa;
  box-shadow: 0 0 0 2px rgba(111, 85, 250, 0.25);
}

.dm-btn-green {
  background-color: #4cd964;
  color: #0c2614;
  font-weight: 700;
  border-radius: 3px;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.dm-btn-green:hover {
  background-color: #3ec956;
}

.dm-btn-blue {
  background-color: #2185ff;
  color: #ffffff;
  font-weight: 600;
  border-radius: 3px;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.dm-btn-blue:hover {
  background-color: #1a73e8;
}

.dm-btn-danger {
  background-color: #d94366;
  color: #ffffff;
  font-weight: 600;
  border-radius: 3px;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.dm-btn-danger:hover {
  background-color: #c53355;
}

.dm-btn-ghost {
  background-color: #1f2336;
  border: 1px solid #2e3450;
  color: #cbd5e1;
  font-weight: 500;
  border-radius: 3px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dm-btn-ghost:hover {
  background-color: #272c43;
  border-color: #3d4466;
  color: #ffffff;
}

.terminal-log {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Smooth HTMX indicator */
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline-flex;
}
