/* ==========================================================================
   SWITCH SMS GATEWAY - MODERN THEME SYSTEM
   Palette: Modern Indigo, Deep Slate, Electric Violet & Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --switch-primary: #4f46e5;
  --switch-primary-hover: #4338ca;
  --switch-primary-light: #eef2ff;
  --switch-secondary: #64748b;
  --switch-success: #10b981;
  --switch-danger: #ef4444;
  --switch-warning: #f59e0b;
  --switch-info: #06b6d4;
  
  --switch-bg-dark: #0f172a;
  --switch-bg-card: #ffffff;
  --switch-border: #e2e8f0;
  --switch-text-main: #1e293b;
  --switch-text-muted: #64748b;
  
  --switch-gradient-sidebar: linear-gradient(180deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  --switch-gradient-brand: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
  --switch-gradient-auth: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
  
  --switch-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --switch-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --switch-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --switch-shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);
  --switch-radius: 12px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: var(--switch-text-main);
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

/* Sidebar Modernization */
.sidebar.bg-gradient-primary {
  background: var(--switch-gradient-sidebar) !important;
  background-size: cover;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}

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

.sidebar .sidebar-brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar .sidebar-brand-text sup {
  background: rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(165, 180, 252, 0.4);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  color: #c7d2fe;
}

.sidebar .nav-item .nav-link {
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  margin: 0.2rem 0.75rem;
  width: auto;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #cbd5e1 !important;
}

.sidebar .nav-item .nav-link i {
  font-size: 1rem;
  margin-right: 0.75rem;
  width: 1.25rem;
  text-align: center;
  color: #818cf8;
  transition: transform 0.2s ease;
}

.sidebar .nav-item .nav-link:hover,
.sidebar .nav-item.active .nav-link {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  transform: translateX(4px);
}

.sidebar .nav-item .nav-link:hover i,
.sidebar .nav-item.active .nav-link i {
  color: #ffffff;
  transform: scale(1.15);
}

.sidebar hr.sidebar-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0.75rem 1rem;
}

/* Cards & Metric Blocks */
.card {
  border: 1px solid var(--switch-border);
  border-radius: var(--switch-radius);
  box-shadow: var(--switch-shadow-md);
  transition: all 0.25s ease;
  background-color: #ffffff;
}

.card:hover {
  box-shadow: var(--switch-shadow-lg);
}

.card.bg-primary {
  background: var(--switch-gradient-brand) !important;
  border: none;
  box-shadow: var(--switch-shadow-glow);
}

.card.bg-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: none;
}

.card.bg-secondary {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons Modernization */
.btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--switch-primary) !important;
  border-color: var(--switch-primary) !important;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background-color: var(--switch-primary-hover) !important;
  border-color: var(--switch-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.4);
}

/* Auth Pages (Login & Reset) */
body.bg-gradient-primary {
  background: var(--switch-gradient-auth) !important;
  min-height: 100vh;
}

.auth-card {
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: #ffffff;
}

.auth-box {
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.auth-child img {
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

/* Footer Styling */
footer.sticky-footer {
  background: #ffffff !important;
  border-top: 1px solid var(--switch-border);
  padding: 1.5rem 0;
  font-weight: 500;
  color: var(--switch-text-muted);
}

/* Badges & Tables */
.badge {
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.45em 0.75em;
  border-radius: 6px;
}

.table th {
  font-weight: 700;
  color: #475569;
  background-color: #f8fafc;
  border-bottom: 2px solid var(--switch-border);
}
