
html{
  scroll-behavior: smooth;
}
body {
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}
.navbar {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.98) 100%
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0;
  margin-bottom: 2rem;
  z-index: 1000;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  position: relative;
  min-height: 70px;
}


.navbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 10;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 10;
}


.navbar-right a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar-left a{
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-left a:hover,
.navbar-right a:hover {
  color: #1e293b;
  background: rgba(248, 250, 252, 0.8);
  transform: translateY(-0.2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  
}

.navbar-left a i,
.navbar-right a i {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.navbar-left a:hover i,
.navbar-right a:hover i {
  opacity: 1;
}

/* Special styling for action buttons */
.navbar-left a[href*="signup"],
.navbar-right a[href*="login"] {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.navbar-left a[href*="signup"]:hover,
.navbar-right a[href*="login"]:hover {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
  color: white;
}


.admin-navbar-overlay-text {
  position: absolute;
  margin-top: 99px;
  margin-left: 48%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  padding: 0px 10px 45px 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(117, 116, 116, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 30%;
  min-width: 150px;
  height: 52px;
}

.admin-navbar-overlay-text p {
  margin: 0;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: #1a202c;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite alternate;
}

.admin-navbar-overlay-text span {
  display: block;
  font-weight: 500;
  font-size: 1.1rem;
  color: #718096;
  margin-top: 0.75rem;

  line-height: 1.4;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: #718096;
  letter-spacing: 0.01em;
}

/* Gradient animation for the main title */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Hover effect for enhanced interactivity */
.admin-navbar-overlay-text:hover {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-navbar-overlay-text:hover p {
  animation-duration: 1.5s;
}


.admin-navbar-overlay-text:focus-within {
  outline: 2px solid #4299e1;
  outline-offset: 4px;
}

.navbar-overlay-text {
  position: absolute;
  margin-top: 99px;
  margin-left: 48%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  padding: 0px 10px 45px 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(117, 116, 116, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 30%;
  min-width: 150px;
  height: 52px;
}

.navbar-overlay-text p {
  margin: 0;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: #1a202c;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite alternate;
}

.navbar-overlay-text span {
  display: block;
  font-weight: 500;
  font-size: 1.1rem;
  color: #718096;
  margin-top: 0.75rem;

  line-height: 1.4;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: #718096;
  letter-spacing: 0.01em;
}

/* Gradient animation for the main title */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Hover effect for enhanced interactivity */
.navbar-overlay-text:hover {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-overlay-text:hover p {
  animation-duration: 1.5s;
}


/* Focus state for accessibility */
.navbar-overlay-text:focus-within {
  outline: 2px solid #4299e1;
  outline-offset: 4px;
}

/* Subtle animation on load */
.navbar {
  animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #f97316 20%,
    #fbbf24 50%,
    #f97316 80%,
    transparent 100%
  );
  opacity: 0.6;
}

/* Hover effect for the entire navbar */
.navbar:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
}

.top {
  background: #ffffff;
  min-height: 170px;
  margin-top: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px 20px 20px;
  position: relative;
}

.top-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.top-text {
  position: relative;
}
.admin-top-text {
  position: relative;
}

/* Main heading "Ready to Ride?" */
.top-text p {
  font-size: 3rem;
  font-weight: 900;
  color: #2c3e50;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
  background-clip: text;
  text-shadow: 0 4px 8px rgba(44, 62, 80, 0.1);
  animation: fadeInDown 1s ease-out;
  position: relative;
}
.admin-top-text p {
  font-size: 3rem;
  font-weight: 900;
  color: #2c3e50;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
  background-clip: text;
  text-shadow: 0 4px 8px rgba(44, 62, 80, 0.1);
  animation: fadeInDown 1s ease-out;
  position: relative;
}

/* Decorative accent above main title */
.admin-top-text p::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #f39c12, #e74c3c, #f39c12);
  border-radius: 2px;
  animation: slideInDown 1s ease-out 0.3s both;
}
.top-text p::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #f39c12, #e74c3c, #f39c12);
  border-radius: 2px;
  animation: slideInDown 1s ease-out 0.3s both;
}

/* First subtitle span */
.admin-top-text span:first-of-type {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #7f8c8d;
  margin-top: 25px;
  line-height: 1.4;
  animation: fadeInLeft 1s ease-out 0.5s both;
  position: relative;
}
.top-text span:first-of-type {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #7f8c8d;
  margin-top: 25px;
  line-height: 1.4;
  animation: fadeInLeft 1s ease-out 0.5s both;
  position: relative;
}

/* Second subtitle span - Call to action */
.top-text span:last-of-type {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #e74c3c;
  margin-top: 15px;
  line-height: 1.4;
  animation: fadeInRight 1s ease-out 0.7s both;
  position: relative;
}
.admin-top-text span:last-of-type {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #e74c3c;
  margin-top: 15px;
  line-height: 1.4;
  animation: fadeInRight 1s ease-out 0.7s both;
  position: relative;
}

/* Hover effects for interactive feel */
.admin-top-text p:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}
.top-text p:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

.admin-top-text span:last-of-type:hover {
  color: #c0392b;
  transform: scale(1.05);
  transition: all 0.3s ease;
}
.top-text span:last-of-type:hover {
  color: #c0392b;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Decorative elements */
.admin-top-text::after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #3498db,
    #2ecc71,
    #3498db,
    transparent
  );
  border-radius: 1px;
  animation: slideInUp 1s ease-out 0.9s both;
}
.top-text::after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #3498db,
    #2ecc71,
    #3498db,
    transparent
  );
  border-radius: 1px;
  animation: slideInUp 1s ease-out 0.9s both;
}

