* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f2f2f2;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #003366;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}

.logo-container {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    gap: 10px;
}

.logo-container img {
    height: 50px;
}

.logo-container span {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

nav {
    display: flex;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffcc00;
}

.hamburger {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
}

/* Tampilan sticky untuk mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #003366;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px 0;
    }

    nav a {
        margin-left: 0;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    nav.open {
        display: flex;
    }
}

.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #003366;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    z-index: 2000;
}

.side-menu.open {
    left: 0;
}

.side-menu a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    transition: background 0.3s;
}

.side-menu a i {
    margin-right: 10px;
    font-size: 20px;
    width: 20px;
    text-align: center;
}

.side-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.close-btn {
    font-size: 1.5em;
    margin-bottom: 10px;
    cursor: pointer;
}

@media (max-width: 600px) {
    nav {
        display: none;
    }

    .hamburger {
        display: block;
        color: white;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .logo-container {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-left: 40px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .logo-container img {
        display: block;
    }

    .logo-container span {
        display: inline-block;
        font-size: 4vw;
        font-weight: bold;
        white-space: nowrap;
    }
}

/* Animasi untuk kontainer */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.container {
    max-width: 600px;
    margin: 50px auto;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.8s ease-out;
}

.container h2 {
    text-align: center;
    color: #003366;
    margin-bottom: 20px;
}

.logo-bawah {
    display: block;
    margin: 0 auto 20px auto;
    width: 150px;
}

.center-text {
    text-align: center;
}

form.center-text label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
}

form.center-text input[type="text"],
form.center-text input[type="date"],
form.center-text button {
    width: 80%;
    padding: 12px;
    margin: 10px auto;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: block;
}

/* Tombol default */
form.center-text button {
    background-color: #003366;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover aktif jika tombol tidak disabled */
form.center-text button:hover:enabled {
    background-color: #ffcc00;
    transform: scale(1.03);
}

.hasil {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    padding: 15px;
    border-radius: 6px;
}

.lulus {
    background-color: #d4edda;
    color: #155724;
}

.tidak-lulus {
    background-color: #f8d7da;
    color: #721c24;
}

.not-found {
    background-color: #fff3cd;
    color: #856404;
}

.box-petunjuk {
    background-color: #FFE4E1;
    color: #856404;
}

footer {
    background-color: #003366;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    margin-right: 20px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
}

.footer-info h4 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.footer-info p {
    font-size: 1em;
}

.footer-social {
    margin-bottom: 20px;
}

.social-icon {
    margin: 0 10px;
    font-size: 20px;
    color: #fff;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #ffcc00;
}

.footer-bottom {
    font-size: 12px;
    color: #ccc;
}

@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 25px;
        border-radius: 12px;
    }
}

.countdown-wrapper {
    margin-bottom: 10px;
    margin-top: 20px;
    animation: slideUp 0.8s ease-out;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

#countdown div {
    background: #003366;
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#countdown span {
    font-size: 1.8em;
    font-weight: bold;
    display: block;
}

#countdown small {
    font-size: 0.75em;
}

@media (max-width: 600px) {
    #countdown {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    #countdown div {
        flex: 1 0 10%;
        min-width: 50px;
        padding: 10px;
        font-size: 0.85em;
    }

    #countdown span {
        font-size: 1.5em;
    }

    #countdown small {
        font-size: 0.7em;
    }
}

.download-container {
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: center;
}

.download-button {
    display: inline-block;
    text-decoration: none;
    background-color: #28a745;
    color: #fff;
    padding: 10px 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.download-button:hover {
    background-color: #218838;
    transform: scale(1.05);
}
