/* ============================================================
   Auto Hire Pro - Admin Dashboard Styles
   Mobile-first | Pure CSS3 | Dashboard UI
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent: #e4b23e;
  --color-accent-dark: #c99a2e;
  --color-accent-light: #f0d06e;
  --color-white: #ffffff;
  --color-off-white: #f4f5f9;
  --color-light: #e8e9f0;
  --color-gray-100: #f0f1f5;
  --color-gray-200: #dcdce6;
  --color-gray-300: #b5b5c8;
  --color-gray-400: #8a8aa0;
  --color-gray-500: #6b6b80;
  --color-gray-600: #4a4a5a;
  --color-dark: #0f0f1a;
  --color-text: #2d2d3f;
  --color-text-light: #6b6b80;
  --color-border: #dcdce6;
  --color-success: #28a745;
  --color-success-bg: #e6f9ed;
  --color-warning: #ffc107;
  --color-warning-bg: #fff8e1;
  --color-danger: #dc3545;
  --color-danger-bg: #fde8ea;
  --color-info: #17a2b8;
  --color-info-bg: #e3f7fc;
  --color-purple: #6f42c1;
  --color-purple-bg: #f0e8ff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sidebar-width: 260px;
  --topbar-height: 64px;
  --content-padding: 24px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}

/* ============================================================
   APP LAYOUT
   ============================================================ */
.app-layout {
  display: flex;
  min-height: 100dvh;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 0;
  min-width: 0;
  transition: margin-left var(--transition);
}

.content-wrapper {
  flex: 1;
  padding: var(--content-padding);
  width: 100%;
  max-width: 100%;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 300px;
  height: 100dvh;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  z-index: 1100;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar.open {
  left: 0;
}

.sidebar-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: var(--topbar-height);
}

.text-logo{display:flex;flex-direction:column;text-decoration:none;line-height:1.1;flex-shrink:0;gap:0;}
.logo-title{font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-size:28px;font-weight:800;color:#F47A20;letter-spacing:-0.5px;}
.logo-subtitle{font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:2px;color:#fff;margin-top:2px;padding-bottom:8px;border-bottom:5px solid #F47A20;}

.sidebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background var(--transition);
  min-height: 44px;
  min-width: 44px;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --- Sidebar Nav --- */
.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

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

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  min-height: 44px;
}

.sidebar-nav a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav a.active {
  color: var(--color-primary);
  background: var(--color-accent);
  font-weight: 700;
}

.nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* --- Sidebar Footer --- */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

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

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-white);
  line-height: 1.3;
}

.user-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
  margin-top: 2px;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  min-height: 44px;
}

.btn-logout:hover {
  background: rgba(220, 53, 69, 0.2);
  color: #ff6b7a;
}

/* ============================================================
   OVERLAY
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--content-padding);
  height: var(--topbar-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar .hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.topbar .hamburger:hover {
  background: var(--color-gray-100);
  border-color: var(--color-gray-300);
}

.page-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-right .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  min-height: 40px;
}

/* ============================================================
   APP FOOTER
   ============================================================ */
.app-footer {
  padding: 16px var(--content-padding);
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-gray-400);
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-family);
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  min-width: 44px;
  text-align: center;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn-secondary {
  background: var(--color-gray-200);
  color: var(--color-text);
  border-color: var(--color-gray-200);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-gray-300);
  border-color: var(--color-gray-300);
}

.btn-success {
  background: var(--color-success);
  color: var(--color-white);
  border-color: var(--color-success);
}

.btn-success:hover:not(:disabled) {
  background: #218838;
  border-color: #218838;
}

.btn-danger {
  background: var(--color-danger);
  color: var(--color-white);
  border-color: var(--color-danger);
}

.btn-danger:hover:not(:disabled) {
  background: #c82333;
  border-color: #c82333;
}

.btn-warning {
  background: var(--color-warning);
  color: var(--color-primary);
  border-color: var(--color-warning);
}

.btn-warning:hover:not(:disabled) {
  background: #e0a800;
  border-color: #e0a800;
}

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

.btn-outline:hover:not(:disabled) {
  background: var(--color-gray-100);
  border-color: var(--color-gray-300);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.825rem;
  min-height: 38px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  min-height: 52px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 1.15rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   DASHBOARD CARDS / STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gray-300);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-icon.icon-primary { background: rgba(228, 178, 62, 0.15); color: var(--color-accent-dark); }
