/* Reset dan gaya dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    padding: 30px;
}

#start-screen {
    text-align: center;
    padding: 40px 20px;
}

#start-screen h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

#start-screen p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
    line-height: 1.6;
}

#start-btn, #restart-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

#start-btn:hover, #restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

#start-btn:active, #restart-btn:active {
    transform: translateY(1px);
}

#quiz-container {
    display: flex;
    flex-direction: column;
}

#question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

#question-number, #timer {
    font-weight: bold;
    color: #1e3c72;
    font-size: 1.1rem;
}

#question-content {
    margin-bottom: 30px;
}

#question-text {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #222;
    line-height: 1.5;
}

#options-container {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.option {
    padding: 15px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.option:hover {
    background-color: #e9ecef;
    border-color: #1e3c72;
}

.option.selected {
    background-color: #d1e7ff;
    border-color: #1e3c72;
    box-shadow: 0 0 10px rgba(30, 60, 114, 0.2);
}

.option input {
    margin-right: 15px;
    transform: scale(1.3);
}

.option label {
    cursor: pointer;
    font-size: 1.1rem;
    width: 100%;
}

#navigation-buttons {
    display: flex;
    justify-content: space-between;
}

#prev-btn, #next-btn, #submit-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

#prev-btn:hover, #next-btn:hover, #submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

#prev-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

#result-section {
    text-align: center;
    padding: 30px;
}

#result-section h2 {
    color: #1e3c72;
    margin-bottom: 25px;
    font-size: 2rem;
}

#score-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

#score-display p {
    font-size: 1.3rem;
    margin: 10px 0;
    color: #1e3c72;
    font-weight: bold;
}

#grade-feedback {
    font-size: 1.4rem;
    color: #28a745;
    margin: 20px 0;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

footer {
    background: #f8f9fa;
    text-align: center;
    padding: 15px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
}

/* Responsif */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    #question-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    #navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    #navigation-buttons button {
        width: 100%;
    }
}