/* ============================================================
   نظام إدارة القضايا القضائية - Main Stylesheet
   Design: Institutional Judicial - Navy & Gold - RTL Arabic
   ============================================================ */

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

:root {
  /* Color Palette */
  --navy-900:  #070F1E;
  --navy-800:  #0B1929;
  --navy-700:  #0F2140;
  --navy-600:  #152B54;
  --navy-500:  #1B3668;
  --navy-400:  #244282;
  --gold-500:  #C8A951;
  --gold-400:  #D4B96A;
  --gold-300:  #E2CA8A;
  --gold-100:  #F9F2DF;
  --slate-100: #F1F4F8;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-500: #64748B;
  --slate-700: #334155;
  --white:     #FFFFFF;

  /* Status Colors */
  --green-500: #22C55E;
  --green-100: #DCFCE7;
  --red-500:   #EF4444;
  --red-100:   #FEE2E2;
  --amber-500: #F59E0B;
  --amber-100: #FEF3C7;
  --blue-500:  #3B82F6;
  --blue-100:  #DBEAFE;
  --purple-500:#8B5CF6;
  --purple-100:#EDE9FE;

  /* Layout */
  --sidebar-w: 260px;
  --header-h:  64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.15);
  --shadow-gold: 0 4px 20px rgba(200,169,81,.25);

  /* Fonts */
  --font-main: 'Cairo', sans-serif;
  --font-serif: 'Amiri', serif;

  /* Transitions */
  --transition: all 0.2s ease;
}

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

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--slate-100);
  color: var(--navy-800);
  direction: rtl;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--navy-800);
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  transition: var(--transition);
  border-left: 1px solid rgba(200,169,81,.15);
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.brand-icon { font-size: 28px; flex-shrink: 0; }

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-400);
  display: block;
  line-height: 1.2;
}

.brand-sub {
  font-size: .7rem;
  color: rgba(255,255,255,.45);
  display: block;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.15);
}

.user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 800;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.user-name { font-size: .85rem; font-weight: 600; color: var(--white); line-height: 1.3; }
.user-role { font-size: .72rem; color: var(--gold-300); }

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,.07);
  color: var(--white);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.nav-item.active svg { stroke: var(--navy-900); }
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }

.notif-badge {
  margin-right: auto;
  background: var(--red-500);
  color: white;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  line-height: 1;
}

.sidebar-footer {
  padding: 10px 10px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logout:hover { background: rgba(239,68,68,.15) !important; color: #fca5a5 !important; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  margin-right: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  background: var(--white);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold-500);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.page-header .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--slate-500);
}
.page-header .breadcrumb a { color: var(--navy-500); text-decoration: none; }
.page-header .breadcrumb span { color: var(--slate-300); }

.page-title {
  font-size: 1.2rem; font-weight: 800;
  color: var(--navy-800);
  display: flex; align-items: center; gap: 10px;
}

.page-title .title-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-500));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}

.page-title .title-icon svg { stroke: var(--gold-400); width: 18px; height: 18px; }

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

/* ============================================================
   PAGE BODY
   ============================================================ */
.page-body {
  padding: 24px 28px;
  flex: 1;
}

