/* Enhanced Question Details Modal */
.question-details-modal {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.question-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.detail-section h4 {
    color: #8b5cf6;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.question-text-large {
    color: #f9fafb;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.5);
    border-radius: 6px;
    border-left: 4px solid #8b5cf6;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-item {
    background: rgba(17, 24, 39, 0.3);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(75, 85, 99, 0.2);
}

.detail-item label {
    display: block;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.detail-value {
    color: #f9fafb;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Type badges */
.type-mcq {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.type-true-false {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Category badges */
.category-uncategorized {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.category-history {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.category-science {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.category-entertainment {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Difficulty badges */
.difficulty-easy {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.difficulty-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.difficulty-hard {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Language badge */
.language-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Success rate with mini bar */
.success-rate {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-rate-bar {
    width: 100px;
    height: 4px;
    background: rgba(75, 85, 99, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.mini-rate-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #22c55e 100%);
    transition: width 0.3s ease;
}

/* Tags container */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* AI section */
.ai-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.ai-details p {
    color: #e5e7eb;
    margin: 0.5rem 0;
}

.ai-badge {
    background: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
