/* backend_php/style.css */

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

:root {
  --primary: #818CF8;
  --primary-dark: #4F46E5;
  --primary-glow: rgba(129, 140, 248, 0.18);
  --secondary: #34D399;
  --secondary-dark: #059669;
  --secondary-glow: rgba(52, 211, 153, 0.18);
  --bg-color: #0B0B0F;
  --surface-color: rgba(20, 20, 28, 0.85);
  --card-color: rgba(26, 26, 36, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --gold: #F59E0B;
  --gold-glow: rgba(245, 158, 11, 0.18);
  --error: #F87171;
  --error-glow: rgba(248, 113, 113, 0.18);
  --info: #60A5FA;
  --info-glow: rgba(96, 165, 250, 0.18);
  --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(22, 22, 33, 0.65);
  --sidebar-width: 280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #252532;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

body {
  font-family: 'Tajawal', 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================================ */
/*         SIDEBAR LAYOUT           */
/* ================================ */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--border-color);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  right: 0;
  top: 0;
  z-index: 100;
  box-shadow: 10px 0 30px rgba(0,0,0,0.5);
  transition: width 0.3s ease;
}

.sidebar-logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 0 15px var(--primary-glow);
}

.sidebar-logo i {
  font-size: 24px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 5px var(--primary-glow); }
  50% { text-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary-glow); }
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.sidebar-item a::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.sidebar-item a:hover {
  background-color: rgba(255, 255, 255, 0.03);
  color: white;
  padding-right: 22px;
}

.sidebar-item a:hover::before {
  transform: scaleY(1);
}

.sidebar-item.active a {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  border: 1px solid rgba(255,255,255,0.1);
  font-weight: 700;
}

.sidebar-item.active a::before {
  display: none;
}

/* Sidebar notification dot */
.sidebar-item .nav-badge {
  margin-right: auto;
  background: var(--error);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ================================ */
/*        MAIN CONTENT AREA         */
/* ================================ */
.main-content {
  flex: 1;
  margin-right: var(--sidebar-width);
  padding: 40px 50px;
  min-height: 100vh;
  width: calc(100% - var(--sidebar-width));
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  background: var(--surface-color);
  padding: 20px 30px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.header-title h1 {
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 30%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-title p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.header-user {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-user::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary);
  animation: online-dot 2s ease-in-out infinite;
}

@keyframes online-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ================================ */
/*      DASHBOARD CARDS / GRID      */
/* ================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.1);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.stat-value {
  font-size: 34px;
  font-weight: 800;
  color: white;
  font-family: 'Outfit', 'Tajawal', sans-serif;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.stat-trend.up {
  background: var(--secondary-glow);
  color: var(--secondary);
}

.stat-trend.down {
  background: var(--error-glow);
  color: var(--error);
}

.stat-icon {
  background: rgba(255, 255, 255, 0.03);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.stat-card:hover .stat-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

/* ================================ */
/*      QUICK ACTIONS BAR           */
/* ================================ */
.quick-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Tajawal', sans-serif;
  text-decoration: none;
}

.quick-action-btn:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.quick-action-btn i {
  font-size: 16px;
  color: var(--primary);
}

/* ================================ */
/*        ACTIVITY TIMELINE         */
/* ================================ */
.activity-timeline {
  position: relative;
  padding-right: 20px;
}

.activity-timeline::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--border-color));
}

.timeline-item {
  position: relative;
  padding: 0 30px 24px 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: -1px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-color);
  z-index: 1;
}

.timeline-item.success::before { background: var(--secondary); }
.timeline-item.warning::before { background: var(--gold); }
.timeline-item.error::before { background: var(--error); }

.timeline-content {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  transition: all 0.2s;
}

.timeline-content:hover {
  border-color: rgba(99,102,241,0.2);
}

