/* ============================================================
   TaskFlow Pro - Custom CSS
   Primary: #1dc4e9 | White Theme | Glassmorphism
   ============================================================ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:        #1dc4e9;
  --primary-dark:   #0ba8c4;
  --primary-darker: #0891a8;
  --primary-light:  #e8f7fc;
  --primary-glow:   rgba(29, 196, 233, 0.3);
  --bg-primary:     #ffffff;
  --bg-secondary:   #f8f9fa;
  --bg-card:        #ffffff;
  --text-dark:      #2c3e50;
  --text-muted:     #6c757d;
  --border-light:   #e1e8ed;
  --success:        #27ae60;
  --warning:        #f39c12;
  --danger:         #e74c3c;
  --info:           #1dc4e9;
  --sidebar-width:  270px;
  --topbar-height:  65px;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:      0 8px 40px rgba(0,0,0,0.15);
  --shadow-primary: 0 4px 20px rgba(29,196,233,0.35);
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f0f4f8;
  color: var(--text-dark);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ─── Layout ────────────────────────────────────────────────── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-primary);
  border-right: 1px solid var(--border-light);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.sidebar-brand {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  flex-shrink: 0;
}

.sidebar-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sidebar-brand .brand-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.sidebar-brand .brand-name {
  font-size: 18px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
}

.sidebar-brand .brand-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

.sidebar-user {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--primary-light);
}

.sidebar-user .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-user .user-info .user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.sidebar-user .user-info .user-role {
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 8px 20px 4px;
  margin-top: 4px;
}

.nav-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  margin: 2px 10px;
  border-radius: var(--radius-sm);
}

.nav-item-link .nav-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-item-link:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.nav-item-link:hover .nav-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.nav-item-link.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-primary);
}

.nav-item-link.active .nav-icon {
  background: rgba(255,255,255,0.2);
  color: white;
}

.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.nav-item-link.active .nav-badge {
  background: rgba(255,255,255,0.3);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: #fef5f5;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.logout-btn:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
  transform: translateY(-1px);
}

/* ─── Main Content ──────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: var(--transition);
}

/* ─── Topbar ────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.topbar-left .page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.topbar-left .breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.topbar-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.topbar-date {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(29,196,233,0.2);
  font-weight: 500;
}

/* ─── Page Content ──────────────────────────────────────────── */
.page-content {
  padding: 28px;
  flex: 1;
}

/* ─── Stats Cards ───────────────────────────────────────────── */
.stat-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-primary);
  border-color: var(--primary);
}

.stat-card .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.stat-icon.bg-primary-soft { background: var(--primary-light); color: var(--primary); }
.stat-icon.bg-success-soft { background: #e8f8f0; color: var(--success); }
.stat-icon.bg-warning-soft { background: #fef9e7; color: var(--warning); }
.stat-icon.bg-danger-soft  { background: #fef5f5; color: var(--danger); }

.stat-card .stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-card .stat-change {
  font-size: 12px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title .title-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 15px;
}

.card-body { padding: 24px; }
.card-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 14px 24px;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: var(--shadow-primary);
}

.btn-primary-custom:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 25px rgba(29,196,233,0.5);
  color: white;
}

.btn-outline-primary-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-outline-primary-custom:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

/* Bootstrap btn overrides */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  border: none !important;
  box-shadow: var(--shadow-primary) !important;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(29,196,233,0.45) !important;
}

/* ─── Tables ────────────────────────────────────────────────── */
.table-wrapper {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.table > thead > tr > th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 16px;
  border-bottom: 2px solid rgba(29,196,233,0.2);
  white-space: nowrap;
}

