/* ========================================
   LUXURY CAR DEALERSHIP - RED & BLACK THEME
   ======================================== */

/* CSS Variables for Consistent Theme */
:root {
    --primary-red: #dc2626;
    --dark-red: #991b1b;
    --light-red: #ef4444;
    --primary-black: #0f0f0f;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --light-gray: #404040;
    --text-light: #f8f9fa;
    --text-gray: #9ca3af;
    --accent-gold: #fbbf24;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--primary-black);
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animated Background Particles */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-red);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Glass Morphism Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Navigation Bar */
.navbar {
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navbar Brand Logo */
.navbar-brand img {
    transition: transform 0.3s ease;
    height: 80px !important;
    max-height: 80px;
    width: auto;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 60px !important;
        max-height: 60px;
    }
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    transition: left 0.3s ease;
    z-index: -1;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    left: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    transform: translateY(-2px);
}

/* Dropdown Toggle Specific Styling */
.navbar-nav .dropdown-toggle {
    color: var(--text-light) !important;
    background: transparent !important;
    border: none !important;
}

.navbar-nav .dropdown-toggle:hover {
    color: white !important;
    background: rgba(220, 38, 38, 0.1) !important;
}

.navbar-nav .dropdown-toggle:focus {
    color: white !important;
    background: transparent !important;
    box-shadow: none !important;
}

.navbar-nav .dropdown-toggle.show {
    color: white !important;
    background: rgba(220, 38, 38, 0.2) !important;
}

/* Mobile Navigation Fixes */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link i {
        display: inline-block;
        margin-right: 0.5rem;
        width: 16px;
        text-align: center;
    }

    .navbar-collapse .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
    }

    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid var(--glass-border);
        padding-top: 1rem;
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.25rem;
    }

    .navbar-nav .dropdown-menu {
        border: none;
        margin-top: 0.5rem;
    }
}

/* Ensure icons stay inline on larger screens */
@media (min-width: 992px) {
    .navbar-nav .nav-link i {
        margin-right: 0.25rem;
    }
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.25rem !important;
    min-width: 180px !important;
}

.dropdown-menu.glass {
    background: white !important;
    backdrop-filter: none !important;
}

.dropdown-item {
    color: #374151 !important;
    padding: 0.75rem 1.25rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border: none !important;
    background: transparent !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
}

.dropdown-item i {
    color: #6b7280 !important;
    margin-right: 0.5rem !important;
}

.dropdown-divider {
    border-color: #e5e7eb !important;
    margin: 0.5rem 0 !important;
}

/* Hero Section */
.hero-section {
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10 10h80v80h-80z" fill="none" stroke="rgba(220,38,38,0.1)" stroke-width="0.5"/></svg>');
    animation: move 20s linear infinite;
}

@keyframes move {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-100px) translateY(-100px); }
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    animation: slideUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    animation: slideUp 1s ease-out 0.3s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary-red);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gold);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary-custom:hover::before {
    left: 0;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.btn-outline-custom {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    background: transparent;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline-custom:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

/* Button Red Primary Style */
.btn-primary-red {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    border: 2px solid #dc2626 !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

.btn-primary-red:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
    border-color: #b91c1c !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4) !important;
    text-decoration: none !important;
}

.btn-primary-red:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.5) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-primary-red:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
    color: white !important;
}

.btn-primary-red i {
    margin-right: 8px !important;
    transition: transform 0.3s ease !important;
}

.btn-primary-red:hover i {
    transform: scale(1.1) !important;
}

/* Cards */
.card-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-red);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.card-custom:hover::before {
    transform: translateX(0);
}

.card-custom:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
    border-color: var(--primary-red);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 250px;
}

.card-img-custom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.card-custom:hover .card-img-custom {
    transform: scale(1.1);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-custom:hover .img-overlay {
    opacity: 1;
}

/* Car Mockup Images */
.car-mockup {
    width: 100%;
    height: 250px;
    background: var(--medium-gray);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.car-mockup::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 40%;
    background: var(--primary-red);
    border-radius: 50px;
    opacity: 0.1;
    animation: pulse 2s ease-in-out infinite;
}

.car-mockup i {
    font-size: 4rem;
    color: var(--primary-red);
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Price Styling */
.price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.status-available {
    background: #10b981;
    color: white;
}

.status-sold {
    background: var(--accent-gold);
    color: var(--primary-black);
}

/* Form Styling */
.form-control-custom {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: var(--text-light);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    background: var(--medium-gray);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
    color: var(--text-light);
}

.form-control-custom::placeholder {
    color: var(--text-gray);
}

.form-label-custom {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Additional fixes for floating labels in dark theme */
.form-floating > .form-control:not(:placeholder-shown),
.form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem 0.75rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

/* Invalid field styling */
.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--primary-red) !important;
}

.invalid-feedback {
    color: var(--primary-red) !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Section Dividers */
.section-divider {
    height: 2px;
    background: var(--primary-red);
    margin: 3rem 0;
}

/* Alert Styling */
.alert-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-red);
    border-radius: 15px;
    color: var(--text-light);
}