.stat-icon.icon-success { background: rgba(40, 167, 69, 0.12); color: var(--color-success); }
.stat-icon.icon-danger { background: rgba(220, 53, 69, 0.12); color: var(--color-danger); }
.stat-icon.icon-info { background: rgba(23, 162, 184, 0.12); color: var(--color-info); }
.stat-icon.icon-warning { background: rgba(255, 193, 7, 0.15); color: #d39e00; }
.stat-icon.icon-purple { background: rgba(111, 66, 193, 0.12); color: var(--color-purple); }

.stat-info {
  flex: 1;
  min-width: 0;
}

.stat-info .stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-info .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
}

.stat-change.up { color: var(--color-success); }
.stat-change.down { color: var(--color-danger); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-gray-100);
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--color-border);
  background: var(--color-gray-100);
  font-size: 0.85rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -20px;
  padding: 0 20px;
}

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

table thead {
  background: var(--color-gray-100);
}

table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  white-space: nowrap;
  border-bottom: 2px solid var(--color-border);
}

table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

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

table tbody tr:hover {
  background: var(--color-gray-100);
}

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

table .cell-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

table .cell-actions .btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  min-height: 38px;
}

/* --- Table mobile card view --- */
@media (max-width: 767px) {
  .table-card-view table,
  .table-card-view thead,
  .table-card-view tbody,
  .table-card-view th,
  .table-card-view td,
  .table-card-view tr {
    display: block;
  }

  .table-card-view thead {
    display: none;
  }

  .table-card-view tbody tr {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
  }

  .table-card-view td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-gray-100);
    text-align: right;
    gap: 12px;
  }

  .table-card-view td:last-child {
    border-bottom: none;
  }

  .table-card-view td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--color-text-light);
    text-align: left;
    flex-shrink: 0;
  }

  .table-card-view .cell-actions {
    justify-content: flex-end;
    border-bottom: none;
    padding-top: 8px;
  }
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: var(--radius-full);
  line-height: 1.4;
  white-space: nowrap;
}

.badge-primary {
  background: rgba(228, 178, 62, 0.15);
  color: var(--color-accent-dark);
}

.badge-secondary {
  background: var(--color-gray-200);
  color: var(--color-gray-600);
}

.badge-success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.badge-warning {
  background: var(--color-warning-bg);
  color: #d39e00;
}

.badge-info {
  background: var(--color-info-bg);
  color: var(--color-info);
}

.badge-purple {
  background: var(--color-purple-bg);
  color: var(--color-purple);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid transparent;
  line-height: 1.5;
}

.alert-success {
  background: var(--color-success-bg);
  color: #155724;
  border-color: #c3e6cb;
}

.alert-danger {
  background: var(--color-danger-bg);
  color: #721c24;
  border-color: #f5c6cb;
}

.alert-warning {
  background: var(--color-warning-bg);
  color: #856404;
  border-color: #ffeeba;
}

.alert-info {
  background: var(--color-info-bg);
  color: #0c5460;
  border-color: #bee5eb;
}

.alert-dismiss {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 4px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-dismiss:hover {
  opacity: 1;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 16px;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--color-danger);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(228, 178, 62, 0.12);
}

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

.form-control.error {
  border-color: var(--color-danger);
}

.form-control:disabled,
.form-control[readonly] {
  background: var(--color-gray-100);
  opacity: 0.7;
  cursor: not-allowed;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6b80' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select.form-control[multiple] {
  background-image: none;
  padding: 8px;
  min-height: 120px;
}

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

.form-help {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

.form-error {
  display: block;
  font-size: 0.8rem;
  color: var(--color-danger);
  margin-top: 4px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
  cursor: pointer;
}

.form-check label {
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
}

/* --- Input groups --- */
.input-group {
  display: flex;
  align-items: center;
}

.input-group .form-control {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
}

.input-group .input-append {
  display: flex;
  align-items: center;
  padding: 0 14px;
  min-height: 44px;
  background: var(--color-gray-100);
  border: 2px solid var(--color-border);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90dvh;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.modal-dialog > form {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.modal.active .modal-dialog {
  transform: scale(1) translateY(0);
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-gray-400);
  cursor: pointer;
  transition: color var(--transition);
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--color-danger);
  background: var(--color-gray-100);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-gray-100);
}

.modal-sm .modal-dialog { max-width: 440px; }
.modal-lg .modal-dialog { max-width: 850px; }
.modal-xl .modal-dialog { max-width: 1024px; }

.modal-full {
  padding: 0;
  align-items: center;
  justify-content: center;
}

.modal-full .modal-dialog {
  max-width: 80%;
  max-height: 80dvh;
  width: 80%;
  height: 80dvh;
  border-radius: var(--radius-lg);
}

.modal-full .modal-header {
  padding: 12px 24px;
  flex-shrink: 0;
}