.timeline-time {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.timeline-text {
  font-size: 13px;
  font-weight: 500;
}

/* ================================ */
/*     FILTERS & SEARCH PANELS      */
/* ================================ */
.search-filter-panel {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.search-input-group {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-input-group i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 15px;
}

.search-input-group input {
  width: 100%;
  padding: 14px 48px 14px 18px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: white;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.search-input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
  background-color: rgba(0, 0, 0, 0.4);
}

.filter-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 14px 20px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: white;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 140px;
}

.filter-select:focus, .filter-select:hover {
  border-color: var(--primary);
  background-color: rgba(0, 0, 0, 0.4);
}

.filter-select option {
  background: var(--card-color);
  color: white;
}

/* ================================ */
/*             TABLES               */
/* ================================ */
.table-container {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  overflow-x: auto;
  box-shadow: var(--card-shadow);
  margin-bottom: 30px;
}

.table-header {
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

th, td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

th {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

tr {
  transition: background-color 0.2s;
}

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

tr:hover td {
  background-color: rgba(255, 255, 255, 0.015);
}

/* ================================ */
/*             BADGES               */
/* ================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.badge-gold {
  background-color: var(--gold-glow);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-silver {
  background-color: rgba(156, 163, 175, 0.1);
  color: #d1d5db;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

.badge-free {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.badge-success {
  background-color: var(--secondary-glow);
  color: var(--secondary);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-pending {
  background-color: var(--gold-glow);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-error {
  background-color: var(--error-glow);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
  background-color: var(--info-glow);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ================================ */
/*            BUTTONS               */
/* ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Tajawal', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error), #dc2626);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.03);
  color: white;
  border-color: var(--primary);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 8px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  padding: 0;
  font-size: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: var(--primary);
}

/* ================================ */
/*          LOGIN SCREEN            */
/* ================================ */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: radial-gradient(circle at center, #1e1b4b 0%, #070709 100%);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 45px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  animation: fadeSlideUp 0.5s ease;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-logo {
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 30px;
  text-shadow: 0 0 15px var(--primary-glow);
}

/* ================================ */
/*          FORM ELEMENTS           */
/* ================================ */
.form-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  color: white;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  background-color: rgba(0, 0, 0, 0.45);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ================================ */
/*             MODALS               */
/* ================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: #121219;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  padding: 30px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--error);
}

.modal-body {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.receipt-img-container {
  width: 100%;
  max-height: 380px;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: rgba(0,0,0,0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.receipt-img-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ================================ */
/*         SYSTEM ALERTS            */
/* ================================ */
.system-alert {
  padding: 18px 24px;
  border-radius: 16px;
  margin-bottom: 28px;
  font-weight: bold;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--card-shadow);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ================================ */
/*       PROGRESS / BAR CHARTS      */
/* ================================ */
.visual-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.bar-bg {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #818cf8);
  border-radius: 4px;
  transition: width 1s ease-out;
}

/* ================================ */
/*       NOTIFICATION CARDS         */
/* ================================ */
.notif-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.notif-card:hover {
  border-color: rgba(99,102,241,0.2);
  background: rgba(99,102,241,0.03);
}

.notif-card.unread {
  border-right: 3px solid var(--primary);
}

.notif-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notif-icon.sub { background: var(--gold-glow); color: var(--gold); }
.notif-icon.user { background: var(--primary-glow); color: var(--primary); }
.notif-icon.job { background: var(--secondary-glow); color: var(--secondary); }
.notif-icon.pay { background: var(--info-glow); color: var(--info); }
.notif-icon.alert { background: var(--error-glow); color: var(--error); }

.notif-body {
  flex: 1;
}

.notif-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.notif-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.notif-time {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ================================ */
/*        REPORT SUMMARY BOX        */
/* ================================ */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.summary-box {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  transition: all 0.3s;
}

.summary-box:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-3px);
}

.summary-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.summary-value {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: white;
}

.summary-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ================================ */
/*         DATA EMPTY STATE         */
/* ================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--border-color);
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* ================================ */
/*        PAGINATION                */
/* ================================ */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
}

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

/* ================================ */
/*        TOOLTIP                   */
/* ================================ */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  right: 50%;
  transform: translateX(50%);
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-family: 'Tajawal', sans-serif;
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* ================================ */
/*        RESPONSIVE DESIGN         */
/* ================================ */
@media (max-width: 992px) {
  .sidebar {
    width: 80px;
    padding: 30px 10px;
  }
  .sidebar-logo span, .sidebar-item span, .nav-badge {
    display: none;
  }
  .sidebar-logo {
    justify-content: center;
    margin-bottom: 30px;
  }
  .sidebar-item a {
    justify-content: center;
    padding: 14px;
  }
  .sidebar-item a:hover {
    padding-right: 14px;
  }
  .main-content {
    margin-right: 80px;
    width: calc(100% - 80px);
    padding: 24px;
  }
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .header-user {
    width: 100%;
    justify-content: center;
  }
  .search-filter-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    flex-direction: column;
  }
  .filter-select {
    width: 100%;
  }
  .quick-actions {
    flex-direction: column;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
}
