/* ============================================================
   Call Stat Admin — assets/css/style.css
   ============================================================ */

:root {
  --primary:   #2563eb;
  --primary-dk:#1d4ed8;
  --sidebar-w: 230px;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-600:  #475569;
  --gray-800:  #1e293b;
}

/* ---- Base ---- */
body {
  background: var(--gray-100);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  color: var(--gray-800);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Navbar ---- */
.navbar {
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.navbar-brand { font-size: 1.15rem; letter-spacing: .3px; }

/* ---- Wrapper ---- */
.wrapper { min-height: calc(100vh - 56px - 40px); }

/* ---- Main content ---- */
.main-content { min-width: 0; }

/* ---- Cards ---- */
.card {
  border: 1px solid var(--gray-200);
  border-radius: .6rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.card-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
  padding: .75rem 1rem;
}

/* ---- Stat cards ---- */
.stat-card {
  border-radius: .6rem;
  color: #fff;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.stat-card .stat-icon {
  font-size: 2.2rem;
  opacity: .85;
}
.stat-card .stat-val { font-size: 1.9rem; font-weight: 700; line-height: 1; }
.stat-card .stat-lbl { font-size: .8rem; opacity: .85; }
.bg-blue    { background: linear-gradient(135deg,#2563eb,#3b82f6); }
.bg-teal    { background: linear-gradient(135deg,#0d9488,#14b8a6); }
.bg-orange  { background: linear-gradient(135deg,#ea580c,#f97316); }
.bg-purple  { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.bg-rose    { background: linear-gradient(135deg,#e11d48,#f43f5e); }

/* ---- Tables ---- */
.table-responsive { border-radius: .5rem; overflow: hidden; }
.table { margin-bottom: 0; }
.table thead th {
  background: var(--gray-100);
  border-bottom: 2px solid var(--gray-200);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-600);
  white-space: nowrap;
}
.table tbody tr:hover { background: var(--gray-50); }
.table-actions .btn { padding: .2rem .5rem; font-size: .8rem; }

/* ---- Page heading ---- */
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.page-heading h4 {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-800);
}

/* ---- Forms ---- */
.form-label { font-weight: 500; font-size: .87rem; }
.form-control, .form-select {
  border-color: var(--gray-200);
  font-size: .88rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(37,99,235,.15);
}
.form-section-title {
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: .3rem;
  margin-bottom: 1rem;
}

/* ---- Login page ---- */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  background: #fff;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.login-box .brand-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* ---- Badges ---- */
.badge { font-size: .72rem; }

/* ---- Footer ---- */
.footer { margin-top: auto; }

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
  .stat-card .stat-val { font-size: 1.4rem; }
  .page-heading h4 { font-size: 1rem; }
}


.dropdown-item.active, .dropdown-item:active{
  color: #fff !important;
}