/* ============================================================
   STATS CARDS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-color, var(--navy-500));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

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

.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--icon-bg, var(--slate-100));
}

.stat-icon svg { width: 24px; height: 24px; }

.stat-value {
  font-size: 1.8rem; font-weight: 800;
  color: var(--navy-800); line-height: 1;
}

.stat-label { font-size: .8rem; color: var(--slate-500); margin-top: 4px; font-weight: 500; }

.stat-change {
  font-size: .75rem; margin-top: 6px;
  font-weight: 600;
}
.stat-change.up { color: var(--green-500); }
.stat-change.down { color: var(--red-500); }

/* ============================================================
   CARDS / PANELS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
}

.card-title {
  font-size: .95rem; font-weight: 700;
  color: var(--navy-800);
  display: flex; align-items: center; gap: 8px;
}

.card-title svg { width: 16px; height: 16px; stroke: var(--gold-500); }

.card-body { padding: 22px; }

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.table thead th {
  background: var(--navy-800);
  color: var(--gold-300);
  padding: 12px 16px;
  font-weight: 600;
  font-size: .8rem;
  text-align: right;
  letter-spacing: .02em;
  border: none;
  white-space: nowrap;
}

.table thead th:first-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.table thead th:last-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

.table tbody tr {
  border-bottom: 1px solid var(--slate-200);
  transition: background .15s;
}

.table tbody tr:hover { background: var(--gold-100); }
.table tbody tr:last-child { border-bottom: none; }

.table td {
  padding: 13px 16px;
  color: var(--navy-700);
  vertical-align: middle;
}

.table td .case-num {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy-600);
  font-size: .9rem;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success  { background: var(--green-100); color: #15803D; }
.badge-danger   { background: var(--red-100); color: #B91C1C; }
.badge-warning  { background: var(--amber-100); color: #92400E; }
.badge-info     { background: var(--blue-100); color: #1D4ED8; }
.badge-primary  { background: #E0E7FF; color: #3730A3; }
.badge-secondary{ background: var(--slate-200); color: var(--slate-700); }
.badge-dark     { background: var(--navy-700); color: var(--gold-300); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: .85rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-600), var(--navy-500));
  color: var(--white);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: var(--shadow-gold); }

.btn-success { background: var(--green-500); color: var(--white); }
.btn-success:hover { filter: brightness(.9); }

.btn-danger  { background: var(--red-500); color: var(--white); }
.btn-danger:hover { filter: brightness(.9); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--slate-300);
  color: var(--slate-700);
}
.btn-outline:hover { border-color: var(--navy-500); color: var(--navy-500); }

.btn-sm { padding: 6px 12px; font-size: .78rem; border-radius: var(--radius-sm); }
.btn-icon { padding: 8px; }
.btn-icon svg { width: 16px; height: 16px; }

.btn-link {
  background: none; border: none; color: var(--navy-500);
  font-size: .82rem; cursor: pointer; text-decoration: underline;
  font-family: var(--font-main);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .82rem; font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 6px;
}
.form-label .required { color: var(--red-500); margin-right: 3px; }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: .88rem;
  color: var(--navy-800);
  background: var(--white);
  transition: var(--transition);
  direction: rtl;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(21,54,104,.12);
}

.form-control::placeholder { color: var(--slate-300); }

textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

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

.form-hint { font-size: .75rem; color: var(--slate-500); margin-top: 4px; }
.form-error { font-size: .75rem; color: var(--red-500); margin-top: 4px; font-weight: 500; }

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--slate-100);
}
.upload-zone:hover { border-color: var(--navy-500); background: #EFF6FF; }
.upload-zone.dragover { border-color: var(--gold-500); background: var(--gold-100); }
.upload-zone input[type=file] { display: none; }
.upload-zone .upload-icon { font-size: 2.5rem; margin-bottom: 10px; }
.upload-zone p { color: var(--slate-500); font-size: .85rem; }
.upload-zone .upload-btn { color: var(--navy-500); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: .88rem;
  margin-bottom: 20px;
  border-right: 4px solid;
}
.alert svg { flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; }
.alert-success { background: var(--green-100); border-color: var(--green-500); color: #14532D; }
.alert-danger { background: var(--red-100); border-color: var(--red-500); color: #7F1D1D; }
.alert-warning { background: var(--amber-100); border-color: var(--amber-500); color: #78350F; }
.alert-info { background: var(--blue-100); border-color: var(--blue-500); color: #1E3A5F; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 200;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--slate-200);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 1rem; font-weight: 700; color: var(--navy-800); }
.modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--slate-500); padding: 4px;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.modal-close:hover { background: var(--slate-100); color: var(--navy-800); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--slate-200);
  display: flex; justify-content: flex-start; gap: 10px;
}

/* ============================================================
   NOTIFICATIONS PANEL
   ============================================================ */
.notif-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 150;
}
.notif-overlay.open { display: block; }

.notif-panel {
  position: fixed;
  top: 0; right: var(--sidebar-w);
  width: 360px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 151;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.notif-panel.open { transform: translateX(0); }

.notif-header {
  padding: 18px 20px;
  border-bottom: 2px solid var(--gold-500);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; color: var(--navy-800);
}

.notif-list { flex: 1; overflow-y: auto; }

.notif-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--slate-200);
  cursor: pointer; transition: background .15s;
  position: relative;
}
.notif-item:hover { background: var(--slate-100); }
.notif-item.unread::before {
  content: '';
  position: absolute; right: 12px; top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%; background: var(--gold-500);
}
.notif-item.unread { background: #FFFDF5; }

.notif-item-title { font-size: .85rem; font-weight: 600; color: var(--navy-800); margin-bottom: 4px; padding-right: 14px; }
.notif-item-msg { font-size: .78rem; color: var(--slate-500); line-height: 1.5; }
.notif-item-time { font-size: .72rem; color: var(--slate-300); margin-top: 5px; }

.notif-empty { text-align: center; padding: 40px 20px; color: var(--slate-400); font-size: .88rem; }
.notif-loading { text-align: center; padding: 30px; color: var(--slate-400); }

/* ============================================================
   STATUS TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding: 8px 0;
}
.timeline::before {
  content: '';
  position: absolute; right: 15px; top: 0; bottom: 0;
  width: 2px;
  background: var(--slate-200);
}

.timeline-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 12px 0;
  position: relative;
}

.timeline-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--slate-200);
  z-index: 1;
}
.timeline-dot.active { background: var(--gold-500); }
.timeline-dot.done { background: var(--green-500); }
.timeline-dot svg { width: 15px; height: 15px; stroke: white; }

.timeline-content { flex: 1; }
.timeline-title { font-size: .88rem; font-weight: 600; color: var(--navy-800); }
.timeline-sub { font-size: .78rem; color: var(--slate-500); margin-top: 2px; }

/* ============================================================
   SEARCH & FILTERS
   ============================================================ */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px; align-items: flex-end;
}
.filter-bar .search-box {
  position: relative; flex: 1; min-width: 220px;
}
.filter-bar .search-box input {
  padding-right: 40px;
}
.filter-bar .search-icon {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--slate-400);
}
.filter-bar .search-icon svg { width: 16px; height: 16px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 24px; flex-wrap: wrap;
}
.page-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--slate-300);
  background: var(--white); color: var(--navy-700);
  font-family: var(--font-main); font-size: .82rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: var(--transition);
}
.page-btn:hover { border-color: var(--navy-500); color: var(--navy-500); }
.page-btn.active { background: var(--navy-700); border-color: var(--navy-700); color: var(--gold-400); }