.table > tbody > tr > td {
  padding: 14px 16px;
  vertical-align: middle;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

.table > tbody > tr:hover {
  background: var(--primary-light);
  transition: background 0.2s;
}

.table > tbody > tr:last-child > td { border-bottom: none; }

/* ─── Status Badges ─────────────────────────────────────────── */
.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-badge:hover { transform: scale(1.05); }

.badge-pending     { background: #fef9e7; color: #b45309; border: 1px solid #fde68a; }
.badge-in-progress { background: #e8f7fc; color: var(--primary-dark); border: 1px solid rgba(29,196,233,0.3); }
.badge-completed   { background: #e8f8f0; color: #065f46; border: 1px solid #a7f3d0; }

/* ─── Priority Badges ───────────────────────────────────────── */
.priority-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.priority-low      { background: #f0fdf4; color: #166534; }
.priority-medium   { background: #fffbeb; color: #92400e; }
.priority-high     { background: #fff7ed; color: #9a3412; }
.priority-critical { background: #fef2f2; color: #991b1b; }

/* ─── Forms ─────────────────────────────────────────────────── */
.form-control, .form-select {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  transition: var(--transition);
  color: var(--text-dark);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  outline: none;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group { margin-bottom: 18px; }

/* ─── Login Page ────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(29,196,233,0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(29,196,233,0.1) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  border-radius: 50%;
}

.login-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo .logo-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  margin: 0 auto 16px;
  box-shadow: 0 8px 30px rgba(29,196,233,0.5);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.login-logo h1 {
  font-size: 26px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}

.login-logo p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.login-form .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  padding: 12px 16px;
}

.login-form .form-control::placeholder { color: rgba(255,255,255,0.4); }

.login-form .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29,196,233,0.25);
  color: white;
}

.login-form .form-label { color: rgba(255,255,255,0.8); }

.login-input-icon {
  position: relative;
}

.login-input-icon .form-control {
  padding-left: 46px;
}

.login-input-icon .input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 16px;
  z-index: 1;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: 0.8s;
}

.btn-login:hover::before { left: 120%; }

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(29,196,233,0.6);
}

.demo-credentials {
  background: rgba(29,196,233,0.1);
  border: 1px solid rgba(29,196,233,0.2);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.demo-credentials strong { color: var(--primary); }

/* ─── Modals ────────────────────────────────────────────────── */
.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-bottom: none;
  padding: 20px 24px;
}

.modal-header .modal-title { font-weight: 700; }

.modal-header .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.modal-footer {
  border-top: 1px solid var(--border-light);
  padding: 16px 24px;
}

/* ─── Chart Container ───────────────────────────────────────── */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* ─── DataTables overrides ──────────────────────────────────── */
.dataTables_wrapper .dataTables_filter input {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-left: 8px;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--radius-sm) !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  border-color: transparent !important;
  color: white !important;
}

/* ─── Tabs ──────────────────────────────────────────────────── */
.nav-tabs-custom {
  border-bottom: 2px solid var(--border-light);
  gap: 4px;
}

.nav-tabs-custom .nav-link {
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-tabs-custom .nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-tabs-custom .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  border-bottom: 2px solid var(--primary);
  margin-bottom: -2px;
}

/* ─── Sidebar Toggle (mobile) ───────────────────────────────── */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px;
}

/* ─── Alerts / Toasts ───────────────────────────────────────── */
.alert {
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14px;
  font-weight: 500;
}

.alert-success { background: #e8f8f0; color: #065f46; border-left: 4px solid var(--success); }
.alert-warning { background: #fef9e7; color: #92400e; border-left: 4px solid var(--warning); }
.alert-danger  { background: #fef5f5; color: #991b1b; border-left: 4px solid var(--danger);  }
.alert-info    { background: var(--primary-light); color: var(--primary-dark); border-left: 4px solid var(--primary); }

/* ─── Progress Bars ─────────────────────────────────────────── */
.progress {
  height: 8px;
  border-radius: 10px;
  background: var(--primary-light);
  overflow: visible;
}

.progress-bar {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  position: relative;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Task Cards (Kanban) ───────────────────────────────────── */
.task-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  transition: var(--transition);
  cursor: pointer;
  border-left: 4px solid var(--primary);
}

.task-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.task-card .task-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.task-card .task-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Daily Entry Cards ─────────────────────────────────────── */
.daily-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
  transition: var(--transition);
  position: relative;
}

.daily-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 4px 0 0 4px;
}

.daily-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ─── Hours Ring ────────────────────────────────────────────── */
.hours-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(29,196,233,0.4);
}

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h5 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-primary {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29,196,233,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(29,196,233,0); }
}

.animate-fade-up   { animation: fadeInUp 0.5s ease both; }
.animate-slide-left{ animation: slideInLeft 0.4s ease both; }

.stat-card { animation: fadeInUp 0.5s ease both; }
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 1050;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0,0,0,0.3);
  }

  .main-content { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .page-content { padding: 16px; }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    backdrop-filter: blur(2px);
  }

  .sidebar-overlay.active { display: block; }
}

@media (max-width: 576px) {
  .login-card { padding: 32px 24px; }
  .topbar { padding: 0 16px; }
  .page-content { padding: 12px; }
  .stat-card { padding: 18px; }
  .stat-card .stat-number { font-size: 28px; }
}

/* ─── Print Styles ──────────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin-left: 0; }
  body { background: white; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ─── Loading Spinner ───────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.spinner-primary {
  width: 48px;
  height: 48px;
  border: 4px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Utility classes ───────────────────────────────────────── */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom   { background: var(--primary) !important; }
.border-primary      { border-color: var(--primary) !important; }
.rounded-custom      { border-radius: var(--radius-md) !important; }
.shadow-primary      { box-shadow: var(--shadow-primary) !important; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
