@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary: #3366ff;
  --primary-dark: #0043a9;
  --primary-light: #3380f4;
  --secondary: #425466;
  --error: #ff413a;
  --warning: #f4a100;
  --info: #00cfd5;
  --success: #00ac69;
  --text-primary: #242c3a;
  --text-secondary: #1b212c;
  --text-dark: #12171e;
  --text-hint: rgba(0, 0, 0, 0.38);
  --background: #f0f2f8;
  --paper: #ffffff;
  --menu-hover: #e3f2fd;
  --border-radius: 10px;
  --shadow-card: 0 4px 6px -2px rgba(0,0,0,0.12), 0 2px 2px -1px rgba(0,0,0,0.05);
  --shadow-sidebar: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.15);
}

body { font-family: 'Poppins', sans-serif; background: var(--background); }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; }
h1 { font-size: 2.2rem; font-weight: 600; color: var(--text-dark); }
h2 { font-size: 2rem; font-weight: 600; color: var(--text-dark); }
h3 { font-size: 1.5rem; font-weight: 600; color: var(--text-dark); }
h4 { font-size: 1.25rem; font-weight: 500; color: var(--text-secondary); }
h5 { font-size: 1.125rem; font-weight: 600; color: var(--text-secondary); }
h6 { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); }

.card { border-radius: var(--border-radius); box-shadow: var(--shadow-card); border: none; }

/* Sidebar template styles */
.sidebar { width: 250px; background: linear-gradient(180deg, #1e3a5f, #4a90d9); height: 100vh; position: fixed; display: flex; flex-direction: column; z-index: 100; }
.sidebar h3 { color: white !important; text-align: center; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.2); font-size: 18px; flex-shrink: 0; }
.sidebar .user-info { color: rgba(255,255,255,0.8) !important; padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 13px; flex-shrink: 0; }
.sidebar .user-info strong, .sidebar .user-info div { color: white !important; }
.sidebar-menu { flex: 1; overflow-y: auto; padding: 10px 20px; }
.sidebar-menu::-webkit-scrollbar { width: 5px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 10px; }
.sidebar-footer { padding: 10px 20px; border-top: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.menu-item { display: block; padding: 10px 15px; color: white !important; border-radius: 10px; margin: 3px 0; cursor: pointer; transition: all 0.3s; text-decoration: none; font-size: 14px; }
.menu-item:hover { background: rgba(255,255,255,0.2) !important; color: white !important; }
.menu-item i { margin-right: 10px; width: 20px; }
.sidebar-footer .menu-item { color: rgba(255,255,255,0.8) !important; }
.sidebar-footer .menu-item:hover { color: white !important; }
.menu-section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,0.5); padding: 8px 15px 2px; letter-spacing: 1px; }
.main-content { margin-left: 250px; padding: 30px; background: var(--background); min-height: 100vh; }
@media (max-width: 768px) { .sidebar { width: 60px; } .sidebar h3, .user-info, .menu-section-label, .sidebar-footer .menu-item span { display: none; } .main-content { margin-left: 60px; } .menu-item { text-align: center; padding: 10px; } .menu-item i { margin-right: 0; font-size: 18px; } }

/* Stat cards with colored bottom strip (template style) */
.stat-card { background: var(--paper); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
.stat-card:hover { box-shadow: 0 8px 16px -4px rgba(0,0,0,0.15); }
.stat-card-body { display: flex; justify-content: space-between; align-items: center; padding: 24px; }
.stat-card-body h3 { margin: 0; color: var(--card-clr); }
.stat-card-body p { margin: 0.5rem 0 0 0; color: var(--text-secondary); font-size: 0.875rem; }
.stat-card-icon { font-size: 2rem; color: var(--card-clr); opacity: 0.7; }
.stat-card-bar { height: 6px; background: var(--card-clr); width: 100%; }

/* Table header styling */
.table th { background: var(--primary) !important; color: white !important; font-weight: 500; }

/* Status badges */
.badge-primary { background: var(--primary); }
.badge-success { background: var(--success); }
.badge-warning { background: var(--warning); }
.badge-danger { background: var(--error); }
.badge-info { background: var(--info); }
