/* ============================================================
   HEDROG skin for FOSSBilling (huraga theme)
   Same design language as hedrog.com:
   ink #0B0F14 · slate #1F2933 · blue #2563EB · cloud #E5E7EB
   Space Grotesk (display) + Inter (body), pill buttons,
   rounded-2xl cards, subtle white/10 borders.
   ============================================================ */

:root,
[data-bs-theme="dark"] {
  --bs-body-bg: #0b0f14;
  --bs-body-bg-rgb: 11, 15, 20;
  --bs-body-color: #e5e7eb;
  --bs-emphasis-color: #ffffff;
  --bs-secondary-color: #9aa3af;
  --bs-secondary-bg: #1f2933;
  --bs-tertiary-bg: #161b21;
  --bs-border-color: rgba(255, 255, 255, 0.08);
  --bs-border-radius: 0.75rem;
  --bs-border-radius-sm: 0.5rem;
  --bs-border-radius-lg: 1rem;
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: #5b8dfa;
  --bs-link-hover-color: #7ea1ff;
  --bs-font-sans-serif: 'Satoshi', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: 'Satoshi', system-ui, sans-serif;
  background:
    radial-gradient(circle at 85% -5%, rgba(37, 99, 235, 0.12), transparent 50%),
    #0b0f14 !important;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.btn,
.card-title,
.accordion-button {
  font-family: 'Satoshi', system-ui, sans-serif;
}

/* ---------- Header / navbar ---------- */
.navbar,
header.navbar,
nav.navbar {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.navbar .nav-link {
  color: rgba(229, 231, 235, 0.7) !important;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffffff !important;
}

.navbar-brand img {
  max-height: 34px;
}

/* ---------- Buttons: pill-shaped like hedrog.com ---------- */
.btn {
  border-radius: 999px !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

.btn-primary {
  background-color: #2563eb;
  border-color: #2563eb;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1d4fd1;
  border-color: #1d4fd1;
}

.btn-dark,
.btn-secondary {
  background-color: #1f2933;
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-dark:hover,
.btn-secondary:hover {
  background-color: #2a3542;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-outline-primary {
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-outline-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.btn-link {
  color: #5b8dfa;
}

a {
  color: #5b8dfa;
}

/* ---------- Cards, accordions, containers ---------- */
.card,
.accordion-item,
.list-group-item,
.modal-content,
.dropdown-menu,
.table-responsive {
  background-color: rgba(19, 24, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.card,
.modal-content {
  border-radius: 1rem;
  overflow: hidden;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
}

/* Accordion (checkout steps): separated floating cards */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: transparent;
}

.accordion-item {
  border-radius: 1rem !important;
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.accordion-button {
  background-color: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.1rem 1.4rem;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(37, 99, 235, 0.1);
  color: #fff;
}

.accordion-button::after {
  filter: invert(1) brightness(1.4);
}

.accordion-body {
  padding: 1.4rem;
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
  background-color: #0f141a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  color: #e5e7eb;
  padding: 0.6rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  background-color: #0f141a;
  border-color: #2563eb;
  color: #e5e7eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.22);
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .form-select {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

::placeholder {
  color: #6b7280 !important;
}

/* form-floating duplicate placeholder/label overlap fix */
.form-floating > .form-control::placeholder {
  color: transparent !important;
}

.form-check-input {
  background-color: #0f141a;
  border-color: rgba(255, 255, 255, 0.25);
}

.form-check-input:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

/* ---------- Nav pills / tabs (Register | Transfer) ---------- */
.nav-pills .nav-link {
  border-radius: 999px;
  color: rgba(229, 231, 235, 0.65);
}

.nav-pills .nav-link.active {
  background-color: #2563eb;
  color: #fff;
}

.nav-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-tabs .nav-link {
  color: rgba(229, 231, 235, 0.65);
  border: none;
  border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
  background: transparent;
  color: #fff;
  border-bottom-color: #2563eb;
}

/* ---------- Sidebar (client dashboard) ---------- */
.list-group-flush > .list-group-item {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.05) !important;
  color: rgba(229, 231, 235, 0.75);
  padding: 0.7rem 1rem;
  transition: color 0.15s, background 0.15s;
}

.list-group-flush > .list-group-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.list-group-flush > .list-group-item.active {
  background: rgba(37, 99, 235, 0.12);
  color: #fff;
  border-left: 2px solid #2563eb;
}

/* ---------- Tables ---------- */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: #e5e7eb;
  --bs-table-border-color: rgba(255, 255, 255, 0.06);
}

.table thead th {
  color: rgba(229, 231, 235, 0.5);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Badges ---------- */
.badge {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: rgba(229, 231, 235, 0.55);
}

.breadcrumb-item.active {
  color: rgba(229, 231, 235, 0.85);
}

/* ---------- Footer ---------- */
footer,
.footer {
  background-color: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(229, 231, 235, 0.45);
  font-size: 0.85rem;
}

/* ---------- Alerts ---------- */
.alert-info {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #c7d7fd;
  border-radius: 0.9rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #bbf7d0;
  border-radius: 0.9rem;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fecaca;
  border-radius: 0.9rem;
}

/* ---------- Hide non-brand chrome ---------- */
li.nav-item:has(.js-locale-selector),
li.nav-item:has(.js-theme-toggler) {
  display: none !important;
}
