﻿:root {
    --primary-color: #F56632;
    --primary-dark: #E55A2B;
    --primary-light: #FF8B5C;
    --secondary-color: #FFA726;
    --accent-color: #FF5722;
    --light-color: #FFF8F5;
    --dark-color: #333333;
    --gray-color: #757575;
    --light-gray: #F5F5F5;
}
/* Overlay fade in/out */
#loadingOverlay {
    animation: fadeIn 0.5s ease forwards;
}

    #loadingOverlay.hide {
        animation: fadeOut 0.5s ease forwards;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Spinner anime bounce */
.spinner-border {
    animation: spinBounce 1s ease-in-out infinite;
}

@keyframes spinBounce {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(90deg) scale(1.2);
    }

    50% {
        transform: rotate(180deg) scale(1);
    }

    75% {
        transform: rotate(270deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Text rainbow blink */
#loadingOverlay p {
    font-weight: bold;
    animation: rainbowText 2s linear infinite;
}

@keyframes rainbowText {
    0% {
        color: #ff4d6d;
    }

    20% {
        color: #ffaf40;
    }

    40% {
        color: #ffe347;
    }

    60% {
        color: #4dff88;
    }

    80% {
        color: #4da6ff;
    }

    100% {
        color: #b84dff;
    }
}

/* GIF anime bounce */
.anime-loading {
    width: 200px; /* chỉnh kích thước GIF */
    display: block;
}

@keyframes bounceAnime {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}
.loading-bg {
    position: relative;
    display: inline-block; /* container ôm ảnh GIF */
}



.overlay-spinner {
    position: absolute;
    top: 50%; /* vẫn giữ căn giữa theo chiều dọc */
    left: 35%; /* thay vì 50%, dịch sang trái */
    transform: translate(-50%, -50%);
    width: 80px; /* kích thước spinner */
    height: 80px;
}


/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    80% {
        transform: translateY(-5px);
    }
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #FFF8F5 0%, #FFEDE6 100%);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    animation: fadeIn 1s ease-out;
}

/* Header Styles với hiệu ứng */
.header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 0;
    border-bottom: 5px solid var(--secondary-color);
    position: relative;
    overflow: hidden;

}

    .header-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
        background-size: 50px 50px;
        animation: rotate 20s linear infinite;
        opacity: 0.3;
    }
    /* Desktop: giữ nguyên layout cũ */
    .header-section .col-12 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap; /* không xuống dòng */
    }




/* Logo trái */
.logo-left {
    max-width: 270px; /* giới hạn tối đa */
    width: 100%; /* co giãn theo container */
    height: auto; /* giữ tỉ lệ */
    min-height: 120px; /* đảm bảo không quá nhỏ */
    background-color: white;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeIn 0.8s ease-out 0.3s both;
}


    .logo-left img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }


    .logo-left::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(to right, transparent 20%, rgba(255,255,255,0.3) 50%, transparent 80%);
        transform: rotate(30deg);
        transition: transform 0.6s;
    }

    .logo-left:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

        .logo-left:hover::after {
            transform: rotate(30deg) translateX(100%);
        }


/* Logo phải */
.logo-right {
    max-width: 120px;
    width: 100%;
    height: auto;
    min-height: 70px;
    background-color: white;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeIn 0.8s ease-out 0.3s both;
}


    .logo-right img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .logo-right::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(to right, transparent 20%, rgba(255,255,255,0.3) 50%, transparent 80%);
        transform: rotate(30deg);
        transition: transform 0.6s;
    }

    .logo-right:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

        .logo-right:hover::after {
            transform: rotate(30deg) translateX(100%);
        }

/* Tiêu đề ở giữa */
.header-center {
    flex: 1;
    text-align: center;
    min-width: 250px;
}

