/* Global Variables */
:root {
  --primary-color: #003366;
  --secondary-color: #0055A4;
  --accent-color: #FF8C00;
  --accent-hover: #e07b00;
  --text-dark: #333333;
  --text-light: #f4f4f4;
  --bg-light: #f9f9f9;
  --bg-dark: #1a1a1a;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Oswald', sans-serif;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

ul {
  list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.dashboard-container {
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 60px 0;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* Header & Navigation */
header {
  background-color: var(--primary-color);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: var(--font-heading);
  color: var(--accent-color);
}

.logo span {
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('https://images.unsplash.com/photo-1619642751034-765dfdf7c58e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 150px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Services Section (Home) */
.services-overview {
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--accent-color);
}

.service-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Features / Info Section */
.features-section {
  background-color: var(--bg-dark);
  color: var(--white);
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.feature-box {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  text-align: center;
}

.feature-box i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

/* Pricing Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.pricing-table th,
.pricing-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.pricing-table th {
  background-color: var(--primary-color);
  color: var(--white);
}

.pricing-table tr:hover {
  background-color: #f1f1f1;
}

/* Car Wash Steps */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  align-items: flex-start;
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.step-number {
  background-color: var(--accent-color);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 20px;
  flex-shrink: 0;
}

/* Bay Availability */
.bay-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.bay-card {
  background-color: var(--white);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid #ddd;
}

.bay-card.available {
  border-color: #28a745;
}

.bay-card.occupied {
  border-color: #dc3545;
}

.bay-card.maintenance {
  border-color: #ffc107;
}

.status-indicator {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: bold;
  margin-top: 10px;
}

.status-available {
  background-color: #28a745;
}

.status-occupied {
  background-color: #dc3545;
}

.status-maintenance {
  background-color: #ffc107;
  color: #333;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

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

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Dashboard */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 40px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dashboard-container {
  display: none;
  /* Hidden by default */
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.dashboard-section {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

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

  .section-padding {
    padding: 50px 0;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  .logo {
    margin-left: 10px;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.8rem;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 20px;
    background-color: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links a {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    display: block;
  }

  .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 25px;
  }

  .hero {
    padding: 100px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 15px;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .features-container {
    gap: 30px;
  }

  .feature-box {
    min-width: 100%;
    padding: 10px;
  }

  /* Make tables scrollable */
  .pricing-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .steps-container {
    gap: 15px;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-links a:hover {
    padding-left: 0;
    color: var(--accent-color);
  }

  .social-links {
    justify-content: center;
  }

  .contact-list li {
    flex-direction: column;
    text-align: center;
  }

  .contact-list i {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .section-padding {
    padding: 40px 0;
  }
}