/* CSS Variables for Theme Customization */
:root {
  --primary-color: #ffcc00;
  --secondary-color: #2f3942;
  --accent-color: #4caf50;
  --primary-color-rgb: 255, 204, 0;
  --secondary-color-rgb: 47, 57, 66;
  --accent-color-rgb: 76, 175, 80;
}

html {
  height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky Footer Implementation */
.main-content-wrapper {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* Navigation bar */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem 1.5rem; /* Increased padding for modern look */
  margin-bottom: 0; /* Ensure no bottom margin */
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  padding: 0; /* Remove default padding */
}

.navbar-brand img,
.navbar-logo {
  height: 50px; /* Slightly smaller for cleaner look */
  margin-right: 0; /* Remove margin, use container padding instead */
  margin-left: 0; /* Remove absolute positioning hacks */
  position: relative; /* Change from absolute to relative */
  transform: none; /* Remove transform */
  top: auto; /* Reset positioning */
}

.navbar-nav .nav-link {
  font-size: 1rem; /* Slightly smaller for modern look */
  padding: 8px 16px; /* Balanced padding */
  color: var(--secondary-color) !important;
  font-weight: 500; /* Medium weight */
  transition: all 0.3s ease; /* Smooth transitions */
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
  opacity: 0.8; /* Subtle hover effect */
}

.navbar-nav .btn {
  font-size: 0.95rem;
  padding: 10px 24px; /* More horizontal padding */
  border-radius: 8px; /* Modern rounded corners */
  font-weight: 600;
  transition: all 0.3s ease;
}

.navbar-nav .btn-light {
  background-color: var(--secondary-color);
  color: #fafaf9;
  border: none;
}

.navbar-nav .btn-light:hover {
  background-color: var(--secondary-color);
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.navbar-nav .btn-outline-light {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.navbar-toggler {
  border-color: var(--secondary-color);
  padding: 0.5rem 0.75rem;
}

.navbar-toggler-icon {
  filter: brightness(0) saturate(100%) invert(19%) sepia(12%) saturate(1177%) hue-rotate(163deg) brightness(95%) contrast(90%);
}

.navbar-collapse {
  justify-content: flex-end;
}

/* Modern navbar container */
.navbar .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Hero section */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;

  background-size: cover;
  color: var(--secondary-color); /* White text */
  text-align: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(90deg, var(--accent-color) 50%, var(--primary-color) 50%); */
  opacity: 0.9; /* Subtle overlay on the background image */
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 1.25rem;
  margin-top: 15px;
}

.btn-primary {
  padding: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--secondary-color);
  border: none;
  border-radius: 5px;
  background: var(--primary-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  color: var(--primary-color);
  background: var(--secondary-color);
}

/* Buttons */
.btn-outline-light {
  color: var(--secondary-color); /* White */
  border-color: var(--secondary-color);
}

.btn-light {
  color: var(--primary-color); /* Green */
  background-color: var(--primary-color); /* Light yellow-orange */
  border-color: var(--primary-color);
}

/* About section */
.about-section {
  background-color: #9e9e9e; /* Gray background */
  color: var(--secondary-color); /* White text */
  padding: 50px 20px;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-section p {
  font-size: 1.25rem;
}

/* Footer */
.footer {
  background-color: var(--primary-color); /* Green footer */
  color: var(--secondary-color); /* White text */
  padding: 10px 0;
  text-align: center;
  
}

.alert-construction {
  background-color: var(--primary-color); /* Light yellow-orange */
  color: black;
  border-color: var(--primary-color);
}

/* Hero section styling */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  background-color: #f4f4f9;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.vin-input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  
}

.vin-input {
  padding: 10px;
  width: 300px;
  font-size: 1.1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Legacy button styles - DEPRECATED - Now using modern styles in Index.cshtml */
/* Kept for backward compatibility but overridden by page-specific styles */

/* App Links Section Styling */
.app-links-section {
  margin-top: 30px; /* Space between the button and the app icons */
  color: #333;
}

.app-links {
  display: flex;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  flex-wrap: wrap;
  gap: 10px;
}

.app-store-badge {
  height: 50px;
  transition: transform 0.2s;
}

.app-store-badge:hover {
  transform: scale(1.05);
}

/* .btn-primary margin-top removed - not needed */

.vin-plate-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.plate-input-container, .vin-input-container {
    flex: 1;
    min-width: 210px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}



.plate-input, .state-select {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.vin-input {
    width: 100%;
    padding: 10px;
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Legacy button styles - DEPRECATED - Now using modern styles in Index.cshtml */
/* Removed to prevent conflicts with page-specific green button styling */

.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient(#3498db 10%, transparent 10%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.bouncing-dots {
    display: flex;
    justify-content: space-between;
    width: 60px;
    margin-bottom: 10px;
}

.bouncing-dots div {
    width: 15px;
    height: 15px;
    background-color: #3498db;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}

.bouncing-dots div:nth-child(2) {
    animation-delay: 0.2s;
}

.bouncing-dots div:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    to {
        transform: translateY(-15px);
    }
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Custom style for reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden;
    opacity: 0.3;
    transition: opacity 0.3s ease-in-out;
}

/* Show the badge on hover */
.grecaptcha-badge:hover {
    visibility: visible;
    opacity: 1;
}

/* Responsive styles for mobile view */
@media (max-width: 768px) {
    .vin-plate-container {
        flex-direction: column; /* Stack elements vertically on smaller screens */
        align-items: center; /* Center items horizontally */
    }

    .vin-input-container, .plate-input-container {
        width: 90%; /* Use a percentage width for better responsiveness */
        max-width: none; /* Remove max-width to allow full width */
        margin-bottom: 0px; /* Add space between stacked elements */
        
        box-sizing: border-box; /* Include padding in the element's total width and height */
    }

}

/* Professional Cookie Consent Banner */
#consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-family: inherit;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.cookie-icon {
    font-size: 1.6rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.cookie-text h6 {
    margin: 0 0 6px 0;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
}

.cookie-text p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-accept, 
.btn-settings {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}

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

.btn-accept:hover {
    background-color: #ffdc4e;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-settings {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-settings:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        padding: 15px;
    }

    .cookie-content {
        width: 100%;
    }

    .cookie-actions {
        width: 100%;
        margin-top: 15px;
    }

    .btn-accept, 
    .btn-settings {
        flex: 1;
        text-align: center;
    }
}

/* Add a pulsing animation for the New badge */
@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.badge.rounded-pill.bg-primary {
  animation: pulse 1.5s infinite ease-in-out;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
}

/* Position the feature badge in the upper right corner of the text */
.feature-badge {
  position: relative;
  top: -8px;
  right: -2px;
  animation: pulse 1.5s infinite ease-in-out;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25em 0.5em;
  box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}