.modal-full .modal-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.modal-full .modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  flex: 1;
}

.modal-full .modal-close {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  color: var(--color-text);
}

.modal-full .modal-close:hover {
  color: var(--color-danger);
  background: var(--color-gray-200);
}

/* ============================================================
   PLANNER / CALENDAR
   ============================================================ */
.planner-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.planner-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.planner-nav .btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  min-height: 40px;
}

.planner-nav h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 160px;
  text-align: center;
}

.planner-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.planner-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.planner-legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* --- Calendar Grid --- */
.planner-calendar {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.calendar-header {
  display: grid;
  grid-template-columns: 120px repeat(7, 1fr);
  background: var(--color-gray-100);
  border-bottom: 2px solid var(--color-border);
}

.calendar-header-cell {
  padding: 10px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.calendar-header-cell:last-child {
  border-right: none;
}

.calendar-row {
  display: grid;
  grid-template-columns: 120px repeat(7, 1fr);
  border-bottom: 1px solid var(--color-border);
}

.calendar-row:last-child {
  border-bottom: none;
}

.calendar-time {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  border-right: 1px solid var(--color-border);
  background: var(--color-gray-100);
}

.calendar-cell {
  position: relative;
  min-height: 60px;
  padding: 4px;
  border-right: 1px solid var(--color-border);
  cursor: pointer;
  transition: background var(--transition);
}

.calendar-cell:last-child {
  border-right: none;
}

.calendar-cell:hover {
  background: var(--color-gray-100);
}

/* --- Booking Blocks --- */
.calendar-booking {
  padding: 4px 6px;
  margin-bottom: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--transition);
  min-height: 22px;
  display: flex;
  align-items: center;
}

.calendar-booking:hover {
  opacity: 0.8;
}

.calendar-booking.booking-confirmed {
  background: rgba(40, 167, 69, 0.2);
  color: #155724;
  border-left: 3px solid var(--color-success);
}

.calendar-booking.booking-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #856404;
  border-left: 3px solid var(--color-warning);
}

.calendar-booking.booking-active {
  background: rgba(23, 162, 184, 0.2);
  color: #0c5460;
  border-left: 3px solid var(--color-info);
}

.calendar-booking.booking-completed {
  background: rgba(108, 117, 125, 0.15);
  color: #383d41;
  border-left: 3px solid var(--color-gray-400);
}

.calendar-booking.booking-cancelled {
  background: rgba(220, 53, 69, 0.12);
  color: #721c24;
  border-left: 3px solid var(--color-danger);
  text-decoration: line-through;
}

/* ============================================================
   FILTERS / SEARCH BAR
   ============================================================ */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.filters-bar .form-control,
.filters-bar select.form-control {
  min-width: 160px;
  flex: 1;
  max-width: 240px;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box .form-control {
  padding-right: 44px;
  height: 44px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.1);
}

.search-box .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-400);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.search-box .search-icon:hover {
  color: var(--color-primary);
  background: var(--color-gray-100);
}

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

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

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

.empty-state p {
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto 20px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--color-gray-100);
  border-color: var(--color-gray-300);
}

.pagination .active {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.pagination .disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-accent-dark);
}

.breadcrumb-separator {
  color: var(--color-gray-300);
  font-size: 0.7rem;
}

/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 500;
  min-width: 200px;
  padding: 6px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-menu a,
.dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--color-text);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  min-height: 44px;
  text-align: left;
  font-family: var(--font-family);
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: var(--color-gray-100);
}

.dropdown-menu .dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 6px 0;
}

/* ============================================================
   SPINNER / LOADING
   ============================================================ */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
  border-radius: inherit;
}

/* ============================================================
   NOTIFICATIONS / TOASTS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: calc(100% - 40px);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  animation: slideInRight 0.3s ease;
}

.toast.toast-success { border-left: 4px solid var(--color-success); }
.toast.toast-danger { border-left: 4px solid var(--color-danger); }
.toast.toast-warning { border-left: 4px solid var(--color-warning); }
.toast.toast-info { border-left: 4px solid var(--color-info); }

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--color-accent-dark); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: #d39e00; }
.text-info { color: var(--color-info); }
.text-muted { color: var(--color-text-light); }

.bg-white { background: var(--color-white); }
.bg-light { background: var(--color-gray-100); }
.bg-primary-light { background: rgba(228, 178, 62, 0.08); }

.d-flex { display: flex; }
.d-flex-wrap { flex-wrap: wrap; }
.d-inline-flex { display: inline-flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

.flex-1 { flex: 1; min-width: 0; }
.flex-shrink-0 { flex-shrink: 0; }

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

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }

.border { border: 1px solid var(--color-border); }
.border-top { border-top: 1px solid var(--color-border); }
.border-bottom { border-bottom: 1px solid var(--color-border); }

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

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* 480px+ */
@media (min-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-dialog {
    margin: 40px auto;
  }
}