/* Footer */
.footer-custom {
    background: var(--primary-black);
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid var(--glass-border);
}

.footer-custom a:hover {
    color: var(--primary-red) !important;
    transition: color 0.3s ease;
}

.footer-custom .fa-shield-alt,
.footer-custom .fa-file-contract {
    transition: transform 0.3s ease;
}

.footer-custom a:hover .fa-shield-alt,
.footer-custom a:hover .fa-file-contract {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .card-custom {
        margin-bottom: 2rem;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-red);
}

/* ========================================
   INVENTORY PAGE STYLES
   ======================================== */

.inventory-hero {
    padding: 8rem 0 4rem;
    background: var(--primary-black);
    position: relative;
}

.inventory-stats {
    display: inline-block;
    max-width: 400px;
}

.inventory-stats .border-glass {
    border-color: var(--glass-border) !important;
}

.text-primary-red {
    color: var(--primary-red) !important;
}

.text-accent-gold {
    color: var(--accent-gold) !important;
}

.text-gray {
    color: var(--text-gray) !important;
}

/* Vehicle Cards */
.vehicle-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
}

.vehicle-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Car Mockup for Missing Images */
.car-mockup {
    background: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.car-silhouette {
    font-size: 4rem;
    color: var(--primary-red);
    opacity: 0.6;
    transform: rotate(-5deg);
    animation: carFloat 3s ease-in-out infinite;
}

.mockup-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-light);
}

.mockup-overlay span {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
}

