@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* ---- Variabel Warna (Konsisten) ---- */
:root {
    --color-blue: #0D47A1;
    --color-gold: #d4af37;
    --color-bg: #f0f2f5;
    --color-jebakan: #dc3545; /* Merah */
    --color-aman: #28a745;     /* Hijau */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    width: 100%;
    background-color: var(--color-blue);
    color: white;
    padding: 20px;
    text-align: center;
}
#progress-text { margin: 5px 0 0 0; }

main {
    width: 100%;
    max-width: 800px; /* Lebar browser */
    padding: 20px;
}

/* ---- Jendela Browser Palsu ---- */
.browser-window {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* ---- Bagian Atas Browser (Chrome) ---- */
.browser-chrome {
    background-color: #e0e0e0;
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
}
.browser-buttons .dot {
    height: 12px; width: 12px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}
.browser-buttons { margin-right: 10px; }
.browser-buttons .dot:nth-child(1) { background-color: #ff5f57; }
.browser-buttons .dot:nth-child(2) { background-color: #ffbd2e; }
.browser-buttons .dot:nth-child(3) { background-color: #28c940; }

.address-bar {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 8px 15px;
    width: 100%;
    display: flex;
    align-items: center;
}

.lock-icon {
    color: var(--color-jebakan);
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 10px;
}

.url-text {
    color: #333;
    font-family: 'Courier New', Courier, monospace; /* Font teknis */
}

/* ---- Konten Halaman Palsu ---- */
.browser-content {
    padding: 30px;
    text-align: center;
}

.login-form {
    max-width: 350px;
    margin: 20px auto;
    text-align: left;
}
.login-form label {
    display: block;
    margin-top: 10px;
    font-weight: 500;
}
.login-form input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
.login-button {
    width: 100%;
    padding: 12px;
    background-color: var(--color-blue);
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}
.login-button:hover {
    background-color: #0a3a80;
}


/* ---- LOGIKA INTERAKTIF (Sama seperti Modul 1) ---- */
.red-flag {
    border-bottom: 3px dashed var(--color-jebakan);
    cursor: help;
    transition: background-color 0.2s;
}
.red-flag:hover {
    background-color: #ffe0e0; /* Highlight merah lembut */
}
.red-flag.found {
    background-color: #d4edda; /* Hijau sukses */
    border-bottom: 3px solid var(--color-aman);
    cursor: default;
}

/* ---- Tombol Kembali ---- */
.back-link {
    margin-top: 20px;
    text-align: center;
}
.back-link a {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 700;
}

/* ---- Pop-up Kemenangan (Sama seperti Modul 1) ---- */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal-content {
    background-color: white; padding: 30px; border-radius: 8px;
    text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-content h2 { color: var(--color-blue); }
.modal-content button {
    background-color: var(--color-blue); color: white;
    padding: 10px 20px; border: none; border-radius: 5px;
    cursor: pointer; font-size: 1rem;
}
