:root {
    --primary: #1e40af; /* Blue 800 */
    --primary-dark: #1e3a8a; /* Blue 900 */
    --secondary: #3b82f6; /* Blue 500 */
    --accent: #f59e0b; /* Amber 500 for contrast */
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #15803d;
    --success-light: #dcfce7;
    --error: #b91c1c;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header / Navbar */
.top-bar {
    background-color: var(--primary);
    height: 8px;
    width: 100%;
}

nav {
    background-color: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-titles h1 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

.nav-titles p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Main Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.25rem;
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero .badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Search Card */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--text-muted);
}

.search-box-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    box-shadow: 0 0 0 1px var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.search-input-group:focus-within {
    box-shadow: 0 0 0 2px var(--secondary);
}

.search-input-group input {
    flex: 1;
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.search-input-group button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.search-input-group button:hover {
    background: var(--primary-dark);
}

.search-input-group button:disabled {
    animation: none;
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}

.error-msg {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    min-height: 1.25rem;
}

/* Suggestions */
.suggestions {
    background: white;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

.suggestion-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f1f5f9;
}

.suggestion-name {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
}

.suggestion-nisn {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Result Card */
.result-container {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-card {
    border-top: 5px solid var(--success);
}

.status-section {
    text-align: center;
    padding: 2rem;
    background: var(--success-light);
    border-radius: 8px;
    margin-bottom: 2.5rem;
}

.status-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--success);
    letter-spacing: 0.05em;
}

.status-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--success);
    line-height: 1;
    margin-top: 0.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.data-table tr {
    border-bottom: 1px solid var(--border);
}

.data-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    width: 30%;
}

.data-table td {
    padding: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

button.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

button.btn-secondary:hover {
    background: var(--border);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.hidden {
    display: none;
}

/* Countdown GIF */
.countdown-gif {
    margin-top: 1.5rem;
    text-align: center;
}

.countdown-gif img {
    width: 220px;
    height: auto;
    border-radius: 12px;
}

/* Cat Flash */
.cat-flash {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    pointer-events: none; /* Don't block clicks */
}

.cat-flash img {
    width: 180px;
    height: auto;
    animation: flashIn 1.5s ease-in-out forwards;
}

@keyframes flashIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    20% {
        transform: scale(1.1);
        opacity: 1;
    }
    80% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .nav-titles h1 {
        font-size: 0.9rem;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 1.5rem;
    }

    .search-input-group {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        gap: 0.75rem;
    }

    .search-input-group input {
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 0 0 1px var(--border);
    }

    .search-input-group button {
        width: 100%;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .data-table th, .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .data-table th {
        width: 40%;
    }
}
