EduMentorAI / src /static /css /quiz.css
ziadtarek12's picture
Application Code
8472119
Raw
History Blame Contribute Delete
6.54 kB
.quiz-container {
max-width: 900px;
margin: 0 auto;
padding: 2rem;
}
.quiz-header {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 2rem;
border-radius: 12px;
margin-bottom: 2rem;
text-align: center;
}
.quiz-title {
font-size: 2rem;
margin-bottom: 0.5rem;
font-weight: 700;
}
.quiz-meta {
display: flex;
justify-content: center;
gap: 2rem;
margin-top: 1rem;
opacity: 0.9;
}
.meta-item {
display: flex;
align-items: center;
gap: 0.5rem;
}
.question-card {
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 12px;
margin-bottom: 1.5rem;
overflow: hidden;
box-shadow: var(--shadow-light);
transition: all 0.3s ease;
}
.question-card.current {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.question-header {
padding: 1.5rem;
background: var(--bg-secondary);
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
}
.question-number {
background: var(--primary-color);
color: white;
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 14px;
}
.question-type {
background: rgba(79, 70, 229, 0.1);
color: var(--primary-color);
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 500;
text-transform: uppercase;
}
.question-content {
padding: 1.5rem;
}
.question-text {
font-size: 1.1rem;
font-weight: 500;
color: var(--text-primary);
margin-bottom: 1.5rem;
line-height: 1.6;
}
.choices-container {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.choice {
display: flex;
align-items: center;
padding: 1rem;
background: var(--bg-secondary);
border: 2px solid var(--border-color);
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
}
.choice:hover {
border-color: var(--primary-color);
background: rgba(79, 70, 229, 0.05);
}
.choice.selected {
border-color: var(--primary-color);
background: rgba(79, 70, 229, 0.1);
}
.choice.correct {
border-color: var(--primary-color);
background: rgba(16, 185, 129, 0.1);
}
.choice.incorrect {
border-color: #ef4444;
background: rgba(239, 68, 68, 0.1);
}
.choice-input {
margin-right: 12px;
transform: scale(1.2);
}
.choice-label {
flex: 1;
font-size: 0.95rem;
line-height: 1.5;
color: var(--text-primary);
}
.choice-indicator {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
opacity: 0;
transition: opacity 0.3s ease;
}
.choice.correct .choice-indicator,
.choice.incorrect .choice-indicator {
opacity: 1;
}
.explanation {
margin-top: 1rem;
padding: 1rem;
background: rgba(59, 130, 246, 0.05);
border: 1px solid rgba(59, 130, 246, 0.2);
border-radius: 8px;
display: none;
}
.explanation.show {
display: block;
}
.explanation-title {
font-weight: 600;
color: var(--primary-color);
margin-bottom: 0.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.explanation-text {
color: var(--text-secondary);
line-height: 1.5;
}
.quiz-navigation {
display: flex;
justify-content: space-between;
align-items: center;
margin: 2rem 0;
padding: 1.5rem;
background: var(--bg-secondary);
border-radius: 12px;
border: 1px solid var(--border-color);
}
.nav-button {
padding: 10px 20px;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
}
.btn-previous {
background: var(--bg-primary);
color: var(--text-secondary);
border: 1px solid var(--border-color);
}
.btn-previous:hover {
background: var(--bg-secondary);
color: var(--text-primary);
}
.btn-next, .btn-submit {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
}
.btn-next:hover, .btn-submit:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.btn-previous:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.progress-indicator {
display: flex;
align-items: center;
gap: 1rem;
}
.progress-text {
font-weight: 500;
color: var(--text-primary);
}
.progress-bar {
width: 200px;
height: 8px;
background: var(--border-color);
border-radius: 4px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
transition: width 0.3s ease;
}
.quiz-results {
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 2rem;
text-align: center;
margin-top: 2rem;
}
.score-circle {
width: 120px;
height: 120px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1rem;
font-size: 2rem;
font-weight: 700;
}
.results-actions {
display: flex;
gap: 1rem;
justify-content: center;
margin-top: 2rem;
}
@media (max-width: 768px) {
.quiz-container {
padding: 1rem;
}
.quiz-meta {
flex-direction: column;
gap: 0.5rem;
}
.quiz-navigation {
flex-direction: column;
gap: 1rem;
}
.progress-indicator {
order: -1;
}
.progress-bar {
width: 100%;
}
.results-actions {
flex-direction: column;
}
}
[dark-theme="dark"] .btn-document-action{
background: rgba(255, 255, 255, 0.2);
color: white;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 50px;
padding: 0.75rem 2rem;
font-weight: 600;
text-decoration: none;
display: inline-block;
margin: 0.5rem;
position: relative;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(10px);
}
[data-theme="dark"] .quizzes-hero {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}