/*
============================================
PREMIUM STYLING (THE "100 MILLION" TOUCH)
============================================
*/

:root {
    --primary-color: #0D6EFD; /* Biru Profesional */
    --secondary-color: #6C757D;
    --background-light: #f8f9fa;
    --background-dark: #343a40;
    --text-color: #212529;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --card-hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-light);
    color: var(--text-color);
    transition: background-color var(--transition-speed) ease;
}

/* --- LOGIN PAGE STYLING --- */
#login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0558d1 100%);
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.login-branding {
    background: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?q=80&w=2574&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: white;
    text-align: center;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 110, 253, 0.85); /* Overlay Biru */
    z-index: 1;
}

.login-branding .logo, .login-branding .tagline {
    position: relative;
    z-index: 2;
}

.login-branding .logo {
    font-size: 2.5rem;
    font-weight: 700;
}

.login-branding .tagline {
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: 10px;
}


.login-form-wrapper {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-wrapper h2 {
    font-weight: 600;
    color: var(--text-color);
}

.login-form-wrapper .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    transition: all var(--transition-speed) ease;
}

.login-form-wrapper .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: var(--primary-color);
}

.btn-login {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.btn-login:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

/* --- DASHBOARD STYLING --- */
#dashboard-page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    padding: 20px;
}

.sidebar-header {
    padding: 10px 15px;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-header .logo {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 5px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.nav-link i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.main-content {
    margin-left: 260px;
    flex-grow: 1;
    padding: 30px;
    transition: margin-left var(--transition-speed) ease;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.top-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 15px;
}

.user-profile span {
    font-weight: 500;
}

.dashboard-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: none;
    transition: all var(--transition-speed) ease;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.dashboard-card .card-body {
    padding: 25px;
}

.card-icon {
    font-size: 2rem;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: inline-block;
}

.text-primary-light { color: var(--primary-color); }
.bg-primary-light { background-color: rgba(13, 110, 253, 0.1); }

.text-success-light { color: #198754; }
.bg-success-light { background-color: rgba(25, 135, 84, 0.1); }

.text-warning-light { color: #ffc107; }
.bg-warning-light { background-color: rgba(255, 193, 7, 0.1); }

.text-info-light { color: #0dcaf0; }
.bg-info-light { background-color: rgba(13, 202, 240, 0.1); }

/* --- QUIZ STYLING --- */
.quiz-option {
    display: block;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}
.quiz-option:hover {
    background: #e9ecef;
    border-color: #ced4da;
}
.quiz-option input {
    display: none;
}
.quiz-option input:checked + label {
    color: var(--primary-color);
    font-weight: 600;
}
input:checked + .quiz-option {
     border-color: var(--primary-color);
     background-color: rgba(13, 110, 253, 0.1);
}
.quiz-option label {
    cursor: pointer;
    width: 100%;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .login-branding {
        display: none;
    }
    .login-container {
        max-width: 450px;
        min-height: auto;
    }
    .sidebar {
        left: -260px;
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar.active {
        left: 0;
    }
    #sidebar-overlay {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
    }
}
