/* ============================== 
   GIAO DIỆN CHUNG
============================== */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #eef1f5;
    transition: background 0.3s;
}
body:hover { background: #e0e7f1; }

header {
    background: linear-gradient(135deg, #141e30, #243b55);
    color: white;
    padding: 30px;
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
header:hover { transform: scale(1.02); }

.car-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 30px;
}

.car-card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: 0.3s ease, transform 0.3s;
    cursor: pointer;
}
.car-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

.car-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s;
}
.car-card img:hover { transform: scale(1.05); }

.car-card button {
    margin-top: 10px;
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    color: white;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}
.car-card button:hover {
    background: linear-gradient(135deg, #0d47a1, #1e88e5);
    transform: scale(1.05);
}

.price {
    font-weight: bold;         
    font-size: 22px;           
    color: #0d47a1;
    margin-top: 5px;
}

/* ============================== 
   POPUP CHI TIẾT
============================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 40px 0;
    transition: opacity 0.3s;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    margin: auto;
    padding: 25px;
    border-radius: 20px;
    animation: fadeIn 0.25s;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}
.modal-content:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.modal-content img {
    width: 100%;
    border-radius: 15px;
    max-height: 300px; 
    object-fit: contain; 
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
}
.slide-btn:hover { background: rgba(0,0,0,0.7); }

#prevBtn { left: 10px; }
#nextBtn { right: 10px; }

.hide-desc { display: none !important; }

/* ============================== 
   GHI CHÚ XE
============================== */
.note-box {
    margin-top: 20px;          
    padding: 15px;             
    border-radius: 10px;       
    background: linear-gradient(135deg, #ffcf33, #ff9f1c);
    color: #222;               
    border-left: 8px solid #ff4d00; 
    font-size: 18px;           
    font-weight: 600;          
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.note-box:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* ============================== 
   LIÊN HỆ
============================== */
.contact-box {
    text-align: center;
    padding: 30px;
    background: white;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.contact-box a {
    display: block;
    margin: 10px 0;
    padding: 12px;
    background: #0d47a1;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.3s, transform 0.2s;
}
.contact-box a:hover {
    background: #1e88e5; 
    transform: scale(1.05);
}

/* ============================== 
   NÚT GỌI / ZALO NỔI
============================== */
.floating-btn {
    position: fixed;
    bottom: 25px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.floating-btn a {
    background: #0d47a1; 
    color: white;
    padding: 14px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, background 0.3s;
}
.floating-btn a:hover { 
    transform: scale(1.1); 
    background: #1e88e5; 
}

/* ============================== 
   ADMIN PANEL
============================== */
.admin-panel {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: white; 
    border-radius: 12px;
    display: none;
}

#adjustPanel { 
    margin-top: 15px; 
    padding: 10px; 
    border: 1px dashed #0d47a1; 
    border-radius: 10px; 
    background: #f0f4f8; 
}

#adjustPanel label { 
    margin-right: 10px; 
    font-weight: bold; 
}
#adjustPanel input { 
    margin-right: 15px; 
}

/* ============================== 
   ANIMATION
============================== */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}
/* ============================
   PHÂN TRANG – PAGINATION
============================ */
.pagination {
    text-align: center;
    margin: 25px 0;
}

.page-btn {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    background: #0d47a1;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.page-btn.active {
    background: #1e88e5;
    transform: scale(1.1);
}

.page-btn:hover {
    background: #1565c0;
}
.filter-box {
    text-align: center;
    margin: 20px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.filter-box select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #0d47a1;
    font-size: 16px;
    cursor: pointer;
}
