/* public/assets/css/theme.css */

/* ---- Brand tokens ---- */
:root{
  --brand: #0ea5e9;        /* sky blue */
  --brand-600: #0284c7;    /* deeper sky */
  --brand-700: #0369a1;
  --brand-soft: rgba(14,165,233,.14);

  --bg: #f7fbff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e6eef7;
}

/* ---- Base ---- */
body{
  background: var(--bg);
  color: var(--text);
}

a{ color: var(--brand); }
a:hover{ color: var(--brand-700); }

.text-muted{ color: var(--muted) !important; }

.card{
  background: var(--card);
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
}

.card.shadow-sm{
  box-shadow: 0 12px 30px rgba(2, 8, 23, .06) !important;
}

hr{ border-top: 1px solid var(--border); }

/* ---- Navbar: gradient sky ---- */
.navbar{
  background: linear-gradient(90deg, var(--brand), var(--brand-600)) !important;
}
.navbar .navbar-brand,
.navbar .nav-link{
  color: #fff !important;
}
.navbar .nav-link:hover{
  opacity: .92;
}
.navbar .dropdown-menu{
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* ---- Buttons ---- */
.btn-primary{
  background: var(--brand) !important;
  border-color: var(--brand) !important;
}
.btn-primary:hover{
  background: var(--brand-600) !important;
  border-color: var(--brand-600) !important;
}
.btn-outline-primary{
  color: var(--brand) !important;
  border-color: var(--brand) !important;
}
.btn-outline-primary:hover{
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}

/* ---- Badges / pills ---- */
.badge.bg-primary{ background: var(--brand) !important; }
.badge.bg-info{ background: var(--brand-soft) !important; color: var(--brand-700) !important; border: 1px solid rgba(14,165,233,.25); }

/* ---- Forms ---- */
.form-control, .form-select{
  border-radius: 12px;
  border-color: var(--border);
}
.form-control:focus, .form-select:focus{
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 .2rem var(--brand-soft) !important;
}

/* ---- Tables ---- */
.table{
  --bs-table-bg: transparent;
}
.table thead th{
  color: var(--muted);
  font-weight: 600;
}
.table > :not(caption) > * > *{
  border-bottom-color: var(--border);
}

/* ---- Progress ---- */
.progress{
  border-radius: 999px;
  background: rgba(2,132,199,.10);
}
.progress-bar{
  background: var(--brand) !important;
}

/* ---- Alerts ---- */
.alert{
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* ---- Footer ---- */
footer{
  background: #fff;
}

/* ---- Mobile bottom nav ---- */
.navbar.fixed-bottom{
  background: #fff !important;
}

/* ---- Optional dark mode support (your toggle already exists) ---- */
body.dark-mode{
  --bg: #071827;
  --card: #0b2236;
  --text: #e2e8f0;
  --muted: #9fb0c2;
  --border: rgba(148,163,184,.18);
  background: var(--bg);
}
body.dark-mode footer{ background: #0b2236; }
body.dark-mode .navbar.fixed-bottom{ background: #0b2236 !important; }
body.dark-mode .table{ color: var(--text); }
body.dark-mode .dropdown-menu{ background: #0b2236; }

.brand-chip{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.35rem .6rem;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
}
.brand-dot{
  width:10px; height:10px; border-radius:999px;
  background:#fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.18);
}

.table-soft thead th{ background: rgba(14,165,233,.08); }
.pill{ display:inline-flex; align-items:center; gap:.35rem; padding:.25rem .6rem; border-radius:999px; font-size:.82rem; border:1px solid var(--border); }
.pill-blue{ background: rgba(14,165,233,.12); color: var(--brand-700); border-color: rgba(14,165,233,.25); }
.pill-gray{ background: rgba(100,116,139,.10); color: var(--muted); }

.brand-chip{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.35rem .6rem;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}
.brand-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#ffc107;
  display:inline-block;
}
.navbar .nav-link { opacity: .92; }
.navbar .nav-link:hover { opacity: 1; }
