/* ===== VARIABLES ===== */
:root {
  --primary: #f2f7f4;
  --secondary: #ffffff;
  --accent: #1a5c35;
  --accent2: #b8963e;
  --accent3: #27854e;
  --success: #1a7a3c;
  --warning: #b8870a;
  --danger: #b83232;
  --text: #0d2418;
  --text-muted: #456055;
  --border: rgba(26,92,53,0.14);
  --card-bg: #ffffff;
  --glass: rgba(26,92,53,0.05);
  --sidebar-bg: #0c3820;
  --sidebar-text: #d2ebd8;
  --sidebar-muted: #6aad82;
  --sidebar-border: rgba(255,255,255,0.08);
  --sidebar-active: rgba(255,255,255,0.12);
  --topbar-bg: rgba(255,255,255,0.97);
}

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

body {
  font-family: 'Cairo', sans-serif;
  background: var(--primary);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* BACKGROUND */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 10%, rgba(26,107,58,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(200,168,75,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 40%, rgba(45,134,83,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* GRID PATTERN */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(26,107,58,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,107,58,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 260px;
  background: var(--sidebar-bg);
  border-left: 1px solid var(--sidebar-border);
  backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #27854e, #b8963e);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 13px;
  font-weight: 700;
  color: #9dd4aa;
  line-height: 1.3;
}

.logo-sub {
  font-size: 10px;
  color: var(--sidebar-muted);
  font-weight: 400;
}

.nav-section {
  padding: 16px 12px 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--sidebar-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: var(--sidebar-muted);
  position: relative;
  margin: 1px 8px;
  border-radius: 10px;
  padding: 7px 14px;
 
}
a{ text-decoration: none;}

.nav-item:hover {
  background: var(--sidebar-active);
  color: #ffffff;
}

.nav-item.active {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: #b8963e;
  border-radius: 2px;
}

.nav-icon { font-size: 18px; width: 24px; text-align: center; }

.badge {
  margin-right: auto;
  background: var(--danger);
  color: white;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
}

.badge.warning { background: var(--warning); color: #1a2e1a; }
.badge.success { background: var(--success); }

.sidebar-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--sidebar-border);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27854e, #b8963e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}
.priority::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.priority-high::before { background: var(--danger); }
.priority-medium::before { background: var(--warning); }
.priority-low::before { background: var(--success); }
 

.priority-critical::before {
  background: #8e44ad;   /* بنفسجي */
}
.user-name { font-size: 13px; font-weight: 600; color: #d4e8d4; }
.user-role { font-size: 11px; color: var(--sidebar-muted); }

/* ===== MAIN CONTENT ===== */
.main {
  margin-right: 260px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ===== TOP BAR ===== */
.topbar {
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 8px rgba(26,107,58,0.08);
}

.page-title { font-size: 20px; font-weight: 700; color: var(--text); }
.page-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

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

.btn {
  padding: 9px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(211deg, #1c6f39, #05245d 39%, #0a3456 20%, #145446 94%);
  color: white;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,107,58,0.3); }

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

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.notif-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 16px;
  transition: all 0.2s;
}

.notif-btn:hover { border-color: var(--accent); }

.notif-dot {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid white;
}

/* ===== PAGES ===== */
.page { display: none; padding: 28px 32px; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

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

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: 0 2px 12px rgba(26,107,58,0.06);
}

.stat-card:hover { transform: translateY(-2px); border-color: rgba(26,107,58,0.3); box-shadow: 0 6px 20px rgba(26,107,58,0.12); }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 0 16px 0 80px;
  opacity: 0.12;
}

.stat-card.blue::before { background: var(--accent); }
.stat-card.orange::before { background: var(--accent2); }
.stat-card.purple::before { background: #27854e; }
.stat-card.green::before { background: var(--success); }
.stat-card.red::before { background: var(--danger); }

.stat-icon { font-size: 24px; margin-bottom: 12px; display: block; }

.stat-number {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card.blue .stat-number { color: var(--accent); }
.stat-card.orange .stat-number { color: var(--accent2); }
.stat-card.purple .stat-number { color: #27854e; }
.stat-card.green .stat-number { color: var(--success); }
.stat-card.red .stat-number { color: var(--danger); }

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

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

/* ===== CARDS ===== */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,107,58,0.06);
}

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

.card-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--text); }
.card-body { padding: 20px; }

/* ===== GRID LAYOUTS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  padding: 12px 16px;
  text-align: right;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.5px;
}

td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(26,107,58,0.06);
  vertical-align: middle;
}

tr:hover td { background: rgba(26,107,58,0.03); }
tr:last-child td { border-bottom: none; }

/* ===== STATUS BADGES ===== */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}


.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }

.status-resolved,.status-done { background: rgba(16,185,129,0.15); color: var(--success); }
.status-resolved::before,.status-done::before { background: var(--success); animation: pulse 2s infinite; }

.status-new,.status-scheduled { background: rgba(239,68,68,0.15); color: var(--danger); }
.status-new::before,.status-scheduled::before { background: var(--danger); animation: pulse 1s infinite; }

.status-in_progress { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-in_progress::before { background: var(--warning); }

.status-pending { background: rgba(26,92,53,0.12); color: #4aaa6e; }
.status-pending::before { background: #4aaa6e; }

.status-closed,.status-cancelled { background: rgba(148,163,184,0.1); color: var(--text-muted); }
.status-closed::before,.status-cancelled::before { background: var(--text-muted); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== PRIORITY ===== */
.priority {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.priority-high { color: var(--danger); }
.priority-medium { color: var(--warning); }
.priority-low { color: var(--success); }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

/* ===== LAB CARDS ===== */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.lab-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.lab-card:hover { transform: translateY(-3px); border-color: rgba(27,101,53,0.35); box-shadow: 0 10px 30px rgba(27,101,53,0.15); }

.lab-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lab-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.lab-location { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

.lab-devices {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.device-chip {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.chip-ok { background: rgba(16,185,129,0.15); color: var(--success); }
.chip-fault { background: rgba(239,68,68,0.15); color: var(--danger); }
.chip-maint { background: rgba(245,158,11,0.15); color: var(--warning); }

.lab-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ===== FORM ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 0; }

.form-group.full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  background: #f8fcf9;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  transition: all 0.2s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: rgba(27,101,53,0.04);
  box-shadow: 0 0 0 3px rgba(27,101,53,0.1);
}

select option { background: var(--secondary); }
textarea { resize: vertical; min-height: 80px; }

/* ===== QR ===== */
.qr-area {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: #f4f9f5;
  border-radius: 12px;
  border: 1px dashed rgba(27,101,53,0.25);
}

.qr-box {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.qr-pattern {
  width: 80px;
  height: 80px;
  background: 
    linear-gradient(90deg, #000 0%, #000 12.5%, transparent 12.5%, transparent 25%,
    #000 25%, #000 37.5%, transparent 37.5%, transparent 50%,
    #000 50%, #000 62.5%, transparent 62.5%, transparent 75%,
    #000 75%, #000 87.5%, transparent 87.5%) 0 0 / 16px 16px,
    linear-gradient(#000 0%, #000 12.5%, transparent 12.5%, transparent 25%,
    #000 25%, #000 37.5%, transparent 37.5%, transparent 50%,
    #000 50%, #000 62.5%, transparent 62.5%, transparent 75%,
    #000 75%, #000 87.5%, transparent 87.5%) 0 0 / 16px 16px;
  opacity: 0.85;
}

/* ===== NOTIFICATIONS ===== */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(27,101,53,0.08);
}

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

.notif-dot-item {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.notif-text { font-size: 13px; line-height: 1.5; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.notif-unread { background: rgba(26,92,53,0.05); margin: 0 -20px; padding: 14px 20px; }

/* ===== CHART ===== */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding-bottom: 20px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }

.bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: height 0.8s ease;
  position: relative;
}

.bar:hover::after {
  content: attr(data-val);
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.bar-label { font-size: 10px; color: var(--text-muted); text-align: center; }

/* ===== DEVICE TABLE ACTIONS ===== */
.action-btns { display: flex; gap: 6px; }

.action-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
  color: var(--text-muted);
}

.action-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(26,92,53,0.05); }

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}

.search-input { padding-right: 40px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 560px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal-overlay.open .modal { transform: scale(1); }

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

.modal-title { font-size: 16px; font-weight: 700; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  transition: all 0.2s;
}

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

.modal-body { padding: 24px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,92,53,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,92,53,0.25); }

/* ===== SPARKLINE ===== */
.mini-stats {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.mini-bar {
  flex: 1;
  background: rgba(26,92,53,0.15);
  border-radius: 2px;
  height: 30px;
  position: relative;
  overflow: hidden;
}

.mini-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: height 1s ease;
}

/* ===== TIMELINE ===== */
.timeline { padding: 0; list-style: none; position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  right: 15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 40px 20px 0;
  font-size: 13px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: 9px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--primary);
}

.timeline-time { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.timeline-text { line-height: 1.5; }

/* ===== REPORT CARDS ===== */
.report-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.report-metric:last-child { border-bottom: none; }
.metric-label { font-size: 13px; color: var(--text-muted); }
.metric-value { font-size: 16px; font-weight: 700; }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  border: 1px solid;
}

.toast-success { background: rgba(16,185,129,0.15); border-color: var(--success); color: var(--success); }
.toast-error { background: rgba(239,68,68,0.15); border-color: var(--danger); color: var(--danger); }
.toast-info { background: rgba(26,92,53,0.12); border-color: var(--accent); color: var(--accent); }

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

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(10px); }
}

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

.empty-state .icon { font-size: 48px; margin-bottom: 12px; display: block; opacity: 0.4; }
.empty-state p { font-size: 14px; }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.login-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  width: 420px;
  max-width: 90vw;
  backdrop-filter: blur(20px);
}

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

.login-logo .icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #0c3820, #27854e);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

.login-logo h1 { font-size: 20px; font-weight: 900; color: #0c3820; }
.login-logo p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }

.role-btn {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  color: var(--text-muted);
  font-family: 'Cairo', sans-serif;
}

.role-btn:hover, .role-btn.selected {
  border-color: var(--accent);
  background: rgba(26,92,53,0.08);
  color: var(--accent);
}

.role-btn .role-icon { font-size: 24px; display: block; margin-bottom: 6px; }
.role-btn span { font-size: 13px; font-weight: 600; }

/* ===== COMPLAINT FORM ===== */
.severity-selector { display: flex; gap: 8px; }

.sev-btn {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  color: var(--text-muted);
}

.sev-btn:hover { color: var(--text); }
.sev-btn.high.sel { border-color: var(--danger); background: rgba(239,68,68,0.1); color: var(--danger); }
.sev-btn.medium.sel { border-color: var(--warning); background: rgba(245,158,11,0.1); color: var(--warning); }
.sev-btn.low.sel { border-color: var(--success); background: rgba(16,185,129,0.1); color: var(--success); }

/* Responsive */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .labs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── PHP App Extras ───────────────────────────────────────── */
.section-title-form {
  font-size: 11px; font-weight: 700; color: var(--accent);
  letter-spacing: 1.5px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(26,92,53,.1);
}
.filter-chip {
  padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border); background: white; cursor: pointer;
  transition: all .2s; color: var(--text-muted);
}
.filter-chip.active, .filter-chip:hover {
  border-color: var(--accent); background: rgba(26,92,53,.08); color: var(--accent);
}
/*.status-working { background:#e8f5e9; color:#1b5e20; }
.status-ok      { background:#e8f5e9; color:#1b5e20; }
.status-new     { background:#e3f2fd; color:#0d47a1; }
*/
