:root {
  /* Brand Palette — Light Theme */
  --brand-navy: #0b2a4a;
  --brand-navy-dark: #06192d;
  --brand-cyan: #00a8e8;
  --brand-cyan-light: #e0f2fe;
  --brand-cyan-hover: #0090c9;

  --brand: var(--brand-navy);
  --brand-dark: var(--brand-navy-dark);
  --accent: var(--brand-cyan);

  /* Light Theme Surfaces */
  --bg: #eef6fc;
  --sidebar-bg: #ffffff;
  --sidebar-border: #dce8f0;
  --card-bg: #ffffff;
  --text-main: #0b2a4a;
  --text-muted: #5a6b7c;
  --border-color: #dce8f0;
  --topbar-bg: #ffffff;
}

body { 
  background: var(--bg); 
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
  color: var(--text-main);
}

.app-wrapper { min-height: 100vh; }

/* ── Sidebar — Premium Dark ── */
.sidebar {
  width: 250px;
  background: linear-gradient(180deg, #06192d 0%, #0b2a4a 60%, #0d3360 100%);
  color: #fff;
  min-height: 100vh;
  position: sticky;
  top: 0;
  box-shadow: 4px 0 24px rgba(6, 25, 45, 0.25);
  border-right: none;
}

/* ── Sidebar Brand: premium logo card ── */
.sidebar-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.15);
}

.sidebar-logo-wrap {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 168, 232, 0.35), 0 2px 6px rgba(0,0,0,0.2);
  padding: 5px;
}

.sidebar-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.sidebar-brand-text {
  flex: 1;
  min-width: 0;
}

.sidebar-brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  margin-top: 1px;
  letter-spacing: 0.3px;
}

/* ── Nav Links ── */
.sidebar .nav-link { 
  color: rgba(255,255,255,0.65); 
  padding: 10px 20px; 
  border-left: 3px solid transparent; 
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.18s ease;
  border-radius: 0;
  margin: 1px 0;
}

.sidebar .nav-link i { 
  margin-right: 10px; 
  width: 18px; 
  display: inline-block; 
  color: rgba(0, 168, 232, 0.7);
  transition: color 0.18s ease;
  font-size: 0.95rem;
}

.sidebar .nav-link:hover { 
  background: rgba(0, 168, 232, 0.12);
  border-left-color: rgba(0, 168, 232, 0.6);
  color: #ffffff;
  padding-left: 24px;
}

.sidebar .nav-link:hover i {
  color: #00a8e8;
}

.sidebar .nav-link.active { 
  background: linear-gradient(90deg, rgba(0, 168, 232, 0.22) 0%, rgba(0, 168, 232, 0.04) 100%);
  border-left-color: #00a8e8; 
  color: #ffffff; 
  font-weight: 700;
}

.sidebar .nav-link.active i {
  color: #00a8e8;
}

/* ── App Topbar ── */
.app-main { min-width: 0; }
.topbar { 
  height: 64px; 
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border-color); 
  position: sticky; 
  top: 0; 
  z-index: 10; 
  box-shadow: 0 2px 8px rgba(11, 42, 74, 0.05);
}

.topbar h5 {
  color: var(--brand-navy);
  font-weight: 700;
}

/* ── Cards & Stat Cards ── */
.stat-card { 
  border-radius: 14px; 
  border: 1px solid var(--border-color); 
  background: var(--card-bg);
  box-shadow: 0 4px 15px rgba(11, 42, 74, 0.05); 
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 168, 232, 0.12);
}

.stat-card .stat-value { 
  font-size: 1.6rem; 
  font-weight: 700; 
  color: var(--brand-navy);
}

.stat-card .stat-icon { 
  width: 48px; 
  height: 48px; 
  border-radius: 12px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 1.4rem; 
  background: var(--brand-cyan-light);
  color: var(--brand-cyan);
}