/* ============================================================
   CASE DETAIL VIEW
   ============================================================ */
.case-header-card {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.case-header-card::after {
  content: '⚖️';
  position: absolute;
  left: 20px; top: 20px;
  font-size: 5rem;
  opacity: .06;
}
.case-num-display {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 6px;
}
.case-title-display { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.case-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.case-meta-item { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: rgba(255,255,255,.7); }
.case-meta-item svg { width: 14px; height: 14px; opacity: .7; }

/* ============================================================
   DOCUMENT VIEWER
   ============================================================ */
.doc-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: var(--transition);
}
.doc-card:hover { border-color: var(--navy-400); box-shadow: var(--shadow-sm); }
.doc-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-icon svg { stroke: var(--blue-500); width: 20px; height: 20px; }
.doc-name { font-size: .88rem; font-weight: 600; color: var(--navy-800); }
.doc-size { font-size: .75rem; color: var(--slate-400); }

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--navy-700); margin-bottom: 8px; }
.empty-state p { font-size: .85rem; color: var(--slate-500); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  display: flex; min-height: 100vh; direction: rtl;
}

.login-visual {
  flex: 1;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-500) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.login-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(200,169,81,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200,169,81,.05) 0%, transparent 40%),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,.015) 40px, rgba(255,255,255,.015) 41px);
}

.login-visual-content { position: relative; z-index: 1; text-align: center; color: white; }
.login-logo { font-size: 5rem; margin-bottom: 24px; }
.login-visual h1 { font-size: 1.8rem; font-weight: 800; color: var(--gold-400); margin-bottom: 12px; }
.login-visual p { color: rgba(255,255,255,.6); font-size: .92rem; line-height: 1.8; max-width: 340px; }

.login-divider {
  width: 50px; height: 3px;
  background: var(--gold-500);
  border-radius: 2px;
  margin: 20px auto;
}

.login-features { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; text-align: right; }
.login-feature {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.7); font-size: .84rem;
}
.login-feature .feat-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(200,169,81,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.login-feature .feat-icon svg { stroke: var(--gold-400); width: 15px; height: 15px; }

.login-form-side {
  width: 420px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 48px;
  background: var(--white);
}

.login-form-header { text-align: center; margin-bottom: 32px; }
.login-form-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy-800); margin-bottom: 6px; }
.login-form-header p { font-size: .84rem; color: var(--slate-500); }

.login-form { width: 100%; }

.login-form .form-control {
  padding: 12px 16px;
  font-size: .92rem;
}

.login-form .btn-primary {
  width: 100%; justify-content: center;
  padding: 13px;
  font-size: .95rem;
  margin-top: 8px;
}

.login-footer-text {
  text-align: center; margin-top: 24px;
  font-size: .8rem; color: var(--slate-400);
}
.login-footer-text a { color: var(--navy-500); font-weight: 600; text-decoration: none; }

/* ============================================================
   DECISION SECTION
   ============================================================ */
.decision-panel {
  background: linear-gradient(135deg, #FFFBF0, #FFF8E1);
  border: 2px solid var(--gold-300);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
}
.decision-panel h3 {
  font-size: 1rem; font-weight: 700; color: var(--navy-800);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.decision-panel h3 svg { stroke: var(--gold-500); width: 18px; height: 18px; }

.decision-options { display: flex; gap: 12px; margin-bottom: 16px; }
.decision-opt {
  flex: 1;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  background: var(--white);
}
.decision-opt:hover { border-color: var(--navy-400); }
.decision-opt.selected { border-color: var(--gold-500); background: var(--gold-100); }
.decision-opt input[type=radio] { display: none; }
.decision-opt .opt-icon { font-size: 1.6rem; margin-bottom: 6px; }
.decision-opt .opt-label { font-size: .85rem; font-weight: 700; color: var(--navy-800); }
.decision-opt .opt-sub { font-size: .72rem; color: var(--slate-500); margin-top: 2px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-right: 0; }
  .page-body { padding: 16px; }
  .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; }
  .login-page { flex-direction: column; }
  .login-visual { min-height: 240px; padding: 30px 20px; }
  .login-form-side { width: 100%; padding: 30px 24px; }
  .case-meta { gap: 12px; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 20px; }
.text-muted { color: var(--slate-500); }
.text-gold { color: var(--gold-500); }
.text-navy { color: var(--navy-600); }
.text-danger { color: var(--red-500); }
.text-success { color: var(--green-500); }
.fw-bold { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fs-sm { font-size: .82rem; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.ms-auto { margin-right: auto; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--slate-100); }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-500); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .35s ease both; }
.fade-in-delay { animation: fadeIn .5s ease .1s both; }
