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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

/* Navbar Collapse (Vanilla JS) */
.navbar-collapse {
  display: none;
}

.navbar-collapse.show {
  display: block;
}

@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
  }

  .navbar-collapse.show {
    display: flex !important;
  }

  .navbar-toggler {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-bottom: 30px;
}

.hero-section h1 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.hero-section .lead {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
  border-radius: 8px 8px 0 0 !important;
}

/* Forms */
.form-control {
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 10px 15px;
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-group label {
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

/* Buttons */
.btn {
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #667eea;
  border-color: #667eea;
}

.btn-primary:hover {
  background-color: #5568d3;
  border-color: #5568d3;
}

.btn-success {
  background-color: #48bb78;
  border-color: #48bb78;
}

.btn-success:hover {
  background-color: #38a169;
  border-color: #38a169;
}

.btn-warning {
  background-color: #f6ad55;
  border-color: #f6ad55;
  color: white;
}

.btn-warning:hover {
  background-color: #ed8936;
  border-color: #ed8936;
}

.btn-danger {
  background-color: #f56565;
  border-color: #f56565;
}

.btn-danger:hover {
  background-color: #e53e3e;
  border-color: #e53e3e;
}

.btn-secondary {
  background-color: #cbd5e0;
  border-color: #cbd5e0;
}

.btn-secondary:hover {
  background-color: #a0aec0;
  border-color: #a0aec0;
}

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

.table {
  margin-bottom: 0;
}

.table-striped tbody tr:hover {
  background-color: #f1f5ff;
}

.table-dark {
  background-color: #2d3748 !important;
}

.table-dark th {
  background-color: #2d3748 !important;
  color: white;
}

/* Badges */
.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.85rem;
}

.badge-primary {
  background-color: #667eea;
}

.badge-info {
  background-color: #4299e1;
}

.badge-success {
  background-color: #48bb78;
}

/* Footer */
footer {
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .container {
    padding: 0 15px;
  }

  .card {
    margin-bottom: 20px;
  }

  .table-responsive {
    font-size: 0.9rem;
  }

  .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

/* Admin Dashboard Stats */
.card.bg-primary,
.card.bg-success {
  border: none;
  border-radius: 8px;
}

.card.bg-primary .card-body h2,
.card.bg-success .card-body h2 {
  font-size: 2.5rem;
  margin: 0;
}

.card.bg-primary .card-body .card-title,
.card.bg-success .card-body .card-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Auth Pages */
.auth-page .card {
  margin-top: 50px;
}

/* Car List Cards */
.row .col-md-4 .card {
  height: 100%;
}

.row .col-md-4 .card-body {
  display: flex;
  flex-direction: column;
}

.row .col-md-4 .card-text {
  flex-grow: 1;
}

/* Navigation Active Link */
.navbar-nav .nav-link.active {
  color: #667eea !important;
}

/* General spacing */
h1, h2, h3, h4, h5 {
  color: #2d3748;
  margin-bottom: 1rem;
}

/* Custom utility classes */
.text-center {
  text-align: center;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}
/* Filter and Search Section */
#searchInput {
  padding: 12px 16px;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 2px solid #dee2e6;
  transition: all 0.3s ease;
}

#searchInput:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  outline: none;
}

#searchInput::placeholder {
  color: #999;
}

.filter-btn {
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-btn.active.btn-outline-primary {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.filter-btn.active.btn-outline-success {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}

.filter-btn.active.btn-outline-warning {
  background-color: #ffc107;
  color: #333;
  border-color: #ffc107;
}

.filter-btn.active.btn-outline-info {
  background-color: #17a2b8;
  color: white;
  border-color: #17a2b8;
}