:root {
  --sidebar-width: 260px;
  --brand-navy: #0b3a5b;
  --brand-teal: #0d7377;
  --brand-sky: #14919b;
  --brand-soft: #e8f4f5;
  --brand-accent: #c45c26;
  --surface: #f4f7f8;
  --text: #1c2b36;
}

* { box-sizing: border-box; }

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--text);
  min-height: 100vh;
}

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--brand-navy) 0%, #082c45 100%);
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease;
}

.sidebar-brand {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-brand .brand-mark {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  line-height: 1.3;
}

.sidebar-brand .brand-sub {
  font-size: .75rem;
  opacity: .7;
  margin-top: .2rem;
}

.sidebar-nav { padding: .75rem 0; flex: 1; overflow-y: auto; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.25rem;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .95rem;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-left-color: var(--brand-sky);
}

.sidebar-nav a i { font-size: 1.1rem; width: 1.25rem; text-align: center; }

.main-wrap {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #e2e8eb;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.content-area { padding: 1.5rem; }

.page-title {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 650;
  font-size: 1.45rem;
  margin: 0;
}

.breadcrumb { background: transparent; padding: 0; margin: .35rem 0 0; font-size: .85rem; }

.stat-card {
  background: #fff;
  border: 0;
  border-radius: .75rem;
  box-shadow: 0 1px 3px rgba(11,58,91,.08);
  overflow: hidden;
  height: 100%;
}

.stat-card .card-body { padding: 1.25rem; }
.stat-card .stat-label { color: #5b6b76; font-size: .85rem; margin-bottom: .35rem; }
.stat-card .stat-value { font-size: 1.85rem; font-weight: 700; color: var(--brand-navy); line-height: 1; }
.stat-card .stat-icon {
  width: 48px; height: 48px; border-radius: .65rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
}
.stat-icon.states { background: #e7f1ff; color: #1d4ed8; }
.stat-icon.districts { background: #e8f8f0; color: #15803d; }
.stat-icon.hubs { background: #fff4e8; color: #c2410c; }
.stat-icon.pincodes { background: #f3e8ff; color: #7e22ce; }
.stat-icon.today { background: var(--brand-soft); color: var(--brand-teal); }

.panel {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 1px 3px rgba(11,58,91,.08);
  padding: 1.25rem;
}

.btn-brand {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: #fff;
}
.btn-brand:hover { background: var(--brand-sky); border-color: var(--brand-sky); color: #fff; }

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(20,145,155,.25), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(11,58,91,.3), transparent 45%),
    linear-gradient(135deg, #0b3a5b 0%, #0d7377 55%, #14919b 100%);
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.login-card h1 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: .25rem;
}

.badge-status-active { background: #dcfce7; color: #166534; }
.badge-status-inactive { background: #fee2e2; color: #991b1b; }

.toast-container { z-index: 2000; }

.table thead th {
  background: #f0f5f7;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #4a5c68;
  border-bottom-width: 1px;
}

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-wrap { margin-left: 0; }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1025;
  }
  .sidebar-backdrop.show { display: block; }
}
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {

    height: 38px;

    border: 1px solid #ced4da;

    border-radius: 6px;

    display: flex;

    align-items: center;

}

.select2-selection__rendered {

    line-height: 36px !important;

    padding-left: 12px !important;

}

.select2-selection__arrow {

    height: 36px !important;

}

.select2-search__field {

    height: 34px;

    font-size: 14px;

}
/* ==========================
   Login Company Branding
========================== */

.company-name{
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 36px;
    font-weight: 800;          /* Extra Bold */
    color: #0D8F86;            /* Bootstrap Green */
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.company-tagline{
    color: #0d7377;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.top-marquee{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0b7a75;
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
    z-index: 9999;
}