.card { 
  border-radius: 14px; 
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  box-shadow: 0 2px 12px rgba(11, 42, 74, 0.04); 
}

/* ── Tables ── */
.table thead th { 
  font-size: .78rem; 
  text-transform: uppercase; 
  color: var(--brand-navy); 
  background-color: #eef6fc;
  border-bottom: 1px solid var(--border-color); 
  letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
  background-color: #f4f9fd;
}

/* ── Badge Status ── */
.badge-status { 
  font-size: .72rem; 
  padding: .4em .75em; 
  border-radius: 20px; 
  font-weight: 600;
}

/* ── Buttons ── */
.btn-primary {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--brand-cyan-hover);
  border-color: var(--brand-cyan-hover);
  color: #ffffff;
}

.btn-outline-primary {
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}

.btn-outline-primary:hover {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.text-primary {
  color: var(--brand-navy) !important;
}

.text-accent {
  color: var(--brand-cyan) !important;
}

/* Authentication Page Redesign */
body.login-page {
  background: radial-gradient(ellipse at center, #eef6fc 0%, #dceef8 50%, #c8e1f2 100%) !important;
  min-height: 100vh;
  margin: 0;
}

.login-wrapper { 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center; 
  background: transparent;
  padding: 24px;
}

.login-card { 
  width: 100%;
  max-width: 440px; 
  border-radius: 24px; 
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(11, 42, 74, 0.08), 0 4px 16px rgba(0, 0, 0, 0.02);
  padding: 40px 36px;
}

.login-card .brand-logo-img {
  max-height: 65px;
  width: auto;
  object-fit: contain;
}

.login-info-box {
  background-color: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 0.82rem;
  border-radius: 12px;
}

.btn-login {
  background-color: #0b2a4a;
  border-color: #0b2a4a;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-login:hover, .btn-login:focus, .btn-login:active {
  background-color: #0090c9;
  border-color: #0090c9;
  color: #ffffff;
}

.login-input-group .input-group-text {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.login-input-group .form-control {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #0b2a4a;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  font-size: 0.95rem;
}

.login-input-group .form-control:focus {
  background-color: #ffffff;
  border-color: #00a8e8;
  box-shadow: 0 0 0 0.2rem rgba(0, 168, 232, 0.15);
}

/* Custom Feature Buttons & Progress Bar */
.btn-whatsapp {
  background-color: #25d366;
  border-color: #25d366;
  color: #ffffff;
  font-weight: 600;
}
.btn-whatsapp:hover, .btn-whatsapp:focus, .btn-whatsapp:active {
  background-color: #20bd5a;
  border-color: #20bd5a;
  color: #ffffff;
}

.btn-upi {
  background-color: #5f259f;
  border-color: #5f259f;
  color: #ffffff;
  font-weight: 600;
}
.btn-upi:hover, .btn-upi:focus, .btn-upi:active {
  background-color: #4d1c83;
  border-color: #4d1c83;
  color: #ffffff;
}

.target-progress-bar {
  height: 14px;
  border-radius: 8px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.target-progress-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-cyan) 100%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.upi-qr-card {
  border: 2px dashed var(--brand-cyan);
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
  display: inline-block;
  text-align: center;
}

@media (max-width: 767px) {
  .sidebar { position: fixed; left: -250px; z-index: 1050; transition: left .2s; }
  .sidebar.show { left: 0; }
}

@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .app-main { width: 100% !important; }
  body { background: #fff; }
}

/* ── Custom Confirm Modal Premium Styling ── */
#customConfirmModal .modal-content {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(11, 42, 74, 0.15) !important;
}
#customConfirmModal .modal-header {
  border-bottom: none;
}
#customConfirmModal .modal-footer {
  border-top: none;
}
#customConfirmModal .btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 8px 24px;
}
#customConfirmIconContainer i {
  animation: pulseIcon 2.5s infinite ease-in-out;
}
@keyframes pulseIcon {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}



