/* ==========================================================================
   ŞAH VTC - Admin Dashboard Stylesheet
   Modern Dark SaaS, Carbon & Gold Trucker Accents
   ========================================================================== */

:root {
  --admin-bg: #090a0f;
  --admin-sidebar: #0f1118;
  --admin-card: #151824;
  --admin-card-hover: #1c2130;
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-primary: #f59e0b;
  --admin-primary-glow: rgba(245, 158, 11, 0.25);
  --admin-red: #ef4444;
  --admin-emerald: #10b981;
  --admin-blue: #38bdf8;
  --admin-purple: #a855f7;
  --admin-text: #f8fafc;
  --admin-muted: #94a3b8;
  --admin-dim: #64748b;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--admin-bg);
  color: var(--admin-text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Login Screen */
.admin-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(circle at 50% 20%, #1e2436 0%, #090a0f 70%);
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--admin-primary-glow);
  text-align: center;
}
.login-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.4));
}
.login-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.login-subtitle {
  color: var(--admin-muted);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}
.login-form .form-group {
  text-align: left;
  margin-bottom: 1.25rem;
}
.login-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-muted);
  margin-bottom: 0.5rem;
}
.login-form input {
  width: 100%;
  background: #0f1118;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.login-form input:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 10px var(--admin-primary-glow);
}
.btn-login {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}
.btn-login:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}
.demo-hint {
  margin-top: 1.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--admin-border);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--admin-dim);
}
.demo-hint code {
  color: var(--admin-primary);
}

/* Dashboard Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 270px;
  background: var(--admin-sidebar);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}
.sidebar-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--admin-border);
}
.sidebar-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.sidebar-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}
.sidebar-brand span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--admin-primary);
  letter-spacing: 1.5px;
}

.sidebar-nav {
  padding: 1.5rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
}
.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--admin-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.nav-item-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.nav-item-btn.active {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), transparent);
  color: var(--admin-primary);
  border-left: 3px solid var(--admin-primary);
}
.nav-item-btn i {
  width: 20px;
  font-size: 1.1rem;
}
.nav-badge {
  margin-left: auto;
  background: var(--admin-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
}

.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--admin-primary);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.admin-user-info strong {
  display: block;
  font-size: 0.85rem;
}
.admin-user-info span {
  font-size: 0.72rem;
  color: var(--admin-dim);
}
.btn-logout {
  background: transparent;
  border: none;
  color: var(--admin-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.btn-logout:hover {
  color: var(--admin-red);
  background: rgba(239, 68, 68, 0.1);
}

/* Main Content Area */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
}
.admin-topbar {
  height: 70px;
  border-bottom: 1px solid var(--admin-border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 17, 24, 0.5);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-body {
  padding: 2rem;
  flex: 1;
}

/* View Sections */
.admin-tab-view {
  display: none;
  animation: fadeIn 0.25s ease;
}
.admin-tab-view.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Stats Grid */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.admin-stat-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.admin-stat-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}
.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.stat-icon-gold { background: rgba(245, 158, 11, 0.15); color: var(--admin-primary); }
.stat-icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--admin-emerald); }
.stat-icon-blue { background: rgba(56, 189, 248, 0.15); color: var(--admin-blue); }
.stat-icon-purple { background: rgba(168, 85, 247, 0.15); color: var(--admin-purple); }

