@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #3498db; /* Biru Cerah */
    --secondary-color: #2ecc71; /* Hijau Cerah */
    --background-start: #f4f6f9; /* Putih Kebiruan */
    --background-end: #e9edf3;   /* Abu-abu Terang */
    --text-color: #34495e;       /* Abu-abu Gelap */
    --light-text-color: #ffffff;
    --container-bg: rgba(255, 255, 255, 0.8);
    --error-color: #e74c3c;      /* Merah Terang */
}

body {
    font-family: 'Poppins', sans-serif;
    display: grid;
    place-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, var(--background-start), var(--background-end));
    overflow: hidden;
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 400px;
    text-align: center;
    background: var(--container-bg);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

.login-box h1, .app-links h2 {
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-color);
    text-shadow: none;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#access-code {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
    padding: 15px;
    border-radius: 10px;
    color: var(--text-color);
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

#access-code:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

button {
    background: var(--primary-color);
    border: none;
    padding: 15px;
    border-radius: 10px;
    color: var(--light-text-color);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.app-links {
    display: none;
}

.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.app-link {
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
}

.app-link:hover {
    transform: translateY(-5px) scale(1.05);
    color: var(--light-text-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Warna Spesifik untuk Tombol */
.app-link.color-1 { background-color: #1abc9c; } /* Tosca */
.app-link.color-2 { background-color: #3498db; } /* Biru */
.app-link.color-3 { background-color: #9b59b6; } /* Ungu */
.app-link.color-4 { background-color: #f1c40f; } /* Kuning */
.app-link.color-5 { background-color: #e67e22; } /* Oranye */
.app-link.color-6 { background-color: #e74c3c; } /* Merah */

/* Efek hover yang konsisten */
.app-link.color-1:hover { background-color: #16a085; }
.app-link.color-2:hover { background-color: #2980b9; }
.app-link.color-3:hover { background-color: #8e44ad; }
.app-link.color-4:hover { background-color: #f39c12; }
.app-link.color-5:hover { background-color: #d35400; }
.app-link.color-6:hover { background-color: #c0392b; }

/* --- Tambahan untuk 3 Tombol Baru --- */
.app-link.color-7 { background-color: #27ae60; } /* Hijau Zamrud */
.app-link.color-8 { background-color: #d35400; } /* Oranye Labu */
.app-link.color-9 { background-color: #34495e; } /* Abu-abu Gelap */

.app-link.color-7:hover { background-color: #229954; }
.app-link.color-8:hover { background-color: #ba4a00; }
.app-link.color-9:hover { background-color: #2c3e50; }
/* --- Akhir Tambahan --- */

.error-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--error-color);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1000;
}

.error-notification.show {
    top: 20px;
}

/* Animasi */
@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: scale(0.9); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}