/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* Remove underlines from all links */
a {
    text-decoration: none !important;
}

body {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
                url('https://images.unsplash.com/photo-1503376780353-7e6692767b70') center/cover fixed;
    color: #fff;
    min-height: 100vh;
    transition: background 1s ease-in-out;
}

/* Background shuffle animation */
@keyframes backgroundFade {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

body.background-changing {
    animation: backgroundFade 1s ease-in-out;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    width: 150px;
    transition: transform 0.3s;
}

.logo:hover {
    transform: rotate(-5deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
}

.nav-link {
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-block;
}

.nav-link:hover {
    background: rgba(0,255,136,0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,255,136,0.2);
}

/* Vehicle Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.vehicle-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
}

.vehicle-card:hover {
    transform: translateY(-10px);
}

.vehicle-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    display: inline-block;
    margin: 0.5rem 0;
}

.in-stock { background: #00ff88; color: #000; }
.sold-out { background: #ff0033; color: #fff; }

/* Forms */
.auth-box {
    max-width: 500px;
    margin: 5rem auto;
    padding: 2rem;
    background: rgba(30,30,30,0.95);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.form-input {
    width: 100%;
    padding: 1rem;
    margin: 1rem 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0,255,136,0.2);
}

.submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.submit-btn.loading .spinner {
    display: inline-block;
}

.submit-btn.loading span {
    display: none;
}

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

/* Error Message */
.error-text {
    color: red;
    margin-bottom: 1rem;
    display: none;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.sidebar {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(42, 42, 42, 0.95));
    backdrop-filter: blur(3px);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}


.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-logo i {
    color: #00ff88;
    font-size: 1.3rem;
}

.dashboard-nav {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section:last-child {
    margin-bottom: 0;
}

.nav-section-title {
    color: #00ff88;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 20px 12px 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(0, 255, 136, 0.08);
    border-left-color: #00ff88;
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(0, 255, 136, 0.15);
    border-left-color: #00ff88;
}

.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-item:hover .nav-icon {
    background: rgba(0, 255, 136, 0.2);
    transform: scale(1.1);
}

.nav-item.active .nav-icon {
    background: rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.nav-icon i {
    font-size: 1.1rem;
    color: #aaa;
    transition: color 0.3s ease;
}

.nav-item:hover .nav-icon i,
.nav-item.active .nav-icon i {
    color: #00ff88;
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.nav-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    transition: color 0.3s ease;
}

.nav-subtitle {
    font-size: 0.8rem;
    color: #aaa;
    transition: color 0.3s ease;
}

.nav-item:hover .nav-title,
.nav-item.active .nav-title {
    color: #00ff88;
}

.nav-item:hover .nav-subtitle {
    color: #ccc;
}

.admin-only {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.profile-btn {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s;
    font-weight: 500;
}

.profile-btn:hover {
    background: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}


/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Credit Styles */
.credit-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-family: Arial, sans-serif;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s, transform 0.5s;
}

.credit-footer.show {
  opacity: 1;
  transform: translateY(0);
}

.credit-footer p {
  margin: 0;
  font-size: 14px;
}

.credit-footer a {
  color: #FFD700;
  text-decoration: none;
}

.credit-footer a:hover {
  text-decoration: underline;
}
/* Image Popup Container */
.image-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  /* When popup is active */
  .image-popup.show {
    display: flex;
    opacity: 1;
  }
  
  /* Popup Image Style + Animation */
  .popup-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    animation: zoomIn 0.3s ease;
  }
  
  @keyframes zoomIn {
    from {
      transform: scale(0.8);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  /* Close Button */
  .close-popup {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
  }
  
  .close-popup:hover {
    color: #ff4f4f;
  }
   /* Loading Screen */
   .loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
  }

  .loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
  }

  .loading-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(0, 255, 136, 0.1);
    border-left-color: #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
  }

  .loading-text {
    color: #00ff88;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
  }

  @keyframes pulse {
    0%, 100% {
      opacity: 0.5;
    }
    50% {
      opacity: 1;
    }
  }

  /* Hide content initially */
  .content {
    opacity: 0;
    transition: opacity 0.5s ease-in;
  }

  .content.show {
    opacity: 1;
  }

  /* Add these styles in the <style> section */
  .filter-bar {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid rgba(0, 255, 136, 0.1);
  }

  .filter-label {
    color: #00ff88;
    font-size: 1.1rem;
    font-weight: 500;
  }

  .filter-select {
    background-color: rgba(58, 58, 58, 0.8);
    color: #f2f0f0;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 5px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
  }

  .filter-select:hover {
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
  }

  .filter-select:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
  }

  /* Sponsored Ads Section */
  .ad-section {
    margin-top: 1.5rem;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 10px; /* match filter radius */
  }
  .ad-section.ad-compact { padding: 0.6rem; }

  .ad-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    margin-bottom: 0.5rem;
  }

  .ad-title {
    margin: 0;
    font-size: 1rem;
    color: #00ff88;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .ad-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
  }

  /* Partners Horizontal Strip (Mobile-First) */
  .partners-strip-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 2px 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }
  /* Hide scrollbar cross-browser */
  .partners-strip-scroll::-webkit-scrollbar { display: none; }
  .partners-strip-scroll { -ms-overflow-style: none; scrollbar-width: none; }

  .partner-chip {
    flex: 0 0 auto;
    min-width: 190px;
    max-width: 220px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .partner-chip:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 255, 136, 0.12); border-color: rgba(0,255,136,0.2); }

  .chip-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
  }
  .chip-logo img { width: 100%; height: 100%; object-fit: contain; filter: brightness(1) contrast(1.05); }

  .chip-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .chip-name { font-weight: 600; color: #fff; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
  .chip-name-btn { background: none; border: none; color: #fff; font-weight: 600; font-size: 0.95rem; padding: 0; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chip-name-btn:hover { color: #00ff88; text-decoration: underline; }
  .chip-tag { font-size: 0.8rem; color: rgba(255,255,255,0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chip-badge { font-size: 0.68rem; padding: 2px 6px; border-radius: 999px; border: 1px solid transparent; width: fit-content; margin-top: 2px; }
  .chip-badge.partner { color:#00ff88; background: rgba(0,255,136,0.12); border-color: rgba(0,255,136,0.25); }
  .chip-badge.vendor { color:#4FC3F7; background: rgba(79,195,247,0.12); border-color: rgba(79,195,247,0.25); }
  .chip-badge.sponsor { color:#FFC107; background: rgba(255,193,7,0.12); border-color: rgba(255,193,7,0.25); }

  /* Desktop arrows for convenience */
  .partners-strip { position: relative; }
  .strip-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.35); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
  .strip-arrow.left { left: 6px; }
  .strip-arrow.right { right: 6px; }
  .strip-arrow:hover { border-color: rgba(0,255,136,0.35); background: rgba(0,255,136,0.15); }
  @media (min-width: 900px) { .strip-arrow { display: inline-flex; } }

  .ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    gap: 10px;
    justify-content: center;
  }

  .ad-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 255, 136, 0.15);
    background: rgba(0, 255, 136, 0.06);
  }

  .ad-media {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .ad-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1) contrast(1.05);
  }

  .ad-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .ad-brand {
    font-weight: 600;
    color: #fff;
  }

  .ad-tag {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
  }

  /* Clickable brand name for video popup */
  .ad-brand-btn {
    background: none;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
    text-align: left;
  }
  .ad-brand-btn:hover { color: #00ff88; text-decoration: underline; }

  /* Partner Video Modal */
  .partner-video-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }
  .partner-video-modal.show { display: flex; }
  .partner-video-content {
    width: 90%;
    max-width: 900px;
    background: #121212;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  }
  .partner-video-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 2;
  }
  .partner-video-iframe {
    width: 100%;
    height: 56.25vw; /* 16:9 relative to width */
    max-height: 70vh;
    border: 0;
    display: block;
  }
  @media (min-width: 800px) {
    .partner-video-iframe { height: 506px; }
  }

  /* Partner/Vendor/Sponsor badges */
  .ad-badge {
    display: inline-block;
    align-self: flex-start;
    margin-top: 3px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
  }

  .ad-badge.partner {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.12);
    border-color: rgba(0, 255, 136, 0.25);
  }

  .ad-badge.vendor {
    color: #4FC3F7;
    background: rgba(79, 195, 247, 0.12);
    border-color: rgba(79, 195, 247, 0.25);
  }

  .ad-badge.sponsor {
    color: #FFC107;
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.25);
  }

  /* Small-screen spacing */
  @media (max-width: 480px) {
    .ad-section {
      margin-bottom: 0.75rem;
    }
  }

  .no-vehicles {
    text-align: center;
    color: #f2f0f0;
    font-size: 1.2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 59, 48, 0.3);
  }

  /* Enhanced Vehicle Card Animations */
  .vehicle-card {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
  }

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

  /* Loading Skeleton */
  .skeleton-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
  }

  .skeleton-image {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
  }

  .skeleton-text {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 0.8rem;
  }

  .skeleton-text.short {
    width: 60%;
  }

  .skeleton-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: shimmer 2s infinite linear;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 255, 136, 0.1) 50%,
      transparent 100%
    );
  }

  @keyframes shimmer {
    from {
      transform: translateX(-100%);
    }
    to {
      transform: translateX(100%);
    }
  }

  /* Share Buttons */
  .share-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .vehicle-card:hover .share-buttons {
    opacity: 1;
    transform: translateY(0);
  }

  /* Action Buttons - Transparent by default, colored glow on hover */
  .action-btn {
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Very subtle border */
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 3px;
    display: inline-flex;
    align-items: center;
    background: transparent; /* Fully transparent */
    color: rgba(255, 255, 255, 0.8); /* Semi-transparent text */
  }

  .action-btn i {
    margin-right: 4px;
    font-size: 11px;
  }

  /* Delete Button - Only shows red on hover */
  .action-btn.delete {
    border-color: rgba(255, 255, 255, 0.1); /* Neutral border */
  }

  .action-btn.delete:hover {
    background: rgba(255, 50, 50, 0.1); /* Slight red tint */
    box-shadow: 0 0 8px rgba(255, 50, 50, 0.511); /* Red glow */
    color: rgba(255, 255, 255, 0.9); /* Brighter text */
  }

  /* Update Button - Only shows green on hover */
  .action-btn.update {
    border-color: rgba(255, 255, 255, 0.1); /* Neutral border */
  }

  .action-btn.update:hover {
    background: rgba(50, 255, 50, 0.1); /* Slight green tint */
    box-shadow: 0 0 8px rgba(50, 255, 50, 0.445); /* Green glow */
    color: rgba(255, 255, 255, 0.9); /* Brighter text */
  }

  /* Active State */
  .action-btn:active {
    transform: scale(0.95);
  }

  /* Toast Notification */
  .toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 255, 136, 0.9);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .toast.show {
    transform: translateY(0);
    opacity: 1;
  }

  /* Filter Transition */
  .vehicle-grid {
    transition: opacity 0.3s ease;
  }

  .vehicle-grid.filtering {
    opacity: 0.5;
  }

  /* Image Popup Styles */
  .image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
  }

  .popup-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .popup-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    animation: zoomIn 0.3s ease-out;
    display: block;
  }

  .close-popup {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
  }

  .close-popup:hover {
    color: #00ff88;
    transform: scale(1.1);
  }

  @keyframes zoomIn {
    from {
      transform: scale(0.3);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  .vehicle-image {
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .vehicle-image:hover {
    transform: scale(1.02);
  }

  /* Enquiry Form Popup */
  .enquiry-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }

  .enquiry-form {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(0, 255, 136, 0.3);
    animation: slideIn 0.3s ease-out;
  }

  @keyframes slideIn {
    from {
      transform: translateY(-20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .enquiry-form h2 {
    color: #00ff88;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
  }

  .form-group textarea {
    height: 100px;
    resize: vertical;
  }

  .enquiry-form .close-form {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .enquiry-form .close-form:hover {
    color: #00ff88;
  }

  .submit-btn {
    width: 100%;
    padding: 1rem;
    background: #00ff88;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .submit-btn:hover {
    background: #00cc6a;
    transform: translateY(-2px);
  }

  .vehicle-details {
    color: #00ff88;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    background: rgba(0, 255, 136, 0.1);
  }

  /* Action Buttons */
  .action-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Icons */
  .action-btn i {
    margin-right: 8px;
    font-size: 14px;
  }

  .action-btn.copy:hover, .action-btn.copy:active {
    background: rgba(0, 123, 255, 0.15);
    box-shadow: 0 0 10px 2px rgba(0, 123, 255, 0.4);
    color: #fff;
  }

  .action-btn.enquire:hover, .action-btn.enquire:active {
    background: rgba(255, 193, 7, 0.15);
    box-shadow: 0 0 10px 2px rgba(255, 193, 7, 0.4);
    color: #fff;
  }

  .price-input {
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #3a3a3a;
    background-color: #2a2a2a;
    color: #f2f0f0;
    font-size: 14px;
    text-align: center;
  }

  .action-btn.edit {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
  }

  .action-btn.edit:hover {
    background: rgba(255, 193, 7, 0.2);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
  }

  /* Share Button Styles */
.share-btn {
    position: absolute;
    top: 12px;
    right: 50px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.share-btn i {
    font-size: 1.2rem;
}

.share-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    display: none;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-toast.show {
    display: block;
    animation: toastFadeIn 0.3s ease-out;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Logs Table Styles */
.logs-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Added consistent border */
}

.logs-table {
    width: 100% !important; /* Ensure table takes full width */
    border-collapse: collapse;
    color: #fff;
    font-size: 14px;
    table-layout: fixed;
}

.logs-table th,
.logs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logs-table th:nth-child(1),
.logs-table td:nth-child(1) {
    width: 150px !important; /* Date & Time */
}

.logs-table th:nth-child(2),
.logs-table td:nth-child(2) {
    width: 100px !important; /* Receipt Type */
}

.logs-table th:nth-child(3),
.logs-table td:nth-child(3) {
    width: 150px !important; /* Customer Name */
}

.logs-table th:nth-child(4),
.logs-table td:nth-child(4) {
    width: 150px !important; /* Vehicle Name */
}

.logs-table th:nth-child(5),
.logs-table td:nth-child(5) {
    width: 120px !important; /* License Plate */
}

.logs-table th:nth-child(6),
.logs-table td:nth-child(6) {
    width: 120px !important; /* Generated By */
}

.logs-table th:nth-child(7),
.logs-table td:nth-child(7) {
    width: 100px !important; /* Amount */
    text-align: right; /* Align amount to the right */
}

.logs-table th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: #00ff88;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Added top border for header row */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Ensure bottom border is consistent */
}

.logs-table td {
    vertical-align: middle; /* Vertically align content in cells */
}

.logs-table tr:hover {
    background: rgba(0, 255, 136, 0.05); /* Keep existing hover effect */
}

/* Receipt type badges - existing styles are fine */

/* Inventory Popup Styles */
.inventory-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.inventory-content {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inventory-stat {
    display: flex;
    align-items: center;
    margin: 0.6rem 0;
    padding: 0.8rem;
    border-radius: 8px;
    background-color: #2a2a2a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.inventory-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 1.6rem;
    margin-right: 0.8rem;
    padding: 0.6rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.stat-available { 
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.stat-booked { 
    color: #FFC107;
    background-color: rgba(255, 193, 7, 0.1);
}

.stat-sold { 
    color: #F44336;
    background-color: rgba(244, 67, 54, 0.1);
}

.stat-total { 
    color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}

.stat-info p {
    margin: 0.2rem 0 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}

.inventory-title {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.inventory-title i {
    color: #2196F3;
}

/* Status Dropdown */
.status-select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #3a3a3a;
    background-color: #2a2a2a;
    color: #f2f0f0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        gap: 12px;
    }
    .filter-select {
        width: 100%;
        padding: 10px;
    }
}

/* Sell Vehicle Button */
#sellVehicleBtn {
    transition: all 0.3s ease;
    background: rgba(8, 234, 19, 0.15);
    border: 1px solid rgba(27, 216, 37, 0.3);
}

#sellVehicleBtn:hover, 
#sellVehicleBtn:active {
    background: rgba(8, 234, 19, 0.25);
    box-shadow: 0 0 15px 5px rgba(27, 216, 37, 0.5);
    color: #fff;
    transform: scale(1.05);
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(27, 216, 37, 0.7);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(27, 216, 37, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(27, 216, 37, 0.7);
    }
}

/* Loading Text */
.loading-text {
    position: relative;
    z-index: 2;
}

/* Enquiry Form Styles */
.enquiry-form {
    max-width: 400px;
    width: 90%;
    padding: 20px;
}

.enquiry-form h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 8px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.submit-btn {
    padding: 8px 20px;
    width: 100%;
    background: #00ff88;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #00cc6a;
    transform: translateY(-2px);
}

/* Share Stats Styles */
.share-container {
    text-align: center;
    padding: 2rem;
}

#statsImage {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.download-btn {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background-color: #1976D2;
}

/* Contact Page Styles */
.contact-text {
    margin-bottom: 1rem;
}

.contact-text:not(:first-of-type) {
    margin-top: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Main Page Styles */
.main-title {
    margin-top: 3rem;
    text-align: center;
    font-size: 2.5rem;
}

.main-subtitle {
    text-align: center;
    margin-top: 1rem;
    color: #aaa;
}

.billing-tab.active {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border-left: 3px solid #00ff88; /* Explicitly set the active border */
}

.billing-tab[data-tab="logs"] {
    /* Ensure logs tab has proper display */
    display: flex;
}

/* Hide sold vehicles */
.sold {
    display: none !important;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    min-height: calc(100vh - 120px);
    margin-top: 20px;
}

/* Sidebar Styles - Simple and Clean */
.sidebar {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.sidebar-logo i {
    color: #00ff88;
    font-size: 1.1rem;
}

.dashboard-nav {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section:last-child {
    margin-bottom: 0;
}

.nav-section-title {
    color: #00ff88;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 16px 10px 16px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(0, 255, 136, 0.1);
    border-left-color: #00ff88;
}

.nav-item.active {
    background: rgba(0, 255, 136, 0.15);
    border-left-color: #00ff88;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    color: #00ff88;
}

.nav-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    transition: color 0.2s ease;
}

.nav-item:hover .nav-title,
.nav-item.active .nav-title {
    color: #00ff88;
}

.admin-only {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}


/* Main Content Area */
.main-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow-y: auto;
}

/* Header Partners Button Fix */
#managePartnersBtn {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

#managePartnersBtn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

#managePartnersBtn i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-content {
        padding: 15px;
    }
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 180px 1fr;
    }
    
    .sidebar {
        border-radius: 10px;
    }
    
    .sidebar-header {
        padding: 16px 12px;
    }
    
    .sidebar-logo {
        font-size: 0.9rem;
    }
    
    .nav-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .nav-title {
        font-size: 0.85rem;
    }
}
