:root {
    --primary: #193864;      /* Navy Blue */
    --primary-hover: #12284b;
    --secondary: #fbbd08;    /* Yellow/Gold */
    --secondary-hover: #e5a700;
    --background: #f4f6f9;   
    --card-bg: #ffffff;      
    --card-border: #e2e8f0;
    --input-bg: #eef2f9;     
    --input-border: #d2dcf0;
    --text-main: #334155;
    --text-heading: #193864;
    --text-muted: #64748b;
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Navbar */
.top-header {
    background-color: var(--primary);
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--secondary);
}

.top-header .logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.top-header .logo-text h2 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

.top-header .logo-text span {
    font-size: 12px;
    color: #cbd5e1;
    font-style: italic;
}

.top-header .right-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 13px;
    font-weight: 500;
}

.top-header .right-menu a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.top-header .right-menu a:hover {
    color: var(--secondary);
}

.top-header .right-menu .login-link {
    font-weight: 700;
    margin-left: 10px;
}

.top-header .right-menu .btn-register {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
}

.top-header .right-menu .btn-register:hover {
    background-color: var(--secondary-hover);
    color: var(--primary);
}

/* Main Content area */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.container {
    width: 100%;
    max-width: 550px;
}

/* Card */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
    text-transform: uppercase;
}

p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.search-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 42px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    padding: 14px 15px 14px 40px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

input::placeholder {
    color: #94a3b8;
}

input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(25, 56, 100, 0.1);
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 42px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s;
}

.clear-btn:hover {
    color: var(--text-main);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 15px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

/* Result Section */
.result-container {
    margin-top: 30px;
    transition: all 0.3s ease;
}

.result-container.hidden {
    display: none;
}

.result-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.result-error {
    background: #fef2f2;
    border-color: #fca5a5;
    text-align: center;
    padding: 20px;
}

.result-error i {
    color: var(--error);
    font-size: 32px;
    margin-bottom: 12px;
}

.student-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--card-border);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-heading);
    text-align: right;
}

.highlight-box {
    margin-top: 25px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.highlight-box .box-item {
    text-align: center;
    flex: 1;
}

.highlight-box .divider {
    width: 1px;
    height: 50px;
    background-color: var(--input-border);
}

.highlight-box .label {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.highlight-box .table-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.highlight-box .sub-number {
    color: #3b82f6; /* Blue for sub number to distinguish */
}

/* Footer 3 columns */
.site-footer {
    background-color: var(--primary);
    color: #cbd5e1;
    padding: 50px 40px;
    margin-top: auto;
    border-top: 4px solid var(--secondary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 280px;
}

/* Footer Col 1 - Logo */
.col-logo {
    text-align: center;
}

.custom-footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.col-logo h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    color: #cbd5e1;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    text-decoration: none;
}

.social-icons a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Footer Col 2 - Contact */
.col-contact h4 {
    color: white;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-info p {
    color: #cbd5e1;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.contact-info p i {
    margin-top: 3px;
    width: 14px;
    text-align: center;
}

.contact-info strong {
    color: white;
}

/* Footer Col 3 - Zalo */
.col-zalo h4 {
    color: white;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.qr-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    color: var(--primary);
}

.qr-text-btn {
    background-color: white;
    color: var(--primary);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    transition: background 0.2s;
}

.qr-text-btn:hover {
    background-color: #f1f5f9;
}

/* Responsive */
@media (max-width: 850px) {
    .top-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    .top-header .right-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 30px 15px;
    }
    .site-footer {
        padding: 30px 20px;
    }
    .footer-container {
        gap: 20px;
    }
    .footer-col {
        min-width: 100%;
        text-align: center;
    }
    .col-contact h4, .col-zalo h4 {
        justify-content: center;
    }
    .contact-info p {
        justify-content: center;
    }
    .qr-box {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 15px 12px;
    }
    h1 {
        font-size: 18px;
    }
    .search-section {
        gap: 10px;
    }
    input {
        padding: 10px 12px 10px 35px;
        font-size: 14px;
    }
    .search-icon {
        top: 35px;
        left: 12px;
        font-size: 14px;
    }
    .clear-btn {
        top: 34px;
        right: 8px;
        padding: 4px;
    }
    .btn-primary {
        padding: 10px;
        font-size: 14px;
    }
    .result-card {
        padding: 12px;
    }
    .student-info {
        gap: 6px;
    }
    .info-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding-bottom: 8px;
    }
    .info-label {
        font-size: 13px;
        line-height: 1.4;
        flex-shrink: 0;
    }
    .info-value {
        text-align: right;
        font-size: 14px;
        line-height: 1.4;
        word-break: break-word;
    }
    .highlight-box {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 8px;
        padding: 15px 10px;
        margin-top: 15px;
    }
    .highlight-box .box-item {
        padding: 0;
        flex: 1;
    }
    .highlight-box .table-number {
        font-size: 26px;
        margin-top: 5px;
    }
    .highlight-box .box-label {
        font-size: 11px;
    }
    .highlight-box .divider {
        width: 1px;
        height: 40px;
    }
}

@media (max-width: 360px) {
    .info-row {
        gap: 5px;
    }
    .info-label {
        font-size: 12px;
    }
    .info-value {
        font-size: 13px;
    }
    .highlight-box {
        padding: 10px 5px;
        gap: 5px;
    }
    .highlight-box .table-number {
        font-size: 22px;
    }
}
