/* ==========================================================================
   CẤU HÌNH RESET CHUNG & CÁC SECTION KHÁC (TRANG CHỦ, BOOKING, ADMIN...)
   ================================================================---------- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Open Sans', sans-serif !important; 
    background: #f8f9fa !important; 
    color: #1e293b; 
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.hero { background: linear-gradient(to bottom, #f8fafc, #ffffff); padding: 80px 20px; text-align: center; }
.hero-container { max-width: 800px; margin: 0 auto; }
.badge { display: inline-block; background: rgba(235, 24, 56, 0.1); color: #eb1838; font-size: 11px; font-weight: 600; padding: 6px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; border: 1px solid rgba(235, 24, 56, 0.2); }
h1 { font-size: 42px; font-weight: 600; color: #0f172a; margin-bottom: 20px; line-height: 1.2; }
h1 span { color: #eb1838; }
.hero p { font-size: 18px; color: #64748b; margin-bottom: 35px; line-height: 1.6; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn-primary-lg { background: #eb1838; color: white; padding: 16px 30px; border-radius: 14px; font-size: 15px; font-weight: 600; text-decoration: none; transition: 0.2s; box-shadow: 0 8px 20px rgba(235, 24, 56, 0.25); }
.btn-primary-lg:hover { background: #d0122f; }
.btn-secondary-lg { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; padding: 16px 30px; border-radius: 14px; font-size: 15px; font-weight: 600; text-decoration: none; transition: 0.2s; }
.btn-secondary-lg:hover { background: #e2e8f0; color: #0f172a; }

.features-section { background: #f8fafc; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; padding: 60px 20px; }
.features-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background: #ffffff; border: 1px solid #e2e8f0; padding: 30px; border-radius: 20px; display: flex; gap: 20px; align-items: flex-start; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.feature-icon { background: rgba(235, 24, 56, 0.1); color: #eb1838; width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.feature-content h3 { font-size: 17px; font-weight: 600; color: #0f172a; margin-bottom: 8px; }
.feature-content p { font-size: 14px; color: #64748b; line-height: 1.5; margin: 0; }

.section-booking { padding: 80px 20px; background: #ffffff; }
.booking-container { max-width: 750px; margin: 0 auto; background: #f8fafc; border: 1px solid #e2e8f0; padding: 40px; border-radius: 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.03); }
.section-title-box { text-align: center; margin-bottom: 35px; }
.section-title-box h2 { font-size: 28px; font-weight: 600; color: #0f172a; margin-top: 10px; margin-bottom: 8px; }
.section-title-box p { font-size: 14px; color: #64748b; margin: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 8px; }
label span { color: #eb1838; }
.form-input, select.form-input, textarea.form-input { width: 100%; background: #ffffff; border: 1px solid #cbd5e1; padding: 14px 18px; border-radius: 12px; font-size: 14px; outline: none; transition: 0.2s; color: #1e293b; }
.form-input:focus { border-color: #eb1838; box-shadow: 0 0 0 3px rgba(235, 24, 56, 0.1); }
textarea.form-input { resize: vertical; }

.tracking-main { max-width: 700px; margin: 50px auto; padding: 0 20px; width: 100%; flex: 1; }
.search-box { background: #f8fafc; border: 1px solid #e2e8f0; padding: 30px; border-radius: 20px; margin-bottom: 30px; }
.search-form { display: flex; gap: 12px; }
.search-btn { background: #eb1838; color: white; border: none; padding: 0 24px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.search-btn:hover { background: #d0122f; }

.alert-error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; padding: 15px; border-radius: 12px; font-size: 14px; text-align: center; margin-bottom: 20px; }
.result-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 25px; margin-bottom: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
.result-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px; margin-bottom: 20px; }
.ticket-code { font-size: 18px; font-weight: 600; color: #eb1838; }
.status-badge { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 20px; border: 1px solid; }
.status-ready { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.grid-info { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; font-size: 14px; margin-bottom: 20px; }
.info-label { font-size: 12px; color: #94a3b8; display: block; margin-bottom: 3px; }
.info-value { font-weight: 600; color: #1e293b; }
.result-footer { font-size: 12px; color: #94a3b8; text-align: right; border-top: 1px solid #f8fafc; padding-top: 12px; }

footer { background: #ffffff; border-top: 1px solid #f1f5f9; padding: 30px 0; text-align: center; font-size: 12px; color: #94a3b8; }
footer p { margin-bottom: 5px; color: #334155; font-weight: 600; }

.admin-body { background-color: #f1f5f9; display: flex; flex-direction: column; min-height: 100vh; }
.admin-header { background: #ffffff; border-bottom: 1px solid #e2e8f0; height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 50; }
.admin-main { max-width: 1200px; width: 100%; margin: 30px auto; padding: 0 20px; flex: 1; }

.admin-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 25px; margin-bottom: 30px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.admin-card-title { font-size: 18px; font-weight: 600; color: #0f172a; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }

.table-responsive { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.admin-table th { background: #f8fafc; color: #475569; font-weight: 600; padding: 12px 16px; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; color: #1e293b; white-space: nowrap; }
.admin-table tr:hover { background: #f8fafc; }

.login-wrapper { max-width: 400px; margin: 100px auto; padding: 20px; width: 100%; }
.login-card { background: #ffffff; border: 1px solid #e2e8f0; padding: 35px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }

.header-search-box input:focus {
    border-color: #eb1838 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(235, 24, 56, 0.1);
}

/* ==========================================================================
   RESPONSIVE CHUNG
   ================================================================---------- */
@media(max-width: 992px) {
    .features-grid { grid-template-columns: 1fr; }
    h1 { font-size: 32px; }
}

@media(max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .search-form { flex-direction: column; }
    .booking-container { padding: 20px; }
    .hero { padding: 40px 15px; }
    .admin-header { padding: 0 15px; }
    .admin-main { padding: 0 10px; margin: 15px auto; }
}