/* Practice Page Specific Styles */
.practice-wrapper {
    display: flex;
    min-height: calc(100vh - 70px);
    background: var(--light);
}

/* Sidebar */
.sidebar {
    width: 320px;
    background: white;
    border-right: 1px solid var(--border);
    padding: 24px;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 24px;
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 24px;
}

/* Quiz Stats */
.quiz-stats {
    margin-top: 32px;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
}

.quiz-stats h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 4px;
    transition: width 0.3s;
    width: 0%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px;
}

/* Welcome Screen */
.welcome-screen {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.welcome-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.welcome-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.welcome-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.quick-start {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.quick-start h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.quick-link {
    padding: 16px;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quick-link i {
    font-size: 24px;
    color: var(--primary);
}

.quick-link:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* No Questions Message */
.no-questions-message {
    background: white;
    border-radius: 16px;
    padding: 48px 32px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-top: 32px;
    border: 2px solid var(--border);
}

.no-questions-icon {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.no-questions-icon i {
    font-size: 36px;
    color: var(--text-light);
}

.no-questions-message h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.no-questions-message > p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.no-questions-suggestions {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.no-questions-suggestions p {
    margin-bottom: 12px;
    color: var(--dark);
}

.no-questions-suggestions ul {
    margin: 0;
    padding-left: 24px;
    color: var(--text-light);
}

.no-questions-suggestions li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.no-questions-message .btn {
    margin-top: 8px;
}

/* Quiz Interface */
.quiz-interface {
    max-width: 900px;
    margin: 0 auto;
}

.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.question-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.question-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.question-difficulty {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.question-difficulty.easy {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.question-difficulty.medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.question-difficulty.hard {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.question-topic {
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: white;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.question-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.question-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 32px;
    line-height: 1.6;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.option {
    padding: 16px 20px;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.option:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(4px);
}

.option.selected {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.option.correct {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.option.incorrect {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.option.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Feedback Section */
.feedback-section {
    margin-top: 24px;
}

.feedback-content {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.feedback-content.correct {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success);
}

.feedback-content.incorrect {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger);
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feedback-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feedback-icon.correct {
    background: var(--success);
    color: white;
}

.feedback-icon.incorrect {
    background: var(--danger);
    color: white;
}

.feedback-title {
    font-size: 20px;
    font-weight: 700;
}

.feedback-title.correct {
    color: var(--success);
}

.feedback-title.incorrect {
    color: var(--danger);
}

.feedback-explanation {
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

/* Results Screen */
.results-screen {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.results-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, var(--success), #047857);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.results-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 32px;
}

.results-score {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.score-circle {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.score-total {
    font-size: 32px;
    color: var(--text-light);
}

.score-percentage {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-light);
}

.results-breakdown {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.breakdown-item.correct {
    color: var(--success);
}

.breakdown-item.incorrect {
    color: var(--danger);
}

.results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .practice-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .main-content {
        padding: 24px 16px;
    }
    
    .question-content {
        padding: 24px 20px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .quick-links {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 640px) {
    .question-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results-breakdown {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .results-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .results-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