.stat-info-title {
  font-size: 0.8rem;
  color: var(--admin-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.stat-info-val {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 0.25rem;
}

/* Content Cards & Tables */
.content-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.content-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.content-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Data Table */
.data-table-wrapper {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.data-table th {
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  color: var(--admin-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}
.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}
.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.badge-pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-approved { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-rejected { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-active { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

/* Table Action Buttons */
.action-btns {
  display: flex;
  gap: 0.4rem;
}
.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
  background: var(--admin-card-hover);
  color: var(--admin-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}
.btn-icon:hover {
  background: var(--admin-primary);
  color: #000;
  border-color: var(--admin-primary);
}
.btn-icon.danger:hover {
  background: var(--admin-red);
  color: #fff;
  border-color: var(--admin-red);
}
.btn-icon.success:hover {
  background: var(--admin-emerald);
  color: #fff;
  border-color: var(--admin-emerald);
}

/* Forms in Admin */
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.admin-form-group {
  margin-bottom: 1.25rem;
}
.admin-form-group.full {
  grid-column: span 2;
}
.admin-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-muted);
  margin-bottom: 0.4rem;
}
.admin-input, .admin-select, .admin-textarea {
  width: 100%;
  background: #0d0f15;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}
.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 10px var(--admin-primary-glow);
}
.admin-textarea {
  min-height: 90px;
  resize: vertical;
}

/* Convoys Card Grid */
.admin-convoys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.admin-convoy-card {
  background: var(--admin-card-hover);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.admin-convoy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

/* Gallery Admin Grid */
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.admin-gallery-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  background: #000;
  aspect-ratio: 16 / 10;
}
.admin-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-gallery-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}

/* Dashboard Dual Grid (TrucksBook & Driver of the Month) */
.dashboard-dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

/* TrucksBook Showcase Card */
.tb-showcase-card {
  background: linear-gradient(145deg, #121824 0%, #0d121c 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.05);
  position: relative;
  overflow: hidden;
}
.tb-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #f59e0b);
}
.tb-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.tb-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.tb-logo-badge {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.tb-company-id {
  color: var(--admin-muted);
  font-size: 0.82rem;
  font-family: monospace;
}
.tb-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.tb-metric-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.tb-metric-label {
  display: block;
  color: var(--admin-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}
.tb-metric-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}
.tb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--admin-border);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tb-rank-pill {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--admin-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* MVP Driver of the Month Card */
.mvp-driver-card {
  background: linear-gradient(145deg, #1b1610 0%, #101217 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.08);
  position: relative;
  overflow: hidden;
}
.mvp-driver-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #d97706);
}
.mvp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.mvp-crown-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}
.mvp-card-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.mvp-avatar-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}
.mvp-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--admin-primary);
  background: #0f1118;
  position: relative;
  z-index: 2;
}
.mvp-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, transparent 70%);
  z-index: 1;
  animation: pulse-glow 2s infinite ease-in-out;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.08); }
}
.mvp-details {
  flex: 1;
}
.mvp-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}
.mvp-tag {
  color: var(--admin-muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.mvp-title-pill {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--admin-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}
.mvp-stats-row {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}
.mvp-quote {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--admin-muted);
  line-height: 1.4;
}

/* Convoys Calendar View */
.view-toggle-wrap {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 2px;
}
.view-toggle-wrap .btn {
  border-radius: 4px;
}
.calendar-card {
  background: #0f1118;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 1.5rem;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.calendar-month-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--admin-primary);
}
.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--admin-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-day-cell {
  background: #151824;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  min-height: 85px;
  padding: 0.5rem;
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
}
.cal-day-cell:hover {
  background: #1c2130;
  border-color: rgba(245, 158, 11, 0.3);
}
.cal-day-cell.other-month {
  opacity: 0.3;
  cursor: default;
}
.cal-day-cell.today {
  border-color: var(--admin-blue);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}
.cal-day-cell.has-convoy {
  background: linear-gradient(145deg, #1c1d18 0%, #151824 100%);
  border-color: var(--admin-primary);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}
.cal-day-number {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--admin-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.cal-convoy-badge {
  background: var(--admin-primary);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 4px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* TrucksBook Metric Strip */
.tb-integration-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0d131f 0%, #111a2e 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.tb-banner-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.tb-brand-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}
.tb-brand-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.tb-brand-sub {
  color: var(--admin-muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}
.tb-banner-actions {
  display: flex;
  gap: 0.75rem;
}
.tb-metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.tb-strip-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.strip-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--admin-muted);
  letter-spacing: 0.5px;
}
.strip-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin: 0.4rem 0;
}
.strip-note {
  font-size: 0.75rem;
  color: var(--admin-dim);
}

/* Fleet Showroom Styles */
.color-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.color-sample-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.color-sample-box:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--admin-primary);
  transform: translateY(-2px);
}
.color-preview {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.color-details strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
}
.color-details span {
  display: block;
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--admin-primary);
}
.color-details small {
  color: var(--admin-dim);
  font-size: 0.72rem;
}
.cb-radio-banner {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #cbd5e1;
  font-size: 0.88rem;
}
.cb-radio-banner i {
  font-size: 1.4rem;
  color: var(--admin-blue);
}
.fleet-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.fleet-truck-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.fleet-truck-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.fleet-truck-img-wrap {
  width: 100%;
  height: 180px;
  position: relative;
  background: #000;
}
.fleet-truck-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fleet-badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--admin-primary);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}
.fleet-truck-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fleet-truck-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}
.fleet-truck-role {
  color: var(--admin-muted);
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
}
.fleet-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding: 0.65rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
}
.fleet-specs-grid span {
  color: var(--admin-muted);
}
.fleet-specs-grid strong {
  color: #fff;
  display: block;
}

