/* ======================================================
   1. QUẢN LÝ QUYỀN TRUY CẬP (ADMIN)
   ====================================================== */
.admin-only {
    display: none; /* Mặc định ẩn nút Thêm/Sửa/Xóa */
}

/* ======================================================
   2. CẤU HÌNH VIDEO NỀN YOUTUBE (FULL SCREEN)
   ====================================================== */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -100;
    overflow: hidden;
}

.video-foreground,
.video-foreground iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Tỉ lệ video 16:9 luôn phủ kín */
@media (min-aspect-ratio: 16/9) {
    .video-foreground {
        height: 300%;
        top: -100%;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-foreground {
        width: 300%;
        left: -100%;
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lớp phủ chuyển màu từ xanh đen sang xám bạc để làm sáng không gian */
    background: linear-gradient(135deg, rgba(15, 25, 35, 0.6) 0%, rgba(30, 50, 70, 0.4) 100%);
}

/* ======================================================
   3. GIAO DIỆN CHUNG (BODY & TEXT)
   ====================================================== */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: #f0f0f0; /* Chuyển sang trắng bạc nhẹ */
    background-color: #0f141a; /* Thay đen thuần bằng xanh Slate tối chuyên nghiệp */
}

html {
    scroll-behavior: smooth;
}

h1 {
    margin-top: 20px;
    font-size: 38px;
    font-weight: 800;
    /* Hiệu ứng tỏa sáng nhẹ màu xanh bạc */
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
    text-transform: uppercase;
    color: #ffffff;
}

/* ======================================================
   4. NAVBAR TRONG SUỐT (MODERN LOOK)
   ====================================================== */
.navbar-custom {
    /* Làm sáng thanh điều hướng với hiệu ứng Frosted Glass */
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

    .navbar-custom .nav-link,
    .navbar-custom .navbar-brand {
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 600;
        transition: 0.3s;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

        .navbar-custom .nav-link:hover {
            color: #00ffcc !important;
            transform: translateY(-2px);
        }

/* ======================================================
   5. CARD DANH SÁCH XE (GRID SYSTEM)
   ====================================================== */
.car-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 90%;
    margin: 40px auto;
}

.car-card {
    /* Làm sáng card bằng nền Glassmorphism tinh tế */
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    text-align: center;
}

    .car-card:hover {
        transform: translateY(-12px);
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(0, 255, 204, 0.6);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 255, 204, 0.2);
    }

    .car-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 16px;
        margin-bottom: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

.price {
    color: #f3d082; /* Chuyển sang vàng Champagne sang trọng */
    font-weight: 800;
    font-size: 1.6rem;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ======================================================
   6. NÚT BẤM (BUTTONS)
   ====================================================== */
.card-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-detail {
    padding: 12px 25px;
    border: 2px solid #00ffcc;
    border-radius: 12px;
    color: #00ffcc;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}

    .btn-detail:hover {
        background: #00ffcc;
        color: #0f141a;
        box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
    }

.btn-buy {
    padding: 12px 25px;
    background: linear-gradient(90deg, #0099ff, #00ffcc);
    border-radius: 12px;
    color: #0f141a;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    border: none;
    transition: 0.3s;
}

    .btn-buy:hover {
        transform: scale(1.05);
        filter: brightness(1.2);
        box-shadow: 0 5px 20px rgba(0, 255, 204, 0.4);
    }

/* ======================================================
   7. BỔ SUNG CHO TRANG GIỚI THIỆU (ABOUT & TEAM)
   ====================================================== */
.glass-panel {
    /* Nền sáng rõ hơn (White-smoke glass) */
    background: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.accent-text {
    color: #00ffcc !important;
    font-weight: 700;
}

.director-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid rgba(0, 255, 204, 0.3);
    object-fit: cover;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
}

.founder-img {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* ======================================================
   8. FOOTER
   ====================================================== */
footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}
