/* ============================================================
   FleetCheck Admin Panel — Main Stylesheet
   Brand: Navy #1B2A4A | Green #2E7D32 | Accent #4CAF50
   ============================================================ */

:root {
  --fc-navy:        #1B2A4A;
  --fc-navy-mid:    #243660;
  --fc-navy-light:  #1E3A6E;
  --fc-green:       #2E7D32;
  --fc-green-mid:   #388E3C;
  --fc-green-light: #4CAF50;
  --fc-green-pale:  #E8F5E9;
  --fc-amber:       #F59E0B;
  --fc-red:         #DC2626;
  --fc-bg:          #F0F4F8;
  --fc-surface:     #FFFFFF;
  --fc-border:      #E2ECF4;
  --fc-muted:       #8FA3B8;
  --fc-text:        #1E293B;
  --sidebar-w:      240px;
  --topbar-h:       60px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--fc-bg);
  color: var(--fc-text);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Topbar ── */
.fc-topbar {
  height: var(--topbar-h);
  background: linear-gradient(135deg, var(--fc-navy) 0%, var(--fc-navy-mid) 60%, var(--fc-navy-light) 100%);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1040;
  box-shadow: 0 2px 12px rgba(13,31,60,0.25);
}

.fc-brand { font-size: 20px; font-weight: 900; font-style: italic; letter-spacing: -0.5px; }
.fc-navy  { color: #FFFFFF; }
.fc-green { color: #4CAF50; }
.fc-logo-icon { display: flex; align-items: center; justify-content: center; }

.fc-admin-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 5px 10px;
}
.fc-admin-btn:hover { background: rgba(255,255,255,0.18); }

.fc-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--fc-green), var(--fc-green-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800;
}

/* ── Sidebar ── */
.fc-sidebar {
  width: var(--sidebar-w);
  min-height: calc(100vh - var(--topbar-h));
  background: linear-gradient(180deg, var(--fc-navy) 0%, #0D1F3C 100%);
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  z-index: 1030;
  overflow-y: auto;
  transition: transform 0.25s ease;
}

.fc-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 0 16px;
}

.fc-nav-link {
  color: rgba(255,255,255,0.6);
  padding: 10px 18px;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.fc-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-left-color: rgba(255,255,255,0.2);
}
.fc-nav-link.active {
  color: var(--fc-green-light);
  background: rgba(76,175,80,0.12);
  border-left-color: var(--fc-green-light);
  font-weight: 700;
}
.fc-nav-icon { width: 17px; height: 17px; flex-shrink: 0; }

.fc-sidebar-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.fc-sidebar-stats {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px 12px;
}
.fc-logout-btn {
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.25);
  color: #f87171;
  font-size: 12px;
  border-radius: 8px;
}
.fc-logout-btn:hover { background: rgba(220,38,38,0.2); color: #f87171; }

/* ── Main Content ── */
.fc-main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  min-height: calc(100vh - var(--topbar-h));
  flex: 1;
}

.fc-page-header {
  background: var(--fc-surface);
  border-bottom: 1px solid var(--fc-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.fc-page-title { font-size: 17px; font-weight: 800; color: var(--fc-navy); }
.breadcrumb { font-size: 12px; }
.breadcrumb-item a { color: var(--fc-green); text-decoration: none; }

.fc-content-body { padding: 24px; }

/* ── Stat Cards ── */
.fc-stat-card {
  background: var(--fc-surface);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(13,31,60,0.06);
  border: 1px solid var(--fc-border);
  transition: transform 0.15s, box-shadow 0.15s;
}
.fc-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,31,60,0.10);
}
.fc-stat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fc-stat-value { font-size: 28px; font-weight: 900; line-height: 1; }
.fc-stat-label { font-size: 12px; color: var(--fc-muted); margin-top: 3px; font-weight: 500; }

/* ── Cards ── */
.fc-card {
  background: var(--fc-surface);
  border-radius: 14px;
  border: 1px solid var(--fc-border);
  box-shadow: 0 2px 8px rgba(13,31,60,0.05);
  overflow: hidden;
}
.fc-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--fc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--fc-surface);
}
.fc-card-title { font-size: 15px; font-weight: 800; color: var(--fc-navy); margin: 0; }
.fc-card-body  { padding: 20px; }

