/* ============================================
   STYLE - KUIS PHP KANTIN SEKOLAH
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.banner {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.header h1 {
    font-size: 2em;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Screen */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Card */
.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Start Screen */
.card h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
}

.card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.card ul {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 10px;
}

.card ul li {
    color: #555;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.card ul li:before {
    content: "✓";
    color: #4CAF50;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-start {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 20px;
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-nav {
    background: #e0e0e0;
    color: #333;
    width: auto;
    display: inline-block;
    padding: 12px 25px;
    margin: 5px;
}

.btn-nav:hover:not(:disabled) {
    background: #d0d0d0;
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next {
    background: #4CAF50;
    color: white;
}

.btn-next:hover {
    background: #45a049;
}

.btn-finish {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    width: auto;
    display: inline-block;
    padding: 12px 30px;
}

.btn-finish:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 87, 108, 0.4);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.question-info {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9em;
}

/* Question */
#question-text {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Options */
.option {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    border-color: #667eea;
    background: #f0f3ff;
}

.option.selected {
    border-color: #667eea;
    background: #e8edff;
}

.option.correct {
    border-color: #4CAF50;
    background: #e8f5e9;
}

.option.incorrect {
    border-color: #f44336;
    background: #ffebee;
}

.option-label {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #667eea;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

/* Navigation */
.nav-buttons {
    text-align: center;
    margin-top: 25px;
}

/* Score Display */
.score-display {
    text-align: center;
    margin: 30px 0;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.score-number {
    font-size: 3em;
    font-weight: bold;
    color: white;
}

.score-label {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

.score-message {
    text-align: center;
    font-size: 1.3em;
    color: #333;
    margin-bottom: 20px;
}

/* Detail Results */
.detail-results {
    margin: 20px 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.result-item.correct {
    background: #e8f5e9;
    color: #2e7d32;
}

.result-item.incorrect {
    background: #ffebee;
    color: #c62828;
}

.result-icon {
    font-size: 1.2em;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.5em;
    }

    .card {
        padding: 20px;
    }

    .btn {
        padding: 12px 20px;
    }

    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-number {
        font-size: 2.5em;
    }
}
