/* Quiz Page Styles */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #f5f7ff;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --error-color: #ff4444;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

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

.quiz-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.quiz-box {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    width: 100%;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

p {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 107, 255, 0.2);
}

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: #3a5bd9;
    transform: translateY(-2px);
}

.btn-google {
    background-color: #fff;
    color: #444;
    border: 1px solid #ddd;
    width: 100%;
    margin-bottom: 1.5rem;
}

.btn-google:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #444;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

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

.btn-success:hover {
    background-color: #43a047;
    transform: translateY(-2px);
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
}

.btn-link:hover {
    text-decoration: underline;
    transform: none;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #999;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

/* Quiz Interface */
#quiz-interface {
    display: none;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-top: 1rem;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.quiz-progress {
    flex: 1;
    margin-right: 1rem;
}

.progress-bar {
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

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

.progress-text {
    font-size: 0.875rem;
    color: #666;
}

.quiz-timer {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.quiz-timer i {
    margin-right: 0.5rem;
    color: var(--warning-color);
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-question h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option {
    padding: 1rem 1.25rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

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

.option.selected {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
}

.option.correct {
    background-color: #e8f5e9;
    border-color: var(--success-color);
    color: var(--success-color);
}

.option.incorrect {
    background-color: #ffebee;
    border-color: var(--error-color);
    color: var(--error-color);
}

.option input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Results Container */
#results-container {
    text-align: center;
}

.certificate-icon {
    font-size: 4rem;
    color: #f1c40f;
    margin-bottom: 1.5rem;
}

.score-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.certificate-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    background-color: var(--success-color);
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 576px) {
    .quiz-box {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quiz-timer {
        margin-top: 1rem;
        align-self: flex-start;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quiz-navigation .btn {
        width: 100%;
    }
}
