/* Enhanced Learning Display Styles */

.enhanced-learning-container {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    margin: 20px 0;
    padding: 20px;
    color: #fff;
    max-height: 80vh;
    overflow-y: auto;
}

.learning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
    gap: 10px;
}

.learning-header h3 {
    margin: 0;
    color: #4CAF50;
    font-size: 1.2em;
}

.learning-stats {
    color: #888;
    font-size: 0.9em;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.learning-controls {
    display: flex;
    gap: 10px;
}

.btn-clear, .btn-export {
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-clear {
    background: #F44336;
    color: white;
}

.btn-clear:hover {
    background: #d32f2f;
}

.btn-export {
    background: #2196F3;
    color: white;
}

.btn-export:hover {
    background: #1976D2;
}

.learning-question {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.learning-question:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.learning-question.priority-high {
    border-left: 4px solid #F44336;
}

.learning-question.priority-medium {
    border-left: 4px solid #FF9800;
}

.learning-question.priority-low {
    border-left: 4px solid #4CAF50;
}

.learning-question.answered {
    background: #1a2a1a;
    border-color: #4CAF50;
}

.learning-question.flagged {
    background: #2a1a1a;
    border-color: #FF9800;
}

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

.question-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.question-type {
    background: #2196F3;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: bold;
}

.question-priority {
    background: #FF9800;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: bold;
}

.question-category {
    background: #9C27B0;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75em;
}

.question-timestamp {
    color: #888;
    font-size: 0.8em;
}

.question-content {
    margin-bottom: 10px;
}

.question-text {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    line-height: 1.5;
    border-left: 3px solid #4CAF50;
}

.question-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.btn-answer, .btn-dismiss, .btn-flag, .btn-edit-answer {
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-answer {
    background: #4CAF50;
    color: white;
}

.btn-answer:hover {
    background: #45a049;
}

.btn-dismiss {
    background: #666;
    color: white;
}

.btn-dismiss:hover {
    background: #777;
}

.btn-flag {
    background: #FF9800;
    color: white;
}

.btn-flag:hover {
    background: #f57c00;
}

.btn-edit-answer {
    background: #2196F3;
    color: white;
}

.btn-edit-answer:hover {
    background: #1976D2;
}

.answered-text {
    color: #4CAF50;
    font-weight: bold;
    font-size: 0.8em;
    background: #1a2a1a;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 10px;
}

.question-context {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #333;
}

.question-context h4 {
    margin: 0 0 10px 0;
    color: #4CAF50;
    font-size: 0.9em;
}

.context-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.context-item {
    font-size: 0.85em;
}

.context-item strong {
    color: #4CAF50;
}

.question-toggle {
    text-align: center;
    margin-top: 10px;
}

.btn-toggle-context {
    background: #333;
    color: #888;
    border: 1px solid #555;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75em;
    transition: all 0.3s ease;
}

.btn-toggle-context:hover {
    background: #444;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enhanced-learning-container {
        margin: 10px 0;
        padding: 15px;
    }
    
    .learning-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .learning-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .question-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .question-actions {
        flex-direction: column;
    }
    
    .context-details {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
.enhanced-learning-container::-webkit-scrollbar {
    width: 8px;
}

.enhanced-learning-container::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.enhanced-learning-container::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 4px;
}

.enhanced-learning-container::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