/* Subtle background pattern for depth */
.top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 25% 25%,
      rgba(52, 152, 219, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(231, 76, 60, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Animations */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInDown {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Performance optimizations */
.top * {
  will-change: transform, opacity;
}
/* Additional premium styling */
.admin-top-text span:first-of-type::before {
  content: '"';
  position: absolute;
  left: 50px;
  top: -5px;
  font-size: 2rem;
  color: #bdc3c7;
  font-family: Georgia, serif;
}
.top-text span:first-of-type::before {
  content: '"';
  position: absolute;
  left: -40px;
  top: -5px;
  font-size: 2rem;
  color: #bdc3c7;
  font-family: Georgia, serif;
}

.admin-top-text span:first-of-type::after {
  content: '"';
  position: absolute;
  right: 50px;
  bottom: -5px;
  font-size: 2rem;
  color: #bdc3c7;
  font-family: Georgia, serif;
}
.top-text span:first-of-type::after {
  content: '"';
  position: absolute;
  right: -40px;
  bottom: -5px;
  font-size: 2rem;
  color: #bdc3c7;
  font-family: Georgia, serif;
}

/* Focus states for accessibility */
.admin-top-text:focus-within p {
  outline: 2px solid #3498db;
  outline-offset: 4px;
  border-radius: 4px;
}
.top-text:focus-within p {
  outline: 2px solid #3498db;
  outline-offset: 4px;
  border-radius: 4px;
}

/* General Grid for Cars */
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -100px 20px 38px 20px;
  column-gap: 0px;
  row-gap: 40px;
  animation: fadeInGrid 0.6s ease-out;
  padding: 30px;
}
.messages {
  position: relative;
  top: -50px;
  margin-bottom: 45px;
  margin-left: 50px;
  max-width: 530px;
  width: 85%;
  min-height: 50px;
}
@keyframes fadeInGrid {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Car Card Styling */
.car-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(241, 245, 255, 0.9),
    rgba(241, 245, 255, 0.7)
  );
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 12px;
  height: 265px;
  max-width: 338px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  border: 1px solid rgba(183, 134, 27, 0.1);
  backdrop-filter: blur(10px);
}

.car-details {
  font-size: 13px;
  line-height: 1.4;
  position: absolute;
  top: 0.1px;
  left: 2px;
  right: 12px;
  color: #1e293b;
  z-index: 2;
  border-radius: 8px;
  font-family: "Segoe UI", sans-serif;
  transition: all 0.3s ease;
}

.car-card:hover .car-details {
  transform: translateY(-2px);
}

/* Car Image */
.car-image {
  width: 100%;          /* or use a fixed value like 300px */
  height: auto;         /* keeps the image's original aspect ratio */
  object-fit: cover;    /* trims image to fit if needed */
  border-radius: 10px;  /* optional: rounded corners */
  max-height: 200px;   
}

.car-card:hover .car-image {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* Car Details Text */
.car-details h2 {
  font-size: 20px;
  font-weight: 600;
  color: #101828;
  margin-top: -0.265px;
  margin-left: -0.5px;
  font-family: Nunito, Arial, Helvetica, sans-serif;
  text-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
  transition: color 0.3s ease;
}

.car-card:hover .car-details h2 {
  color: #0f172a;
}

.seats {
  font-size: 12px;
  color: #2c3e50;
  margin: 4px 0;
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rent {
  font-size: 13px;
  color: #1e293b;
  margin-top: -1.1px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(30, 41, 59, 0.1);
}

.currency {
  font-size: 10.8px;
  color: #333333;
  margin-top: -1.1px;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  opacity: 0.8;
}

.brand {
  font-size: 14px;
  color: #2c3e50;
  margin-top: -6.5px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: 500;
}

.brand-name {
  font-size: 12.8px;
  color: #000000;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: 600;
}

/* Not Available Tag */
.not-available-tag {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.not-available-tag:hover {
  background: linear-gradient(135deg, #ca3b3b, #8c0d0d);
  transform: translateY(-2px);
}
.see-all-cars {
  text-align: center;
  margin-top: 100px;
}

/* Rent Button */
.rent-button {
  padding: 8px 16px;
  font-size: 13px;
  font-family: "Times New Roman", Times, serif;
  border-radius: 12px;
  margin-bottom: -5px;
  margin-left: -5px;
  background: linear-gradient(
    135deg,
    rgba(225, 225, 225, 0.95),
    rgba(130, 130, 130, 0.75)
  );
  color: #1c1c1c;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
}

.car-card:hover {
  border: 2px solid #9e9e9e;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px) scale(1.02);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(245, 245, 245, 0.9)
  );
}

.rent-button:hover {
  background: linear-gradient(
    135deg,
    rgba(240, 240, 240, 1),
    rgba(110, 110, 110, 0.8)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border: 1px solid #dcdcdc;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  margin-bottom: -10px;
  color: #f1f1f1;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.pagination span {
  font-size: 16px;
  font-weight: 800;
  color: #2c3e50;
  text-shadow: 0 1px 2px rgba(255, 152, 0, 0.3);
}

.back-to-home {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
}

.back-link {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16.5px;
  padding: 8px 18px;
  border-radius: 10px;
  background-color: rgba(240, 240, 240, 0.8);
  transition: all 0.25s ease-in-out;
  display: inline-block;
}

.back-link:hover {
  background-color: #e8f0fe;
  color: #27323d;
  font-weight: 645;
  transform: translateX(-4px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.pagination-button {
  padding: 10px 20px;
  background: linear-gradient(135deg, transparent, rgba(255, 152, 0, 0.05));
  border: 2px solid #6d7677;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.pagination-button:hover::before {
  left: 100%;
}

.pagination-button:hover {
  background: rgb(211, 211, 216);
  color: #ffffff;
  font-weight: 700;
  transform: translateY(-3px);
  box-shadow: rgb(159, 159, 159);
  border-color: rgb(211, 211, 216);
}

.footer-links a {
  margin-left: -40px;
  color: #cccccc;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  padding: 5px 0;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #cccccc, #ffffff);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.footer-section h3 {
  margin-top: -40px;
  margin-left: -5px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
  z-index: 999;
}

.modal-box {
  background: #fff;
  padding: 24px 32px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  font-weight: 550;
  color: #154352;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.btn-confirm {
  background-color: #d9534f;
  font-family: "Courier New", Courier, monospace;
  font-size: 15.5px;
  font-weight: 620;
  word-spacing: -3;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-confirm:hover {
  background-color: #c9302c;
  transform: scale(1.03);
}

.btn-cancel {
  background-color: #6c757d;
  font-family: "Courier New", Courier, monospace;
  font-size: 15.5px;
  font-weight: 620;
  word-spacing: -3;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-cancel:hover {
  background-color: #5a6268;
  transform: scale(1.03);
}

.logout-button {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* Graceful font */
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: 2px solid #dc2626;
  padding: 4px 10px 26px 10px;
  height: 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.logout-button:hover {
  background: linear-gradient(135deg, #e11d48 0%, #b91c1c 100%);
  border-color: #b91c1c;
  transform: translateY(-2px);
}


.car-img {
  width: 220px;         /* Fixed width */
  height: 130px;        /* Fixed height */
  object-fit: cover;    /* Fills the box and crops excess */
  border-radius: 8px;
  margin-top:8.5rem;
  margin-left:2.5rem;
}

.newsletter-form{
  margin-left: -0.4rem;
}

.newsletter p{
  margin-left: -0.4rem;
}
/* Mobile Responsive Design */


@media (max-width: 768px) {
  .top, .top-content {
    overflow-x: hidden;
    width: 100%;
    padding-left: 18px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .top-text p,
  .admin-top-text p {
    word-break: break-word;
    font-size: clamp(1.5rem, 5vw, 2rem); /* slightly smaller font for safety */
    overflow-x: hidden;
  }
}

@media (max-width: 768px) {
  .top {
    min-height: 250px;
    padding: 40px 20px;
  }

  .top-text p {
    font-size: 2.4rem;
  }

  .top-text span:first-of-type {
    font-size: 1.2rem;
    margin-top: 20px;
  }

  .top-text span:last-of-type {
    font-size: 1.1rem;
    margin-top: 12px;
  }

  .top-text p::before {
    width: 60px;
    height: 3px;
  }

  .top-text::after {
    width: 100px;
  }
}

@media (max-width: 480px) {
  .top {
    min-height: 220px;
    padding: 30px 15px;
  }

  .top-text p {
    font-size: 2.2rem;
  }

  .top-text span:first-of-type {
    font-size: 1rem;
    margin-top: 18px;
  }

  .top-text span:last-of-type {
    font-size: 0.95rem;
    margin-top: 10px;
  }

  .top-text p::before {
    width: 50px;
    height: 2px;
  }

  .top-text::after {
    width: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .top-text p,
  .top-text span,
  .top-text::before,
  .top-text::after,
  .top-text p::before {
    animation: none;
  }

  .top-text p:hover,
  .top-text span:hover {
    transform: none;
  }
}
@media print {
  .top {
    background: white !important;
    color: black !important;
  }

  .top-text p,
  .top-text span {
    color: black !important;
    text-shadow: none !important;
  }
}
@media (max-width: 480px) {
  .car-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    margin: 0 10px;
    padding: 10px;
    row-gap: 20px;
  }

  .car-card {
    max-width: 100%;
    height: auto;
  }

  .car-image {
    margin-top: 100px;
    margin-right: 0;
    max-height: 120px;
  }

  .messages {
    margin-left: 10px;
    top: 0;
  }

  .car-details h2 {
    font-size: 18px;
  }

  .rent-button,
  .not-available-tag {
    font-size: 11px;
    padding: 6px 12px;
  }
}
@media (max-width: 768px) {
  .top {
    padding: 10px 15px 15px 15px;
    min-height: auto;
  }

  .top-content {
    padding: 0 10px;
   
  }

  .top-text p,
  .admin-top-text p {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .top-text span:first-of-type,
  .admin-top-text span:first-of-type {
    font-size: 1.1rem;
    margin-top: 15px;
  }

  .top-text span:last-of-type,
  .admin-top-text span:last-of-type {
    font-size: 1rem;
    margin-top: 10px;
  }

  /* Fix the quotation mark issue */
  .top-text span:first-of-type::before,
  .admin-top-text span:first-of-type::before {
    left: -1rem;
    top: -5px;
    font-size: 1.5rem;
  }

  .top-text span:first-of-type::after,
  .admin-top-text span:first-of-type::after {
    right: 0.8rem;
    bottom: -5px;
    font-size: 1.5rem;
  }
  .messages {
    padding: 5px 0; 
    width: 100%;
    max-width: 800px;
    margin-left: 1.4rem;
  }
  
}



@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .top,
  .top-content {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .top-text p,
  .admin-top-text p {
    word-break: break-word;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
  .footer-links{
    margin-left: -0.3rem;
  }
}

