/* Motors Management System - Modern UI Stylesheet */
:root {
  --primary-color: #1e3a8a;
  --primary-hover: #1e40af;
  --secondary-color: #0f172a;
  --accent-color: #3b82f6;
  --accent-light: #eff6ff;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #06b6d4;
  --sidebar-width: 260px;
  --sidebar-bg: #0f172a;
  --sidebar-color: #94a3b8;
  --sidebar-active-bg: #1e293b;
  --sidebar-active-color: #ffffff;
  --card-border-radius: 12px;
  --transition-speed: 0.25s;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background-color: #f1f5f9;
  color: #334155;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sidebar & Navigation */
#sidebar-wrapper {
  min-height: 100vh;
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  color: var(--sidebar-color);
  transition: all var(--transition-speed) ease-in-out;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

#sidebar-wrapper .brand-header {
  padding: 1.25rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#sidebar-wrapper .brand-logo {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

#sidebar-wrapper .nav-item {
  margin: 0.15rem 0.75rem;
}

#sidebar-wrapper .nav-link {
  color: var(--sidebar-color);
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

#sidebar-wrapper .nav-link i {
  font-size: 1.15rem;
  margin-right: 0.75rem;
  width: 22px;
  text-align: center;
}

#sidebar-wrapper .nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

#sidebar-wrapper .nav-link.active {
  color: #ffffff;
  background-color: var(--accent-color);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.35);
}

.sidebar-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #64748b;
  padding: 1rem 1rem 0.4rem;
}

/* Page Content Wrapper */
#page-content-wrapper {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-speed) ease-in-out;
}

/* Top Navbar */
.top-navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Cards & Widgets */
.card {
  border: 1px solid #e2e8f0;
  border-radius: var(--card-border-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card {
  border-radius: var(--card-border-radius);
  border: none;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.bg-primary-subtle-custom {
  background-color: #e0f2fe;
  color: #0369a1;
}

.bg-success-subtle-custom {
  background-color: #dcfce7;
  color: #15803d;
}

.bg-warning-subtle-custom {
  background-color: #fef3c7;
  color: #b45309;
}

.bg-danger-subtle-custom {
  background-color: #fee2e2;
  color: #b91c1c;
}

.bg-purple-subtle-custom {
  background-color: #f3e8ff;
  color: #7e22ce;
}

/* Tables */
.table-responsive {
  border-radius: var(--card-border-radius);
}

.table th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
  background-color: #f8fafc;
}

.table td {
  vertical-align: middle;
  font-size: 0.93rem;
  border-bottom: 1px solid #f1f5f9;
}

/* Vehicle Badge Types */
.badge-car {
  background-color: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
}

.badge-bike {
  background-color: #ffedd5;
  color: #c2410c;
  font-weight: 600;
}

/* Status Badges */
.badge-available {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-sold {
  background-color: #fee2e2;
  color: #b91c1c;
}

.badge-reserved {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-in-service {
  background-color: #e0f2fe;
  color: #0369a1;
}

/* Overdue alert indicator */
.badge-overdue {
  background-color: #dc2626;
  color: #ffffff;
  animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  #sidebar-wrapper {
    margin-left: calc(-1 * var(--sidebar-width));
  }
  #sidebar-wrapper.toggled {
    margin-left: 0;
  }
  #page-content-wrapper {
    margin-left: 0;
    width: 100%;
  }
}

/* Vehicle card photo */
.vehicle-img-thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vehicle-card-img {
  height: 180px;
  object-fit: cover;
  border-top-left-radius: var(--card-border-radius);
  border-top-right-radius: var(--card-border-radius);
}

/* Report Action Toolbar */
.report-toolbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background-color: #ffffff;
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.report-toolbar .btn {
  font-weight: 500;
  font-size: 0.8125rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px !important;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease-in-out;
}
.report-toolbar .btn:hover {
  transform: translateY(-1px);
}
@media (max-width: 576px) {
  .report-toolbar {
    width: 100%;
    justify-content: stretch;
  }
  .report-toolbar .btn {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0.35rem 0.45rem;
  }
}

.report-logo {
  max-height: 55px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
}

