/* General Body & Layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Login Page Specific Styles */
.login-body {
    background-color: #e9ecef;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-header {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.login-header .logo {
    height: 50px;
}

.login-main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h2 {
    margin-top: 0;
    color: #333;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #0056b3;
}

.login-links {
    margin-top: 20px;
    font-size: 14px;
}

.login-links a {
    color: #007bff;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-footer {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

/* Dashboard Page Specific Styles */
.dashboard-body {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-header {
    background-color: #ffffff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-header .logo {
    height: 40px;
}

.dashboard-header .welcome-text {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
    color: #495057;
}

.dashboard-nav a {
    color: #007bff;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.dashboard-nav a:hover {
    color: #0056b3;
}

.dashboard-main {
    flex-grow: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.car-list-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 1.5rem;
    text-align: center;
}

.car-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.car-card {
    background-color: #f1f3f5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out;
}

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

.car-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.car-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-model {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
}

.car-status {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.car-status span {
    font-weight: bold;
    color: #28a745;
}

.car-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    margin-top: auto;
}

.rent-button {
    background-color: #28a745;
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rent-button:hover {
    background-color: #218838;
}

.loading-message, .error-message, .no-cars-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    grid-column: 1 / -1; /* Make the message span all columns */
}

.dashboard-footer {
    text-align: center;
    padding: 1rem;
    background-color: #343a40;
    color: white;
    margin-top: auto;
}

/* --- NEW: Homepage & Video Background Styles --- */

/* 🔹 Fullscreen video positioning */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  filter: brightness(65%) contrast(105%);
  opacity: 0;
  animation: fadeInVideo 2s ease forwards;
}

@keyframes fadeInVideo {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 🔹 Overlay text positioning */
.overlay-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.3); /* subtle transparent overlay */
}

/* 🔹 Button styling */
.cta-button {
  margin-top: 20px;
  background: #00bfff;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.cta-button:hover {
  background: #0090c5;
}