/* Ranks Grid */
.ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.rank-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}
.rank-card:hover {
  transform: translateY(-2px);
}
.rank-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto 0.75rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.rank-tier-1 .rank-icon-wrap { background: rgba(16, 185, 129, 0.15); color: var(--admin-emerald); }
.rank-tier-2 .rank-icon-wrap { background: rgba(56, 189, 248, 0.15); color: var(--admin-blue); }
.rank-tier-3 .rank-icon-wrap { background: rgba(245, 158, 11, 0.15); color: var(--admin-primary); }
.rank-tier-4 .rank-icon-wrap { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.rank-tier-5 .rank-icon-wrap { background: rgba(239, 68, 68, 0.15); color: var(--admin-red); }
.rank-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
}
.rank-km {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--admin-primary);
  margin-bottom: 0.5rem;
}
.rank-desc {
  font-size: 0.75rem;
  color: var(--admin-muted);
  line-height: 1.4;
}

/* Discipline Badges */
.badge-yellow-card {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}
.badge-red-card {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}
.badge-ban {
  background: #ef4444;
  color: #000;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* Discord Settings & Live Preview */
.discord-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.5rem;
}
.discord-preview-box {
  background: #313338;
  border-radius: 8px;
  padding: 1.25rem;
  color: #dbdee1;
  font-family: 'Inter', sans-serif;
}
.discord-preview-msg {
  display: flex;
  gap: 1rem;
}
.discord-preview-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.discord-preview-content {
  flex: 1;
}
.discord-preview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.discord-bot-name {
  color: #f2f3f5;
  font-weight: 600;
  font-size: 0.95rem;
}
.discord-bot-tag {
  background: #5865F2;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}
.discord-timestamp {
  color: #949ba4;
  font-size: 0.72rem;
}
.discord-embed-card {
  display: flex;
  background: #2b2d31;
  border-radius: 4px;
  overflow: hidden;
  max-width: 520px;
}
.discord-embed-border {
  width: 4px;
  background: #f59e0b;
  flex-shrink: 0;
}
.discord-embed-body {
  padding: 0.85rem 1rem;
  flex: 1;
}
.discord-embed-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 0.25rem;
}
.discord-embed-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.discord-embed-desc {
  font-size: 0.85rem;
  color: #dbdee1;
  line-height: 1.4;
  margin-bottom: 0.85rem;
}
.discord-embed-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.discord-field-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #949ba4;
}
.discord-field-val {
  display: block;
  font-size: 0.85rem;
  color: #f2f3f5;
}
.discord-embed-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #949ba4;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.discord-footer-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* Audit Log Type Badges */
.audit-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.audit-badge-info { background: rgba(56, 189, 248, 0.15); color: var(--admin-blue); }
.audit-badge-success { background: rgba(16, 185, 129, 0.15); color: var(--admin-emerald); }
.audit-badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--admin-primary); }
.audit-badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--admin-red); }
.audit-badge-discord { background: rgba(88, 101, 242, 0.2); color: #818cf8; }
.audit-badge-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; }

/* Responsive */
@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-form-group.full {
    grid-column: span 1;
  }
  .dashboard-dual-grid,
  .discord-settings-grid {
    grid-template-columns: 1fr;
  }
}
