/* ============================================================
   Araneta Center for Education — Design System
   Elegant White Corporate Style
   ============================================================ */

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

:root {
  /* Brand Colors */
  --primary:        #1B4D7A;
  --primary-light:  #2A6BA6;
  --primary-dark:   #0F3557;
  --primary-50:     rgba(27, 77, 122, 0.06);
  --primary-100:    rgba(27, 77, 122, 0.12);

  /* Accent */
  --accent:         #E8A838;
  --accent-light:   #F5C66A;
  --accent-dark:    #C88A1E;

  /* Neutrals */
  --white:          #FFFFFF;
  --gray-25:        #FCFCFD;
  --gray-50:        #F9FAFB;
  --gray-100:       #F2F4F7;
  --gray-200:       #EAECF0;
  --gray-300:       #D0D5DD;
  --gray-400:       #98A2B3;
  --gray-500:       #667085;
  --gray-600:       #475467;
  --gray-700:       #344054;
  --gray-800:       #1D2939;
  --gray-900:       #101828;

  /* Status */
  --success:        #12B76A;
  --success-light:  #ECFDF3;
  --warning:        #F79009;
  --warning-light:  #FFFAEB;
  --danger:         #F04438;
  --danger-light:   #FEF3F2;
  --info:           #2E90FA;
  --info-light:     #EFF8FF;

  /* Layout */
  --sidebar-width:  260px;
  --sidebar-collapsed: 72px;
  --topbar-height:  64px;
  --border-radius:  12px;
  --border-radius-sm: 8px;
  --border-radius-xs: 6px;

  /* Shadows */
  --shadow-xs:      0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm:      0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md:      0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
  --shadow-lg:      0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
  --shadow-xl:      0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition:      0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: var(--gray-700);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-light); }

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

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: width var(--transition), transform var(--transition);
}

.sidebar-brand {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--gray-200);
  gap: 12px;
  flex-shrink: 0;
}

.sidebar-brand .brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--border-radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-brand .brand-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-brand .brand-text small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.sidebar-nav .nav-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-400);
  padding: 8px 12px 6px;
  margin-top: 8px;
}

.sidebar-nav .nav-item {
  margin-bottom: 2px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  color: var(--gray-600);
  font-weight: 500;
  font-size: 13.5px;
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar-nav .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.sidebar-nav .nav-link:hover {
  background: var(--primary-50);
  color: var(--primary);
}
.sidebar-nav .nav-link:hover i { opacity: 1; }

.sidebar-nav .nav-link.active {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}
.sidebar-nav .nav-link.active i { opacity: 1; color: var(--primary); }
.sidebar-nav .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
}

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

.sidebar-footer .user-info {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--border-radius-sm);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.sidebar-footer .user-info:hover { background: var(--gray-50); }

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

.sidebar-footer .user-name {
  font-weight: 600; font-size: 13px; color: var(--gray-800);
  line-height: 1.3;
}
.sidebar-footer .user-role {
  font-size: 11px; color: var(--gray-400); text-transform: capitalize;
}

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

.topbar {
  position: sticky; top: 0;
  height: var(--topbar-height);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 900;
}

.topbar-left {
  display: flex; align-items: center; gap: 16px;
}

.topbar-left .mobile-toggle {
  display: none;
  background: none; border: none;
  font-size: 20px; color: var(--gray-600); cursor: pointer;
  padding: 4px;
}

.topbar-left .page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

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

.topbar-right .topbar-date {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
}

.content-area {
  flex: 1;
  padding: 28px;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}

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

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.card-body {
  padding: 22px;
}

.card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--gray-100);
}

/* ============================================================
   KPI / Stat Cards
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

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

.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-icon.primary   { background: var(--primary-50); color: var(--primary); }
.stat-icon.success   { background: var(--success-light); color: var(--success); }
.stat-icon.warning   { background: var(--warning-light); color: var(--warning); }
.stat-icon.info      { background: var(--info-light); color: var(--info); }
.stat-icon.danger    { background: var(--danger-light); color: var(--danger); }
.stat-icon.accent    { background: rgba(232,168,56,0.1); color: var(--accent-dark); }

.stat-card .stat-content { flex: 1; }
.stat-card .stat-label {
  font-size: 12px; font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.stat-card .stat-value {
  font-size: 26px; font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}
.stat-card .stat-change {
  font-size: 12px; font-weight: 500;
  margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
}
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ============================================================
   Tables
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.table thead th {
  background: var(--gray-50);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

.table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}

.table tbody tr {
  transition: background var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--gray-25);
}

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

/* ============================================================
   Badges / Status
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.badge.badge-success { background: var(--success-light); color: var(--success); }
.badge.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge.badge-danger  { background: var(--danger-light); color: var(--danger); }
.badge.badge-info    { background: var(--info-light); color: var(--info); }
.badge.badge-primary { background: var(--primary-50); color: var(--primary); }
.badge.badge-secondary { background: var(--gray-100); color: var(--gray-600); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--border-radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }

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

.btn-success {
  background: var(--success);
  color: var(--white);
}
.btn-success:hover { background: #0DA05E; color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-700);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}
.btn-danger:hover { background: #D32F2F; color: var(--white); }

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

.btn-icon {
  width: 36px; height: 36px;
  padding: 0; border-radius: var(--border-radius-xs);
}

/* ============================================================
   Form Controls
   ============================================================ */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-control::placeholder {
  color: var(--gray-400);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667085' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.form-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
}