.header-title {
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, white, #FFE0B2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.header-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}
/* Logo responsive */
.logo-responsive {
    max-width: 100%; /* co giãn theo container */
    height: auto; /* giữ tỉ lệ ảnh */
    background: linear-gradient(135deg, white, #FFF8F5);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

    /* Ảnh bên trong */
    .logo-responsive img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
/* Mobile */
@media (max-width: 768px) {
    .header-section .col-12 {
        display: flex;
        flex-wrap: wrap; /* cho phép xuống dòng */
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    /* Title chiếm trọn hàng đầu */
    .header-center {
        order: 1;
        flex: 0 0 100%; /* full width */
    }

    /* 2 logo cùng order để nằm ngang hàng thứ hai */
    .logo-left,
    .logo-right {
        flex: 0 0 auto; /* giữ kích thước tự nhiên */
        min-height: 100px;
        padding: 8px;
    }

    .logo-right {
        max-height: 100px;
    }

        .logo-left img,
        .logo-right img {
            max-width: 100%;
            height: auto;
        }

    .header-title {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .header-subtitle {
        font-size: 0.9rem;
    }
}



/* Main Content với hiệu ứng */
.main-container {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.search-section {
    background: linear-gradient(145deg, white, #FFF8F5);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    animation: fadeIn 1s ease-out 0.7s both;
    overflow: hidden;
}

    .search-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
        background-size: 300% 100%;
        animation: shimmer 3s infinite linear;
    }

.section-title {
    color: var(--primary-color);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) 1;
    padding-bottom: 12px;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 50px;
        height: 3px;
        background: var(--accent-color);
        animation: pulse 2s infinite;
    }

/* Form Elements với hiệu ứng */
.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: block;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.form-control, .form-select {
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    font-size: 1rem;
    position: relative;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15), 0 8px 20px rgba(255, 107, 53, 0.1);
        transform: translateY(-2px);
    }

    .form-control:hover, .form-select:hover {
        border-color: var(--primary-light);
    }

/* Vehicle Type Selection với hiệu ứng */
.vehicle-option {
    border: 2px solid #E0E0E0;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    background: white;
    position: relative;
    overflow: hidden;
}

    .vehicle-option::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 167, 38, 0.05) 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .vehicle-option:hover {
        border-color: var(--primary-light);
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 30px rgba(255, 107, 53, 0.15);
    }

        .vehicle-option:hover::before {
            opacity: 1;
        }

    .vehicle-option.active {
        border-color: var(--primary-color);
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 167, 38, 0.02) 100%);
        animation: borderGlow 2s infinite;
    }

.vehicle-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    display: inline-block;
}

.vehicle-option:hover .vehicle-icon {
    animation: bounce 1s;
    color: var(--accent-color);
}

/* Captcha Section với hiệu ứng */
.captcha-container {
    background: linear-gradient(145deg, #FFF8F5, white);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid var(--primary-light);
    box-shadow: inset 0 2px 10px rgba(255, 107, 53, 0.05), 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

    .captcha-container::before {
        content: '';
        position: absolute;
        top: -10px;
        right: -10px;
        width: 50px;
        height: 50px;
        background: var(--secondary-color);
        border-radius: 50%;
        opacity: 0.1;
    }
@media screen and (max-width: 768px) {
    .captcha-code {
        width: 100%;
    }
}
.captcha-code {
    /* Giữ lại style cũ có ích */
    background: linear-gradient(45deg, white, #FFF8F5);
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    border: 2px dashed var(--primary-color);
    position: relative;
    overflow: hidden;
    /* Thêm style cho img */
    display: block;
/*    width: 100%;*/
    height: 100%;
    object-fit: contain; /* Giữ tỷ lệ ảnh */
    cursor: pointer; /* Cho biết có thể click */
}

    .captcha-code::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( to right, transparent 20%, rgba(255, 107, 53, 0.1) 50%, transparent 80% );
        transform: rotate(30deg);
        animation: shimmer 3s infinite linear;
    }

    /* Hiệu ứng hover đơn giản */
    .captcha-code:hover {
        border-color: var(--accent-color);
        transform: translateY(-1px);
        transition: all 0.2s ease;
    }

/* Buttons với hiệu ứng */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 16px 35px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    letter-spacing: 0.5px;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .btn-primary:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
    }

        .btn-primary:hover::before {
            left: 100%;
        }

    .btn-primary:active {
        transform: translateY(-2px) scale(1.02);
    }

.btn-secondary {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 16px 35px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

    .btn-secondary::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: var(--primary-color);
        transition: width 0.4s ease;
        z-index: 1;
    }

    .btn-secondary:hover {
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(255, 107, 53, 0.15);
    }

        .btn-secondary:hover::before {
            width: 100%;
        }

    .btn-secondary span {
        position: relative;
        z-index: 2;
    }

/* Info Cards với hiệu ứng */
.info-card {
    border-radius: 18px;
    border: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    background: linear-gradient(145deg, white, #FFF8F5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

    .info-card:nth-child(1) {
        animation-delay: 0.6s;
    }

    .info-card:nth-child(2) {
        animation-delay: 0.8s;
    }

    .info-card:nth-child(3) {
        animation-delay: 1s;
    }

    .info-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.5s ease;
    }

    .info-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 25px 50px rgba(255, 107, 53, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

        .info-card:hover::before {
            transform: scaleX(1);
        }

.info-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.5s ease;
    filter: drop-shadow(0 5px 10px rgba(255, 107, 53, 0.2));
}

.info-card:hover .info-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent-color);
}