/* ── Tables ── */
.fc-table { width: 100%; margin-bottom: 0; }
.fc-table thead th {
  background: var(--fc-bg);
  color: var(--fc-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-bottom: 2px solid var(--fc-border);
  white-space: nowrap;
}
.fc-table tbody td {
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--fc-border);
  font-size: 13px;
}
.fc-table tbody tr:hover { background: #F8FAFC; }
.fc-table tbody tr:last-child td { border-bottom: none; }

/* ── Buttons ── */
.btn-fc-primary {
  background: linear-gradient(135deg, var(--fc-green), var(--fc-green-mid));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  box-shadow: 0 3px 10px rgba(46,125,50,0.3);
  transition: all 0.15s;
}
.btn-fc-primary:hover {
  background: linear-gradient(135deg, var(--fc-green-mid), var(--fc-green-light));
  color: #fff;
  box-shadow: 0 5px 16px rgba(46,125,50,0.4);
  transform: translateY(-1px);
}
.btn-fc-outline {
  border: 1.5px solid var(--fc-green);
  color: var(--fc-green);
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  background: transparent;
  transition: all 0.15s;
}
.btn-fc-outline:hover { background: var(--fc-green-pale); color: var(--fc-green); }

/* ── Action buttons in table ── */
.btn-action {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--fc-border);
  background: var(--fc-surface);
  cursor: pointer;
  transition: all 0.15s;
  color: var(--fc-muted);
  font-size: 12px;
}
.btn-action:hover { background: var(--fc-bg); color: var(--fc-navy); border-color: var(--fc-navy); }
.btn-action.view:hover  { border-color: var(--fc-green); color: var(--fc-green); background: var(--fc-green-pale); }
.btn-action.edit:hover  { border-color: var(--fc-amber); color: var(--fc-amber); background: #FEF3C7; }
.btn-action.delete:hover{ border-color: var(--fc-red);   color: var(--fc-red);   background: #FEE2E2; }

/* ── Forms ── */
.fc-label {
  font-size: 11px; font-weight: 700; color: var(--fc-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  display: block; margin-bottom: 6px;
}
.fc-input {
  background: var(--fc-surface);
  border: 1.5px solid var(--fc-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--fc-text);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fc-input:focus {
  outline: none;
  border-color: var(--fc-green);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}
.fc-input::placeholder { color: var(--fc-muted); }

/* ── Badges ── */
.fc-badge {
  font-size: 10px; font-weight: 800; border-radius: 99px;
  padding: 3px 9px; letter-spacing: 0.03em;
}

/* ── Modals ── */
.fc-modal .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(13,31,60,0.2);
}
.fc-modal .modal-header {
  background: linear-gradient(135deg, var(--fc-navy), var(--fc-navy-mid));
  color: #fff;
  border-radius: 16px 16px 0 0;
  padding: 18px 24px;
  border-bottom: none;
}
.fc-modal .modal-title { font-weight: 800; font-size: 16px; }
.fc-modal .btn-close { filter: invert(1); }
.fc-modal .modal-body  { padding: 24px; }
.fc-modal .modal-footer { padding: 16px 24px; border-top: 1px solid var(--fc-border); }

/* ── Search & Filter bar ── */
.fc-filter-bar {
  background: var(--fc-surface);
  border-radius: 12px;
  padding: 14px 18px;
  border: 1px solid var(--fc-border);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.fc-search-input {
  border: 1.5px solid var(--fc-border);
  border-radius: 10px;
  padding: 8px 14px 8px 36px;
  font-size: 13px;
  min-width: 220px;
  background: var(--fc-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238FA3B8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") no-repeat 12px center;
  transition: border-color 0.15s;
}
.fc-search-input:focus { outline: none; border-color: var(--fc-green); }

/* ── Login Page ── */
.fc-login-page {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--fc-navy) 0%, var(--fc-navy-mid) 60%, #1E3A6E 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.fc-login-page::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(76,175,80,0.12) 0%, transparent 70%);
}
.fc-login-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .fc-sidebar {
    transform: translateX(-100%);
    z-index: 1045;
  }
  .fc-sidebar.open { transform: translateX(0); }
  .fc-main-content { margin-left: 0; }
}

@media (max-width: 575.98px) {
  .fc-content-body { padding: 14px; }
  .fc-login-card { padding: 28px 22px; }
  .fc-stat-value { font-size: 22px; }
}

/* ── Utilities ── */
.text-fc-green { color: var(--fc-green) !important; }
.text-fc-navy  { color: var(--fc-navy)  !important; }
.bg-fc-green-pale { background: var(--fc-green-pale) !important; }
.border-fc { border-color: var(--fc-border) !important; }
.rounded-fc { border-radius: 12px !important; }
.shadow-fc  { box-shadow: 0 4px 16px rgba(13,31,60,0.08) !important; }


.fc-sidebar-stats small.text-muted{color:#FFF !important}