/* ============================================================
   GATI EXPRESS LOGISTICS ERP - Main Stylesheet
   ============================================================ */

:root {
  --primary: #1a3c6e;
  --primary-dark: #122a50;
  --primary-light: #2a5298;
  --secondary: #e85d04;
  --secondary-light: #fb8500;
  --accent: #00b4d8;
  --success: #06a946;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #0dcaf0;
  --light: #f8f9fa;
  --dark: #212529;
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --topbar-height: 60px;
  --card-border-radius: 12px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-sidebar: #0f172a;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --input-bg: #1e293b;
  --input-border: #475569;
}

[data-theme="light"] {
  --bg-main: #f0f2f5;
  --bg-card: #ffffff;
  --bg-sidebar: #1a3c6e;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --border-color: #e9ecef;
  --input-bg: #ffffff;
  --input-border: #ced4da;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-main, #f0f2f5);
  color: var(--text-primary, #212529);
  font-size: 14px;
  transition: var(--transition);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--primary);
  background: linear-gradient(180deg, #1a3c6e 0%, #122a50 60%, #0d1f3c 100%);
  z-index: 1000;
  transition: width 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 15px rgba(0,0,0,0.2);
}

#sidebar.collapsed { width: var(--sidebar-collapsed); }

.sidebar-header {
  padding: 0 16px;
  height: 65px;
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 12px;
  flex-shrink: 0;
}

.sidebar-logo {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sidebar-title {
  color: white;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  transition: var(--transition);
  white-space: nowrap;
}

.sidebar-title span { display: block; font-weight: 400; font-size: 11px; opacity: 0.7; }
#sidebar.collapsed .sidebar-title { display: none; }

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

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.nav-section-title {
  padding: 10px 16px 6px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
}

#sidebar.collapsed .nav-section-title { visibility: hidden; }

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: var(--transition);
  gap: 12px;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  border-left: 3px solid transparent;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: white;
  background: rgba(255,255,255,0.1);
  border-left-color: var(--secondary);
}

.nav-link.active { background: rgba(232,93,4,0.2); }

.nav-link i {
  width: 22px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-link-text { font-size: 13px; font-weight: 500; flex: 1; }
#sidebar.collapsed .nav-link-text { display: none; }

.nav-arrow {
  font-size: 10px;
  margin-left: auto;
  transition: transform 0.3s;
}

.nav-link[aria-expanded="true"] .nav-arrow { transform: rotate(90deg); }
#sidebar.collapsed .nav-arrow { display: none; }

.nav-submenu {
  background: rgba(0,0,0,0.2);
  overflow: hidden;
}

.nav-submenu .nav-link {
  padding-left: 50px;
  font-size: 12.5px;
  border-left: none;
  padding-top: 8px;
  padding-bottom: 8px;
}

.nav-submenu .nav-link::before {
  content: '';
  position: absolute;
  left: 36px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

.nav-submenu .nav-link.active::before { background: var(--secondary); }
#sidebar.collapsed .nav-submenu { display: none !important; }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { color: white; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { color: rgba(255,255,255,0.5); font-size: 11px; text-transform: capitalize; }
#sidebar.collapsed .sidebar-user-info { display: none; }

/* Tooltip for collapsed sidebar */
#sidebar.collapsed .nav-link:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(var(--sidebar-collapsed) + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
#main-content {
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main-content.expanded { margin-left: var(--sidebar-collapsed); }

/* ============================================================
   TOP NAVBAR
   ============================================================ */
#topbar {
  height: var(--topbar-height);
  background: var(--bg-card, white);
  border-bottom: 1px solid var(--border-color, #e9ecef);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.topbar-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
}

.topbar-toggle:hover { background: var(--bg-main); color: var(--primary); }

.topbar-breadcrumb {
  flex: 1;
  font-size: 14px;
  color: var(--text-secondary);
}

.topbar-breadcrumb strong { color: var(--text-primary); }

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

.topbar-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
}

.topbar-btn:hover { background: var(--bg-main); color: var(--primary); }

.badge-count {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--danger);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.topbar-user:hover { background: var(--bg-main); }

.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info { line-height: 1.2; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.user-role { font-size: 11px; color: var(--text-secondary); text-transform: capitalize; }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content {
  padding: 24px;
  flex: 1;
}

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

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card, white);
  border-radius: var(--card-border-radius);
  border: 1px solid var(--border-color, #e9ecef);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

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

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

.card-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin: 0; }
.card-body { padding: 20px; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--border-color); background: transparent; }

/* ============================================================
   STAT CARDS (Dashboard)
   ============================================================ */
.stat-card {
  background: var(--bg-card, white);
  border-radius: var(--card-border-radius);
  padding: 20px;
  border: 1px solid var(--border-color, #e9ecef);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

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

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

.stat-card.primary::before { background: var(--primary); }
.stat-card.success::before { background: var(--success); }
.stat-card.warning::before { background: var(--warning); }
.stat-card.danger::before { background: var(--danger); }
.stat-card.info::before { background: var(--info); }
.stat-card.secondary::before { background: var(--secondary); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.stat-icon.primary { background: rgba(26,60,110,0.12); color: var(--primary); }
.stat-icon.success { background: rgba(6,169,70,0.12); color: var(--success); }
.stat-icon.warning { background: rgba(255,193,7,0.12); color: #d4920a; }
.stat-icon.danger { background: rgba(220,53,69,0.12); color: var(--danger); }
.stat-icon.info { background: rgba(13,202,240,0.12); color: #0891b2; }
.stat-icon.secondary { background: rgba(232,93,4,0.12); color: var(--secondary); }

.stat-value { font-size: 26px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 5px; font-weight: 500; }
.stat-change { font-size: 11px; margin-top: 8px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive { border-radius: 8px; overflow: hidden; }

.table {
  margin: 0;
  color: var(--text-primary);
}

.table thead th {
  background: var(--bg-main, #f8f9fa);
  border-bottom: 2px solid var(--border-color);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  padding: 12px 16px;
  white-space: nowrap;
}

.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: 13.5px;
}

.table tbody tr:hover { background: rgba(26,60,110,0.03); }
.table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.status-booked { background: #dbeafe; color: #1d4ed8; }
.status-packed { background: #fef3c7; color: #92400e; }
.status-loaded { background: #fee2e2; color: #991b1b; }
.status-dispatched { background: #ede9fe; color: #5b21b6; }
.status-in_transit { background: #fef3c7; color: #78350f; }
.status-reached_hub { background: #d1fae5; color: #065f46; }
.status-out_for_delivery { background: #bfdbfe; color: #1e3a8a; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-returned { background: #f3f4f6; color: #374151; }

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
  background: var(--input-bg, white);
  border: 1px solid var(--input-border, #ced4da);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13.5px;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,60,110,0.15);
  background: var(--input-bg, white);
  color: var(--text-primary);
}

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

.input-group-text {
  background: var(--bg-main);
  border: 1px solid var(--input-border);
  color: var(--text-secondary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: var(--primary);
  color: white;
}

.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); transform: translateY(-1px); }

.btn-warning { background: linear-gradient(135deg, #f59e0b, var(--warning)); border-color: #f59e0b; color: white; }
.btn-warning:hover { color: white; transform: translateY(-1px); }

.btn-success { background: linear-gradient(135deg, #059669, var(--success)); border-color: #059669; color: white; }
.btn-success:hover { color: white; transform: translateY(-1px); }

.btn-danger { background: linear-gradient(135deg, #b91c1c, var(--danger)); border-color: #b91c1c; color: white; }
.btn-danger:hover { color: white; transform: translateY(-1px); }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-icon { padding: 6px 10px; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-content {
  background: var(--bg-card, white);
  border-radius: var(--card-border-radius);
  border: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
  padding: 16px 20px;
  border-bottom: none;
}

.modal-title { font-size: 16px; font-weight: 600; }
.btn-close { filter: brightness(0) invert(1); opacity: 0.8; }

.modal-footer { border-top: 1px solid var(--border-color); padding: 12px 20px; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { border-radius: 10px; border: none; font-size: 13.5px; padding: 12px 16px; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #78350f; }
.alert-info { background: #dbeafe; color: #1d4ed8; }

/* ============================================================
   LOADING
   ============================================================ */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  width: 50px; height: 50px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   TRACKING PAGE
   ============================================================ */
.tracking-timeline { position: relative; padding: 0; }

.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item:last-child::before { display: none; }

.timeline-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-icon.active { background: var(--primary); color: white; }
.timeline-icon.completed { background: var(--success); color: white; }
.timeline-icon.pending { background: var(--border-color); color: var(--text-secondary); }

.timeline-content { flex: 1; padding-top: 8px; }
.timeline-title { font-weight: 600; font-size: 14px; }
.timeline-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.timeline-time { font-size: 11px; color: var(--text-secondary); }

/* ============================================================
   PRINT / PDF STYLES
   ============================================================ */
@media print {
  #sidebar, #topbar, .no-print, .btn, .breadcrumb { display: none !important; }
  #main-content { margin-left: 0 !important; }
  .page-content { padding: 0 !important; }
  body { background: white !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
  
  @page {
    size: A4;
    margin: 10mm 12mm;
  }
}

/* ============================================================
   DOCUMENT STYLES (Invoice, LR, Quotation)
   ============================================================ */
.document-wrapper {
  max-width: 210mm;
  margin: 0 auto;
  background: white;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.doc-header {
  border: 2px solid #1a3c6e;
  border-radius: 8px;
  overflow: hidden;
}

.doc-company-section {
  background: linear-gradient(135deg, #1a3c6e, #2a5298);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.doc-company-logo {
  width: 70px; height: 70px;
  background: white;
  border-radius: 8px;
  object-fit: contain;
  padding: 4px;
}

.doc-company-info h1 { color: white; font-size: 20px; font-weight: 800; margin: 0; letter-spacing: 0.5px; }
.doc-company-info p { color: rgba(255,255,255,0.85); font-size: 11.5px; margin: 1px 0 0; }

.doc-title-bar {
  background: #e85d04;
  color: white;
  text-align: center;
  padding: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.doc-info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #ddd;
}

.doc-info-box {
  padding: 12px 16px;
  border-right: 1px solid #ddd;
}

.doc-info-box:last-child { border-right: none; }

.doc-info-row { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 12px; }
.doc-info-label { font-weight: 600; color: #555; }
.doc-info-value { color: #222; font-weight: 500; }

.doc-parties { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #ddd; }
.doc-party { padding: 12px 16px; border-right: 1px solid #ddd; }
.doc-party:last-child { border-right: none; }
.doc-party-title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #1a3c6e; border-bottom: 1px solid #1a3c6e; padding-bottom: 4px; margin-bottom: 6px; }
.doc-party-name { font-size: 14px; font-weight: 700; color: #222; }
.doc-party-detail { font-size: 11.5px; color: #555; margin-top: 2px; }

.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th { background: #1a3c6e; color: white; padding: 8px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; border: 1px solid #1a3c6e; }
.doc-table td { padding: 8px 12px; font-size: 12.5px; border: 1px solid #ddd; }
.doc-table tfoot td { background: #f8f9fa; font-weight: 600; }
.doc-table .total-row td { background: #1a3c6e; color: white; font-weight: 700; font-size: 13px; }

.doc-amount-words {
  padding: 10px 16px;
  border: 1px solid #ddd;
  margin: 0;
  font-size: 12px;
  background: #f8f9fa;
}

.doc-footer-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #ddd;
}

.doc-terms { padding: 12px 16px; font-size: 11.5px; }
.doc-sign { padding: 12px 16px; text-align: center; border-left: 1px solid #ddd; }
.doc-sign-line { border-top: 1.5px solid #333; margin-top: 50px; padding-top: 4px; font-size: 11px; font-weight: 600; }

/* ============================================================
   LR / BUILTY SPECIFIC
   ============================================================ */
.lr-wrapper { border: 2px solid #1a3c6e; font-size: 12px; }
.lr-header { background: #1a3c6e; color: white; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.lr-copy-badge { background: #e85d04; color: white; padding: 2px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.lr-body { padding: 10px; }
.lr-row { display: flex; border: 1px solid #ccc; margin-bottom: 4px; }
.lr-cell { padding: 6px 10px; border-right: 1px solid #ccc; flex: 1; }
.lr-cell:last-child { border-right: none; }
.lr-cell-label { font-size: 10px; font-weight: 700; color: #1a3c6e; text-transform: uppercase; }
.lr-cell-value { font-size: 13px; font-weight: 600; margin-top: 2px; }
.lr-dashed { border-top: 2px dashed #999; margin: 8px 0; }

/* ============================================================
   DARK MODE ADJUSTMENTS
   ============================================================ */
[data-theme="dark"] .card,
[data-theme="dark"] #topbar,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .dropdown-menu {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .table tbody tr:hover { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .table { color: var(--text-primary); }
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select { background: var(--input-bg) !important; border-color: var(--input-border) !important; color: var(--text-primary) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  #sidebar { width: var(--sidebar-collapsed); }
  #sidebar.mobile-open { width: var(--sidebar-width); }
  #main-content { margin-left: var(--sidebar-collapsed); }
  .stat-value { font-size: 20px; }
}

@media (max-width: 768px) {
  #sidebar { transform: translateX(-100%); width: var(--sidebar-width); }
  #sidebar.mobile-open { transform: translateX(0); }
  #main-content { margin-left: 0; }
  .page-content { padding: 16px; }
  .topbar-breadcrumb { display: none; }
  .user-info { display: none; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.cursor-pointer { cursor: pointer; }
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.bg-primary-gradient { background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important; }
.bg-secondary-gradient { background: linear-gradient(135deg, var(--secondary), var(--secondary-light)) !important; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--border-color); margin: 16px 0; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 64px; color: var(--border-color); margin-bottom: 16px; display: block; }
.empty-state h5 { color: var(--text-secondary); font-weight: 600; }
.empty-state p { color: var(--text-secondary); font-size: 13px; }

/* Notification Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