.mockup-overlay small {
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes carFloat {
    0%, 100% { transform: rotate(-5deg) translateY(0px); }
    50% { transform: rotate(-5deg) translateY(-10px); }
}

.vehicle-status {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.status-badge {
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.status-available {
    background: rgba(34, 197, 94, 0.8);
}

.status-sold {
    background: rgba(239, 68, 68, 0.8);
}

.vehicle-content {
    background: rgba(15, 15, 15, 0.95);
}

.vehicle-title {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.vehicle-price {
    text-align: right;
}

.price-value {
    color: var(--accent-gold);
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
}

.price-note {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.vehicle-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.spec-item i {
    color: var(--primary-red);
    margin-right: 0.5rem;
    width: 16px;
}

.vehicle-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Empty State */
.empty-inventory {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.empty-icon {
    font-size: 6rem;
    color: var(--primary-red);
    opacity: 0.3;
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

.contact-hero {
    padding: 8rem 0 4rem;
    background: var(--primary-black);
}

.contact-form-card {
    background: var(--dark-gray) !important;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.form-header h3 {
    color: var(--text-light);
}

.luxury-form .form-floating {
    margin-bottom: 1.5rem;
    position: relative;
}

.luxury-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    color: var(--text-light) !important;
    font-size: 1rem;
    padding: 1rem !important;
    transition: all 0.3s ease;
    height: auto;
    min-height: 58px;
}

.luxury-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25) !important;
    color: var(--text-light) !important;
}

.luxury-input::placeholder {
    color: var(--text-gray) !important;
    opacity: 0.7;
}

.form-floating > label {
    color: var(--text-gray) !important;
    padding: 1rem !important;
    font-size: 0.875rem;
    font-weight: 500;
    top: 0;
    left: 0;
    height: auto;
    line-height: 1.25;
    pointer-events: none;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > .form-control:focus ~ label {
    color: var(--primary-red) !important;
}

/* Fix for select dropdowns */
.form-floating > .form-select {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Textarea specific fixes */
.form-floating textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-info-card {
    background: var(--dark-gray) !important;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}



.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h6 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-gray);
    margin-bottom: 0;
}

.contact-link {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--light-red);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

.quick-actions {
    border: 1px solid var(--glass-border);
}

/* Contact Page Alerts */
.contact-form-card .alert {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    border-left: 4px solid var(--primary-red);
}

.contact-form-card .alert-success {
    border-left-color: #10b981;
}

.contact-form-card .alert-danger {
    border-left-color: var(--primary-red);
}

.contact-form-card .btn-close {
    filter: invert(1);
}

/* ======================================== */

/* ========================================
   PAYMENTS PAGE STYLES
   ======================================== */

.payments-hero {
    padding: 8rem 0 4rem;
    background: var(--primary-black);
}

.hero-stats .stat-item {
    border: 1px solid var(--glass-border);
}

.payment-card {
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.payment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15);
}

.payment-card.featured {
    border-color: var(--primary-red);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.2);
}

.featured-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 10px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.payment-icon {
    text-align: center;
    padding: 2rem 0 1rem;
    font-size: 3rem;
    color: var(--primary-red);
}

.payment-title {
    color: var(--text-light);
    font-weight: 700;
}

.payment-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.payment-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.payment-features li {
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.payment-features i {
    color: var(--accent-gold);
    margin-right: 0.75rem;
    width: 16px;
}

.payment-highlight {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.calculator-card {
    border: 1px solid var(--glass-border);
}

.calculator-result {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.result-amount {
    color: var(--accent-gold);
    font-weight: 800;
}

.result-note {
    font-size: 0.85rem;
}

.services-section {
    border: 1px solid var(--glass-border);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
}

.service-item h5 {
    color: var(--text-light);
    font-weight: 600;
}

/* ========================================
   LUXURY PAGINATION STYLES
   ======================================== */

.luxury-pagination {
    margin: 2rem 0;
}

.pagination-container {
    border: 1px solid var(--glass-border);
    text-align: center;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    list-style: none;
    padding: 0;
}

.page-item .page-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-item .page-link:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    cursor: not-allowed;
}

.pagination-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.pagination-text {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ========================================
   LUXURY BUTTONS
   ======================================== */

.btn-luxury-primary {
    background: var(--primary-red);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-luxury-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
    color: white;
}

.btn-luxury-primary:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .vehicle-specs {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-list {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto 1rem;
    }
}

/* ========================================
   ADMIN DASHBOARD STYLES
   ======================================== */

/* Admin Hero Section */
.admin-hero {
    padding: 2rem 0;
    background: var(--primary-black);
}

.admin-header {
    border: 1px solid var(--glass-border);
}

.admin-time {
    text-align: right;
}

/* Stat Cards */
.stat-card {
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-red);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    color: var(--accent-gold);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Color variants for stats */
.text-purple { color: #8b5cf6 !important; }
.text-cyan { color: #06b6d4 !important; }

/* Quick Actions Hub */
.admin-actions {
    background: var(--dark-gray);
}

.quick-actions {
    border: 1px solid var(--glass-border);
}

.action-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(220, 38, 38, 0.1);
    transition: left 0.6s ease;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
    color: var(--text-light);
    text-decoration: none;
}

.action-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.action-card:hover .action-icon {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.action-card h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.action-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.action-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: var(--primary-red);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.action-card:hover .action-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-gold);
}

/* Time Display Animation */
#current-time {
    color: var(--primary-red);
    font-family: 'Courier New', monospace;
}

/* Recent Activities Styles */
.recent-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.recent-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.recent-item {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-item:hover {
    background: rgba(220, 38, 38, 0.05);
    border-radius: 10px;
}

/* Admin Responsive Design */
@media (max-width: 768px) {
    .admin-header {
        text-align: center;
    }

    .admin-time {
        text-align: center;
        margin-top: 1rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .action-card {
        margin-bottom: 1rem;
    }
}

/* ========================================
   FLOATING ELEMENTS & ENHANCEMENTS
   ======================================== */

/* Floating Action Button */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-main {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.6);
}

.fab-main.rotate {
    transform: rotate(45deg);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.fab-item:hover {
    background: var(--primary-red);
    color: white;
    transform: scale(1.1);
    border-color: var(--primary-red);
}

.fab-item::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-black);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.fab-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

/* Admin Page Header */
.admin-page-header {
    padding: 2rem 0;
    background: var(--primary-black);
}

.page-header-content {
    border: 1px solid var(--glass-border);
}

/* Enhanced Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Luxury Text Effects */
.gradient-text {
    color: var(--primary-red);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .floating-actions {
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top {
        bottom: 20px;
        left: 20px;
    }

    .fab-main {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .fab-item {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .fab-item::before {
        display: none; /* Hide tooltips on mobile */
    }

    .loading-logo {
        flex-direction: column;
        gap: 0.5rem;
    }

    .loading-logo span {
        font-size: 1.5rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN IMPROVEMENTS
   ======================================== */

/* Mobile Floating Form Adjustments */
@media (max-width: 576px) {
    .luxury-floating-group {
        margin-bottom: 1.5rem;
    }

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

    .luxury-input, .luxury-textarea, .luxury-select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 1rem 0.75rem 0.5rem;
    }

    .current-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .attributes-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .luxury-form-actions .actions-content {
        padding: 1.5rem 1rem;
    }

    .luxury-form-actions .row {
        flex-direction: column;
        gap: 1rem;
    }

    .luxury-form-actions .text-end {
        text-align: center !important;
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* Tablet Adjustments */
@media (max-width: 992px) {
    .current-images-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .attributes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact Page Tablet Fixes */
    .contact-info-item {
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        margin-right: 0.875rem;
        flex-shrink: 0;
    }

    .contact-icon i {
        font-size: 1.1rem;
    }

    .contact-details {
        flex: 1;
        min-width: 0; /* Prevents overflow */
    }

    .contact-details h6 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .contact-details p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .contact-info-card {
        padding: 1.5rem !important;
    }
}

/* Tablet Portrait Adjustments (768px - 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    .contact-section .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 2rem !important;
    }

    .contact-info-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 1.75rem;
        padding: 0.5rem 0;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        margin-right: 1rem;
        margin-top: 0.25rem; /* Slight offset to align with text baseline */
    }

    .contact-details h6 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .contact-details p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .contact-details small {
        font-size: 0.85rem;
        display: block;
        margin-top: 0.25rem;
    }

    /* Form improvements for tablet */
    .luxury-form .row {
        --bs-gutter-x: 1rem;
    }

    .form-floating label {
        padding-left: 1rem;
        font-size: 0.9rem;
    }

    .luxury-input {
        padding: 1rem 0.75rem 0.5rem;
        font-size: 0.95rem;
    }
}

/* Enhanced Contact Form Responsive */
@media (max-width: 768px) {
    .contact-info-card {
        margin-bottom: 2rem;
    }

    .contact-form-container {
        order: 2;
    }

    .contact-info-container {
        order: 1;
    }

    .luxury-floating-group textarea {
        min-height: 120px;
    }

    /* Mobile contact info adjustments */
    .contact-info-item {
        margin-bottom: 1.25rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }

    .contact-icon i {
        font-size: 1rem;
    }

    .contact-details h6 {
        font-size: 0.9rem;
    }

    .contact-details p {
        font-size: 0.85rem;
    }
}

/* Car Edit Page Mobile Optimizations */
@media (max-width: 480px) {
    .luxury-form-card {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }

    .card-header-luxury,
    .card-body-luxury {
        padding: 1rem;
    }

    .luxury-toggle-card {
        padding: 1rem;
    }

    .toggle-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .luxury-switch {
        align-self: flex-end;
    }
}

/* Print Styles */
@media print {
    .luxury-form-actions,
    .btn,
    button {
        display: none !important;
    }

    .luxury-form-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        background: white !important;
        color: black !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .luxury-input,
    .luxury-textarea,
    .luxury-select {
        border: 2px solid var(--text-light);
    }

    .luxury-floating-group label {
        background: var(--primary-black);
        border: 1px solid var(--text-light);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   STATIC LABEL FORM STYLES (ABOVE FIELDS)
   ======================================== */

/* Override floating labels to be static above fields */
.luxury-form .form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.luxury-form .form-floating > label {
    position: static;
    transform: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    padding: 0;
    opacity: 1;
    display: block;
    transition: none;
}

.luxury-form .form-floating > label i {
    color: var(--primary-red);
    margin-right: 0.5rem;
}

.luxury-form .form-floating > .form-control,
.luxury-form .form-floating > .form-select,
.luxury-form .form-floating > .luxury-input,
.luxury-form .form-floating > .luxury-textarea,
.luxury-form .form-floating > .luxury-select {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.luxury-form .form-floating > .form-control:focus,
.luxury-form .form-floating > .form-select:focus,
.luxury-form .form-floating > .luxury-input:focus,
.luxury-form .form-floating > .luxury-textarea:focus,
.luxury-form .form-floating > .luxury-select:focus {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
    outline: none;
}

.luxury-form .form-floating > .form-control::placeholder,
.luxury-form .form-floating > .luxury-input::placeholder,
.luxury-form .form-floating > .luxury-textarea::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

/* Contact form specific adjustments */
.contact-form-card .form-floating {
    margin-bottom: 1.5rem;
}

.contact-form-card .form-floating > label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Car edit form specific adjustments */
.luxury-form-group {
    margin-bottom: 1.5rem;
}

.luxury-form-group label {
    display: block;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.luxury-form-group label i {
    color: var(--primary-red);
    margin-right: 0.5rem;
}

.luxury-form-group .luxury-input,
.luxury-form-group .luxury-textarea,
.luxury-form-group .luxury-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.luxury-form-group .luxury-input:focus,
.luxury-form-group .luxury-textarea:focus,
.luxury-form-group .luxury-select:focus {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
    outline: none;
}

/* Form Group Styles for Static Labels */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary-red);
    margin-right: 0.5rem;
}

.form-group .luxury-input,
.form-group .luxury-textarea,
.form-group .luxury-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group .luxury-input:focus,
.form-group .luxury-textarea:focus,
.form-group .luxury-select:focus {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
    outline: none;
}

.form-group .luxury-input::placeholder,
.form-group .luxury-textarea::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

/* Required field indicator */
.required {
    color: var(--primary-red);
    font-weight: bold;
}

/* Enhanced select dropdown styling */
.luxury-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23dc2626' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}