/* Modal Styles với hiệu ứng nâng cao */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalFadeIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-bottom: 3px solid var(--secondary-color);
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

    .modal-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
        background-size: 50px 50px;
        animation: rotate 20s linear infinite;
        opacity: 0.3;
    }

.modal-title {
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.btn-close {
    filter: invert(1) brightness(2);
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

    .btn-close:hover {
        opacity: 1;
        transform: rotate(90deg);
    }

.modal-body {
    padding: 2rem;
    background: linear-gradient(145deg, #FFF8F5, white);
}

/* Result Content Styles */
.result-header {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 167, 38, 0.05));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-color);
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.result-detail-card {
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 53, 0.1);
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

    .result-detail-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(255, 107, 53, 0.1);
        border-color: var(--primary-light);
    }

.result-detail-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.1);
    display: flex;
    align-items: center;
}

    .result-detail-title i {
        margin-right: 10px;
        font-size: 1.2rem;
    }

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.6s ease-out 0.5s both;
}

    .detail-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.detail-label {
    font-weight: 600;
    color: var(--dark-color);
    flex: 1;
}

.detail-value {
    font-weight: 500;
    color: var(--gray-color);
    flex: 2;
    text-align: right;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .status-badge::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .status-badge:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

        .status-badge:hover::before {
            opacity: 1;
        }

.status-active {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
}

.status-expired {
    background: linear-gradient(135deg, #F44336, #EF5350);
    color: white;
}

.status-pending {
    background: linear-gradient(135deg, var(--secondary-color), #FFB74D);
    color: white;
}

/* QR Code Section */
.qr-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 167, 38, 0.02));
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-top: 25px;
    animation: fadeIn 0.6s ease-out 0.6s both;
    border: 2px dashed rgba(255, 107, 53, 0.2);
}

.qr-code-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, white, #FFF8F5);
    border-radius: 12px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 107, 53, 0.2);
    position: relative;
    overflow: hidden;
}

    .qr-code-placeholder::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( to right, transparent 20%, rgba(255, 107, 53, 0.1) 50%, transparent 80% );
        transform: rotate(30deg);
        animation: shimmer 4s infinite linear;
    }

    .qr-code-placeholder i {
        font-size: 4rem;
        color: var(--primary-color);
        position: relative;
        z-index: 1;
    }

/* Progress Bar với hiệu ứng */
.progress {
    height: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}

.progress-bar {
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

    .progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent 20%, rgba(255, 255, 255, 0.3) 50%, transparent 80% );
        animation: shimmer 2s infinite linear;
    }

/* Footer với hiệu ứng */
.footer {
    background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
    color: white;
    padding: 3rem 0 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
        background-size: 300% 100%;
        animation: shimmer 5s infinite linear;
    }

.footer-title {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 40px;
        height: 3px;
        background: var(--primary-color);
        border-radius: 2px;
    }

