:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

header {
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.progress-container {
    width: 100%;
    margin-bottom: 20px;
}

.progress-text {
    text-align: right;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.question-card {
    margin-bottom: 30px;
}

.question-header {
    margin-bottom: 20px;
}

.question-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.question-type.single { background-color: var(--primary-color); }
.question-type.multiple { background-color: #9b59b6; }
.question-type.fill { background-color: #e67e22; }

h2 {
    font-size: 18px;
    line-height: 1.5;
    color: var(--secondary-color);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item:hover {
    background-color: #f9f9f9;
    border-color: var(--primary-color);
}

.option-item input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
    transform: scale(1.2);
}

.fill-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    outline: none;
}

.fill-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.hint-text {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 5px;
}

.controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: white;
}

.btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.btn.primary { background-color: var(--primary-color); }
.btn.primary:hover:not(:disabled) { background-color: #2980b9; }

.btn.success { background-color: var(--success-color); }
.btn.success:hover:not(:disabled) { background-color: #27ae60; }

.btn.secondary { background-color: var(--secondary-color); }

.hidden {
    display: none !important;
}

/* Result Screen */
#result-container {
    text-align: center;
    padding: 40px 0;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0%, #ecf0f1 0%);
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    border: 5px solid #ecf0f1;
}

.score-label {
    font-size: 16px;
    color: #7f8c8d;
}

#score-message {
    font-size: 20px;
    margin-bottom: 30px;
}

.excellent { color: var(--success-color); }
.pass { color: var(--primary-color); }
.fail { color: var(--danger-color); }

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    h1 {
        font-size: 20px;
    }
    h2 {
        font-size: 16px;
    }
}
