@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0056b3; /* Hansarang Blue */
    --primary-dark: #004494;
    --primary-light: #e6f0fa;
    --accent: #f37021; /* Hansarang Orange */
    --accent-dark: #d65d14;
    --secondary: #64748b;
    --bg-body: #ffffff;
    --card-bg: #ffffff;
    --text-main: #1a202c;
    --text-muted: #718096;
    --border: #edf2f7;
    --success: #22c55e;
    --error: #ef4444;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Pattern inspired by educational theme */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-light) 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    opacity: 0.3;
    z-index: -1;
}

/* Header / Navbar */
.navbar {
    height: var(--header-height);
    background: var(--primary); /* Blue background for white logo */
    border-bottom: 2px solid var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.main-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher select {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.lang-switcher select:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-switcher select option {
    background: white;
    color: var(--text-main);
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

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

.glass-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.05);
    position: relative;
    overflow: hidden;
}

/* Accent bar at the top of the card */
.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.card-header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
}

#verify-form {
    max-width: 540px;
    margin: 0 auto;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
}

.input-wrapper {
    position: relative;
}

input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border: 2px solid #edf2f7;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-main);
}

input:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.input-hint {
    font-size: 0.813rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    text-align: center;
}

button {
    width: 100%;
    padding: 1.25rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.3);
}

button#submit-btn {
    background: var(--accent);
    box-shadow: 0 10px 20px rgba(243, 112, 33, 0.2);
}

button#submit-btn:hover {
    background: var(--accent-dark);
    box-shadow: 0 15px 30px rgba(243, 112, 33, 0.3);
}

/* Trust Footer */
.trust-footer {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.trust-item svg {
    color: var(--accent);
}

/* Result Styles */
#result-view {
    display: none;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Make status item full width */
.result-item:first-child {
    grid-column: 1 / -1;
    background: var(--primary-light);
    border-color: var(--primary);
    padding: 2rem;
}

.result-item {
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

.result-label {
    font-size: 0.813rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.075em;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}

.status-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-valid {
    background: var(--success);
    color: white;
}

.status-invalid {
    background: var(--error);
    color: white;
}

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.download-btn {
    background: var(--accent) !important;
}

.download-btn:hover {
    background: var(--accent-dark) !important;
}

.back-btn {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary-light);
    box-shadow: none;
}

.back-btn:hover {
    background: var(--primary-light);
    box-shadow: none;
    transform: translateY(-2px);
}

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

/* Footer */
.site-footer {
    padding: 4rem 2rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Loader */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.animate-in {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-card {
        padding: 2.5rem 1.5rem;
    }
    
    h1 {
        font-size: 1.875rem;
    }
    
    .actions {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar, .site-footer, .actions, .back-btn, .print-btn, .trust-footer {
        display: none !important;
    }
    .main-content {
        padding: 0;
    }
    .glass-card {
        box-shadow: none;
        border: none;
    }
}