/* 768px+ */
@media (min-width: 768px) {
  :root {
    --content-padding: 28px;
  }

  .sidebar {
    position: fixed;
    left: 0;
    width: var(--sidebar-width);
    max-width: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  .sidebar-close {
    display: none;
  }

  .main-content {
    margin-left: var(--sidebar-width);
  }

  .topbar .hamburger {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1024px+ */
@media (min-width: 1024px) {
  :root {
    --content-padding: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .form-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-xl .modal-dialog {
    max-width: 960px;
  }
}

/* 1280px+ */
@media (min-width: 1280px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .sidebar,
  .topbar,
  .app-footer,
  .btn,
  .no-print {
    display: none !important;
  }

  .main-content {
    margin-left: 0;
  }

  .content-wrapper {
    padding: 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  body {
    background: white;
    font-size: 12pt;
  }
}

/* ============================================================
   DASHBOARD REDESIGN
   ============================================================ */

.dash-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.dash-row-4 {
  grid-template-columns: 1fr;
}

.dash-row-2 {
  grid-template-columns: 1fr;
}

/* --- ROW 1: Statistics Cards --- */
.dash-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

.dash-stat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gray-300);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.dash-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-stat-icon-accent {
  background: rgba(228, 178, 62, 0.15);
  color: var(--color-accent-dark);
}

.dash-stat-icon-info {
  background: rgba(23, 162, 184, 0.12);
  color: var(--color-info);
}

.dash-stat-icon-success {
  background: rgba(40, 167, 69, 0.12);
  color: var(--color-success);
}

.dash-stat-icon-warning {
  background: rgba(255, 193, 7, 0.15);
  color: #d39e00;
}

.dash-stat-icon-purple {
  background: rgba(111, 66, 193, 0.12);
  color: var(--color-purple);
}

.dash-stat-body {
  flex: 1;
  min-width: 0;
}

.dash-stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.dash-stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

/* --- ROW 2: Booking Status Cards --- */
.dash-status-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.dash-status-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.dash-status-pending {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 1px solid #ffeeba;
  color: #856404;
}

.dash-status-pending:hover {
  border-color: #ffc107;
}

.dash-status-confirmed {
  background: linear-gradient(135deg, #e3f7fc, #d1ecf1);
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.dash-status-confirmed:hover {
  border-color: #17a2b8;
}

.dash-status-unpaid {
  background: linear-gradient(135deg, #fde8ea, #f8d7da);
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.dash-status-unpaid:hover {
  border-color: #dc3545;
}

.dash-status-cancelled {
  background: linear-gradient(135deg, #e9ecef, #d6d8db);
  border: 1px solid #c8cbcf;
  color: #383d41;
}

.dash-status-cancelled:hover {
  border-color: #6c757d;
}

.dash-status-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-status-body {
  flex: 1;
  min-width: 0;
}

.dash-status-label {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 2px;
}

.dash-status-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
}

/* --- ROW 3: Fleet Status --- */
.dash-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.dash-row > .dash-card {
  margin-bottom: 0;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-gray-100);
}

.dash-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.dash-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  background: rgba(228, 178, 62, 0.15);
  border-radius: var(--radius-full);
}

.dash-card-body {
  padding: 20px;
}

.dash-card-body-compact {
  padding: 0;
}

.dash-fleet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.dash-fleet-item {
  padding: 4px 0;
}

.dash-fleet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dash-fleet-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.dash-fleet-count {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.dash-progress-bar {
  width: 100%;
  height: 10px;
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.dash-progress-success {
  background: var(--color-success);
}

.dash-progress-primary {
  background: var(--color-accent);
}

.dash-progress-warning {
  background: var(--color-warning);
}

.dash-progress-danger {
  background: var(--color-danger);
}

.dash-fleet-total {
  text-align: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.dash-fleet-total strong {
  color: var(--color-primary);
}

/* --- ROW 4: Alerts --- */
.dash-alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  transition: background var(--transition);
  border-bottom: 1px solid var(--color-gray-100);
  color: inherit;
}

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

.dash-alert-item:hover {
  background: var(--color-gray-100);
  text-decoration: none;
}

.dash-alert-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.dash-alert-text {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.dash-alert-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.dash-alert-danger .dash-alert-count {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.dash-alert-warning .dash-alert-count {
  background: var(--color-warning-bg);
  color: #d39e00;
}

.dash-alert-danger .dash-alert-icon {
  color: var(--color-danger);
}

.dash-alert-warning .dash-alert-icon {
  color: #d39e00;
}

/* --- Quick Actions --- */
.dash-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dash-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  transition: all var(--transition);
  min-height: 100px;
  text-align: center;
}

.dash-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--color-text);
}

.dash-action-primary:hover {
  border-color: var(--color-accent);
  background: rgba(228, 178, 62, 0.06);
}

.dash-action-primary svg {
  color: var(--color-accent-dark);
}

.dash-action-success:hover {
  border-color: var(--color-success);
  background: rgba(40, 167, 69, 0.06);
}

.dash-action-success svg {
  color: var(--color-success);
}

.dash-action-info:hover {
  border-color: var(--color-info);
  background: rgba(23, 162, 184, 0.06);
}

.dash-action-info svg {
  color: var(--color-info);
}

.dash-action-warning:hover {
  border-color: #d39e00;
  background: rgba(255, 193, 7, 0.06);
}

.dash-action-warning svg {
  color: #d39e00;
}

/* --- ROW 5: Tables --- */
.dash-table {
  width: 100%;
}

.dash-table-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-gray-100);
  align-items: center;
}

.dash-table-row:last-child {
  border-bottom: none;
}

.dash-table-head {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  background: var(--color-gray-100);
  border-bottom: 1px solid var(--color-border);
}

.dash-table-link {
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
  cursor: pointer;
}

.dash-table-link:hover {
  background: var(--color-gray-100);
  text-decoration: none;
  color: inherit;
}

.dash-table-cell {
  font-size: 0.9rem;
  color: var(--color-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-table-head .dash-table-cell {
  color: var(--color-text-light);
}

/* --- ROW 6: Activity Feed --- */
.dash-activity {
  padding: 8px 0;
}

.dash-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-gray-100);
  transition: background var(--transition);
}

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

.dash-activity-item:hover {
  background: var(--color-gray-100);
}

.dash-activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  margin-top: 6px;
}

.dash-activity-body {
  flex: 1;
  min-width: 0;
}

.dash-activity-user {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

.dash-activity-action {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

.dash-activity-time {
  font-size: 0.78rem;
  color: var(--color-gray-400);
  flex-shrink: 0;
  white-space: nowrap;
}

/* --- Empty State --- */
.dash-empty {
  text-align: center;
  padding: 32px 20px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* --- Responsive --- */
@media (min-width: 640px) {
  .dash-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dash-row-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .dash-fleet-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .dash-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   DASHBOARD (original)
   ============================================================ */
.dashboard-search {
  position: relative;
  margin-bottom: 24px;
  overflow: visible;
}

.dashboard-search .card-body {
  position: relative;
  padding: 16px 20px;
}

.dashboard-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.dashboard-search-field {
  flex: 0 0 180px;
  height: 44px;
  font-size: 0.9rem;
  cursor: pointer;
}

@media (max-width: 600px) {
  .dashboard-search-field {
    flex: 1 1 100%;
  }
}

.search-results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 4px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  max-height: 360px;
  overflow-y: auto;
  z-index: 1000;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--color-text);
  transition: background var(--transition);
  border-bottom: 1px solid var(--color-gray-100);
  cursor: pointer;
}

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

.search-result-item:hover {
  background: var(--color-gray-100);
}

.search-result-item:hover .result-label {
  color: var(--color-primary);
}

.search-result-item .result-type {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 60px;
  text-align: center;
}

.search-result-item .result-label {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
}

.search-result-item .result-sub {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.search-result-empty {
  padding: 24px;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.quick-action-btn:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gray-300);
  transform: translateY(-1px);
  text-decoration: none;
}

.quick-action-icon {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.quick-action-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}

.quick-action-desc {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.cta-section {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 8px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 44px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: calc(var(--radius-md) * 1.5);
  box-shadow: 0 4px 14px rgba(26,26,46,0.15);
  transition: all 0.3s ease;
  min-width: 320px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  color: #fff;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,26,46,0.25);
  background: #2a2a4e;
  border-color: #2a2a4e;
  color: #fff;
}

.cta-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  pointer-events: none;
}

.cta-btn:hover::after {
  width: 300px;
  height: 300px;
}

.cta-btn-icon {
  font-size: 1.35rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.cta-btn:hover .cta-btn-icon {
  transform: scale(1.2) rotate(-5deg);
}

.cta-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26,26,46,0.15);
}

th.return-highlight,
td.return-highlight {
  background: #fff3cd !important;
  color: #856404 !important;
  font-weight: 600;
}