.footer-links a {
    color: #CCCCCC;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 5px 0;
    position: relative;
    padding-left: 0;
}

    .footer-links a::before {
        content: '›';
        position: absolute;
        left: 0;
        color: var(--primary-color);
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
    }

    .footer-links a:hover {
        color: var(--secondary-color);
        transform: translateX(10px);
        padding-left: 15px;
    }

        .footer-links a:hover::before {
            opacity: 1;
            transform: translateX(0);
        }

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

    .contact-info p:hover {
        transform: translateX(5px);
    }

.contact-info i {
    color: var(--secondary-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.contact-info p:hover i {
    transform: scale(1.2);
}

.copyright {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.8rem 0;
    margin-top: 3rem;
    color: #AAAAAA;
    position: relative;
    overflow: hidden;
}

    .copyright::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 167, 38, 0.3), transparent);
    }

/* Example Box với hiệu ứng */
.example-box {
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.08), rgba(255, 107, 53, 0.05));
    border-left: 4px solid var(--secondary-color);
    padding: 18px;
    border-radius: 0 12px 12px 0;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .example-box:hover {
        transform: translateX(5px);
        box-shadow: 5px 5px 15px rgba(255, 167, 38, 0.1);
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-title {
        font-size: 1.6rem;
    }

    .search-section {
        padding: 1.8rem;
        border-radius: 15px;
    }

    .company-logo {
        height: 70px;
        margin-bottom: 15px;
    }

    .logo-placeholder {
        font-size: 1.5rem;
    }

    .vehicle-option {
        padding: 20px 10px;
    }

    .btn-primary, .btn-secondary {
        padding: 14px 25px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .result-detail-card {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .modal {
        position: relative !important;
        display: block !important;
        opacity: 1 !important;
        z-index: 1 !important;
    }

    .modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
    }

    .modal-content {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .btn-close, .no-print {
        display: none !important;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}
/* Grid version */
.vehicle-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.vehicle-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

    .vehicle-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--primary-color, #0d6efd);
        transform: scaleX(0);
        transition: transform 0.3s ease;
        transform-origin: left;
    }

    .vehicle-card:hover {
        border-color: #adb5bd;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }

    .vehicle-card.active {
        border-color: var(--primary-color, #0d6efd);
        background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(13, 110, 253, 0.02) 100%);
        box-shadow: 0 0 0 1px var(--primary-color, #0d6efd), 0 4px 12px rgba(13, 110, 253, 0.1);
        transform: translateY(-1px);
    }

        .vehicle-card.active::before {
            transform: scaleX(1);
        }

.vehicle-card-body {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    position: relative;
}

    .vehicle-card-body i {
        color: #6c757d;
        font-size: 1.2rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 24px;
        text-align: center;
    }

.vehicle-card.active .vehicle-card-body i {
    color: var(--primary-color, #0d6efd);
    transform: scale(1.1);
}

.vehicle-card-body span {
    flex: 1;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
}

.vehicle-card.active .vehicle-card-body span {
    color: var(--primary-color, #0d6efd);
    font-weight: 600;
}

.vehicle-checkmark input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color, #0d6efd);
}

/* Animation khi chọn */
@keyframes selectPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.3);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(13, 110, 253, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.vehicle-card.animating {
    animation: selectPulse 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .vehicle-options-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .vehicle-card-body {
        padding: 10px 14px;
    }
}

::placeholder {
    color: #2a27ef; /* Example: Sets placeholder color to red */
}

.pulse-loader {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    background-color: transparent;
    /* Nếu muốn dùng ảnh, thay bằng:
    background-image: url('icon.png');
    background-size: contain;
    */
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.8);
        opacity: 0.7;
    }
}

/* Hoặc ảnh nhấp nháy với màu */
.color-pulse {
    width: 50px;
    height: 50px;
    animation: colorChange 2s infinite alternate;
    border-radius: 8px;
}

@keyframes colorChange {
    0% {
        background-color: #3498db;
        transform: rotate(0deg);
    }

    100% {
        background-color: #e74c3c;
        transform: rotate(180deg);
    }
}

#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 99999; /* Tăng z-index cao hơn */
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px); /* Thêm hiệu ứng mờ nền */
}

.loading-bg {
    text-align: center;
}

