/* ==========================================================================
   1. BIẾN & THIẾT LẬP CƠ BẢN
   ========================================================================== */
:root {
    --primary-color: #00b8ff;
    --primary-hover: #0096d1;
    --secondary-color: #2f3132;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --text-muted: #666;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.05);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-pill: 50px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nút bấm dùng chung */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 184, 255, 0.3);
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span { color: var(--primary-color); }

/* ==========================================================================
   3. HERO SECTION & TAB SEARCH
   ========================================================================== */
.hero-section {
    padding: 60px 0 100px 0;
    text-align: center;
}

.hero-section h1 { font-size: 36px; margin-bottom: 10px; }
.hero-section p { margin-bottom: 30px; opacity: 0.8; }

.tab-container {
    /*max-width: 700px;*/
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.tab-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
}

.tab-btn.active { background: var(--primary-color); color: white; }
.tab-btn:hover:not(.active) { background: rgba(255, 255, 255, 0.1); color: white; }

.search-box, .search-box-ajax {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box, .search-box-ajax input {
    width: 100%;
    padding: 20px 25px;
    border-radius: var(--radius-pill);
    border: none;
    font-size: 18px;
    outline: none;
}

.search-box, .search-box-ajax button {
    position: absolute;
    right: 8px;
    top: 8px;
    padding: 12px 30px;
    border-radius: 40px;
    /* Ghi đè lại btn-primary nếu cần cho vị trí tuyệt đối */
}

.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }
.tab-hint { margin-top: 15px; font-size: 13px; opacity: 0.7; }

/* ==========================================================================
   4. TRANG KẾT QUẢ (RESULT & CLAIMS)
   ========================================================================== */
.result-wrapper {
    max-width: 700px;
    margin: 40px auto;
    padding-bottom: 50px;
}

/* Status & Detail Cards */
.status-card {
    text-align: center;
    padding: 40px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    color: white;
}
.status-card.valid { background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); }
.status-card.expired { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }

.detail-card {
    background: white;
    padding: 30px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.info-grid-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Claims & Timeline */
.claim-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.status-pill {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}
.status-processing { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.status-done { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

.timeline {
    margin-top: 20px;
    padding-left: 25px;
    border-left: 2px dashed #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 15px;
    font-size: 15px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* ==========================================================================
   5. FOOTER & HIỆU ỨNG
   ========================================================================== */
footer {
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 14px;
    border-top: 1px solid #eee;
}

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

/* ==========================================================================
   6. RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 28px; }
    .info-grid-detail { grid-template-columns: 1fr; }
    .timeline-item strong { display: block; margin-bottom: 5px; }
    
    .search-box input { padding: 15px 20px; font-size: 16px; }
    .search-box button { padding: 8px 20px; font-size: 14px; }
}
/* ==========================================================================
   BỔ SUNG: INFO GRID & CARDS (Nhanh chóng & Chính xác)
   ========================================================================== */
.info-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 50px;
    padding: 40px 0;
    gap: 20px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 280px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
    box-shadow: var(--shadow-sm);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--primary-color);
}

.info-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block; /* Đảm bảo icon nằm riêng một dòng */
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.info-card p {
    font-size: 15px;
    color: var(--text-muted);
}

/* CSS Gộp cho cả 2 loại kết quả */
            .result-area {
                margin-top: 30px;
                text-align: left;
                background: #fff;
                border-radius: 12px;
                box-shadow: 0 5px 20px rgba(0,0,0,0.08);
                animation: fadeIn 0.4s ease-out;
            }
            .res-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 20px;
				padding: 20px;
            }

            /* Style tra cứu sản phẩm */
            .full-row {
                grid-column: 1 / -1;
                border-bottom: 1px dashed #edf2f7;
                padding-bottom: 10px;
            }
            .product-name-val {
                font-size: 18px;
                color: #1a202c;
                font-weight: 700;
                display: block;
            }
            .res-item label {
                display: block;
                font-size: 11px;
                color: #718096;
                text-transform: uppercase;
                margin-bottom: 4px;
            }
            .res-item span {
                font-weight: 600;
                color: #2d3748;
            }
            .status-badge {
                display: inline-block;
                padding: 4px 12px;
                border-radius: 6px;
                font-size: 12px;
                font-weight: 800;
            }
            .tag-sold {
                background: #c6f6d5;
                color: #22543d;
            }
            .tag-unsold {
                background: #fed7d7;
                color: #822727;
            }
            .sub-list {
                margin-top: 25px;
                background: #f1f5f9;
                padding: 18px;
                border-radius: 10px;
                border-left: 4px solid #2563eb;
            }
            .highlight-title {
                color: #2563eb;
                font-size: 15px;
                display: block;
                margin-bottom: 10px;
                text-transform: uppercase;
            }

            /* Style tiến độ sửa chữa */
            .claim-card {
                border: 1px solid #edf2f7;
                padding: 20px;
                border-radius: 10px;
                margin-bottom: 15px;
            }
            .status-pill {
                padding: 5px 12px;
                border-radius: 20px;
                font-size: 12px;
                font-weight: bold;
            }
            .status-processing {
                background: #fff3cd;
                color: #856404;
            }
            .status-done {
                background: #d4edda;
                color: #155724;
            }

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