/* Questions Management Styles */

/* Filters Panel */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: end;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 120px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.filter-group select, .filter-group input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus, .filter-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: end;
}

/* Questions Summary */
.questions-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.summary-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* Enhanced Question Item */
.question-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.question-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.id-badge {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.question-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit, .btn-delete {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit { 
    background: #28a745; 
    color: white; 
}

.btn-edit:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-delete { 
    background: #dc3545; 
    color: white; 
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #495057;
}

.question-content { 
    padding: 1.5rem; 
}

.question-text { 
    font-size: 1.1rem; 
    line-height: 1.6; 
    margin-bottom: 1rem; 
    color: #212529; 
}

.question-image { 
    max-width: 100%; 
    height: auto; 
    border-radius: 8px; 
    margin: 1rem 0; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
}

/* Options Display */
.options {
    margin: 1rem 0;
}

.option {
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.option.correct {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.option:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* Eval Answer Display */
.eval-answer {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.eval-answer.true {
    background: #28a745;
    color: white;
}

.eval-answer.false {
    background: #dc3545;
    color: white;
}

/* Fill Blank Display */
.fill-blank-option {
    background: #e8f5e8;
    border: 2px solid #c3e6c3;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fill-blank-number {
    background: #28a745;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.fill-blank-answer {
    color: #2d5a2d;
    font-weight: 500;
    font-size: 1rem;
}

/* Explanation and Tags */
.explanation {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #0c5460;
}

.tags {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    margin: 1rem 0;
    color: #495057;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .summary-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .question-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .question-actions {
        justify-content: center;
    }
    
    .question-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-actions {
        justify-content: center;
    }
}