/* ============================================================
   Login Page
   ============================================================ */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 50%, var(--primary-50) 100%);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 40px;
  border: 1px solid var(--gray-200);
  animation: fadeInUp 0.5s ease;
}

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

.login-card .login-logo .logo-icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(27, 77, 122, 0.3);
}

.login-card .login-logo h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}

.login-card .login-logo p {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.login-card .btn-primary {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

.login-error {
  background: var(--danger-light);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

/* ============================================================
   Charts area
   ============================================================ */
.chart-container {
  position: relative;
  width: 100%;
  height: 300px;
}

.chart-container.small {
  height: 220px;
}

/* ============================================================
   POS Specific
   ============================================================ */
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  min-height: calc(100vh - var(--topbar-height) - 56px);
}

.pos-search-result {
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--gray-200);
}

.pos-student-info {
  display: flex; gap: 16px; align-items: center;
}

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

.pos-fee-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.pos-fee-item:last-child { border-bottom: none; }

.pos-fee-item .fee-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.pos-total-bar {
  background: var(--primary-50);
  padding: 16px 22px;
  border-radius: var(--border-radius-sm);
  display: flex; justify-content: space-between; align-items: center;
  margin: 16px 0;
  border: 1px solid var(--primary-100);
}

.pos-total-bar .total-label {
  font-weight: 600; color: var(--gray-700);
}

.pos-total-bar .total-amount {
  font-size: 24px; font-weight: 700; color: var(--primary);
}

/* ============================================================
   Receipt
   ============================================================ */
.receipt-container {
  max-width: 380px;
  margin: 0 auto;
  background: var(--white);
  padding: 30px;
  border: 1px dashed var(--gray-300);
  font-size: 13px;
}

.receipt-container .receipt-header {
  text-align: center;
  border-bottom: 2px dashed var(--gray-300);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.receipt-container .receipt-divider {
  border: none;
  border-top: 1px dashed var(--gray-300);
  margin: 12px 0;
}

/* ============================================================
   Utility Classes
   ============================================================ */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted   { color: var(--gray-400) !important; }
.text-center  { text-align: center !important; }
.text-right   { text-align: right !important; }
.text-bold    { font-weight: 600 !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

.w-100 { width: 100% !important; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.4s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0s; }
.animate-in:nth-child(2) { animation-delay: 0.08s; }
.animate-in:nth-child(3) { animation-delay: 0.16s; }
.animate-in:nth-child(4) { animation-delay: 0.24s; }

/* ============================================================
   Print styles
   ============================================================ */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .content-area { padding: 0 !important; }
  .card { border: none !important; box-shadow: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .pos-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }
  .main-content {
    margin-left: 0;
  }
  .topbar-left .mobile-toggle {
    display: block;
  }
  .content-area {
    padding: 16px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Sidebar overlay for mobile
   ============================================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}
.sidebar-overlay.active {
  display: block;
}

/* ============================================================
   Search box
   ============================================================ */
.search-box {
  position: relative;
}
.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 15px;
}
.search-box .form-control {
  padding-left: 40px;
}

/* ============================================================
   Page header
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
}

.page-header .page-actions {
  display: flex; gap: 10px;
}

/* ============================================================
   Student profile
   ============================================================ */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

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

.profile-info h2 {
  font-size: 22px; font-weight: 700; color: var(--gray-900);
}
.profile-info p {
  font-size: 14px; color: var(--gray-500);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.info-item {
  display: flex; flex-direction: column;
}
.info-item .info-label {
  font-size: 12px; font-weight: 500; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.info-item .info-value {
  font-size: 14px; font-weight: 500; color: var(--gray-800);
}

/* ============================================================
   Reports filter bar
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  background: var(--white);
  padding: 18px 22px;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
}

.filter-bar .form-group {
  margin-bottom: 0;
  min-width: 160px;
}

/* Quick-action cards */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.quick-action-card {
  text-align: center;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--gray-700);
}

.quick-action-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--primary);
}

.quick-action-card i {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
  color: var(--primary);
}

.quick-action-card span {
  font-size: 13px; font-weight: 600;
}

/* Two column layout for report charts */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: var(--success-light); color: var(--success); border: 1px solid rgba(18,183,106,0.2); }
.alert-danger  { background: var(--danger-light); color: var(--danger); border: 1px solid rgba(240,68,56,0.2); }
.alert-warning { background: var(--warning-light); color: var(--warning); border: 1px solid rgba(247,144,9,0.2); }
.alert-info    { background: var(--info-light); color: var(--info); border: 1px solid rgba(46,144,250,0.2); }

/* ============================================================
   Loading spinner
   ============================================================ */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ============================================================
   Empty state
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--gray-400);
}
.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  opacity: 0.4;
}
.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 13px;
}

/* Permission Toggle Switches */
.perm-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  cursor: pointer;
  margin: 0;
}
.perm-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.perm-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gray-200);
  border-radius: 22px;
  transition: 0.3s;
}
.perm-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.perm-toggle input:checked + .perm-slider {
  background: var(--primary);
}
.perm-toggle input:checked + .perm-slider::before {
  transform: translateX(18px);
}
