/**
 * Frontend styles for Henotace Teaching Assistant
 *
 * @package Henotace_Teaching_Assistant
 * @since 1.0.0
 */

/* Base styles */
.henotace-ta-widget,
.henotace-ta-analytics,
.henotace-ta-grading,
.henotace-ta-recommendations,
.henotace-ta-dashboard,
.henotace-ta-progress,
.henotace-ta-feedback {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Loading states */
.henotace-ta-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.henotace-ta-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Teaching Assistant Widget */
.henotace-ta-widget {
    min-height: 400px;
}

.henotace-ta-widget-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.henotace-ta-widget-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.henotace-ta-widget-content {
    padding: 20px;
}

/* Analytics Widget */
.henotace-ta-analytics {
    min-height: 500px;
}

.henotace-ta-analytics-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.henotace-ta-analytics-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
}

.henotace-ta-analytics-content {
    padding: 20px;
}

.henotace-ta-progress-section,
.henotace-ta-performance-section,
.henotace-ta-insights-section {
    margin-bottom: 30px;
}

.henotace-ta-progress-section h4,
.henotace-ta-performance-section h4,
.henotace-ta-insights-section h4 {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 1.1em;
}

/* Grading Widget */
.henotace-ta-grading {
    min-height: 300px;
}

.henotace-ta-grading-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.henotace-ta-grading-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
}

.henotace-ta-grade-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.henotace-ta-grade-btn:hover {
    background: #005a87;
}

.henotace-ta-grade-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.henotace-ta-grading-results {
    padding: 20px;
}

.henotace-ta-grading-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.henotace-ta-grading-details {
    /* Styles for detailed grading results */
}

/* Recommendations Widget */
.henotace-ta-recommendations {
    min-height: 400px;
}

.henotace-ta-recommendations-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.henotace-ta-recommendations-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
}

.henotace-ta-refresh-recommendations {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.henotace-ta-refresh-recommendations:hover {
    background: #218838;
}

.henotace-ta-recommendations-content {
    padding: 20px;
}

.henotace-ta-recommendations-content h4 {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 1.1em;
}

.henotace-ta-recommendations-list {
    /* Styles for recommendations list */
}

/* Dashboard Widget */
.henotace-ta-dashboard {
    min-height: 600px;
}

.henotace-ta-dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.henotace-ta-dashboard-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
}

.henotace-ta-dashboard-content {
    display: flex;
    min-height: 500px;
}

.henotace-ta-dashboard-sidebar {
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #e1e5e9;
}

.henotace-ta-dashboard-nav {
    padding: 20px 0;
}

.henotace-ta-nav-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: background-color 0.3s;
}

.henotace-ta-nav-btn:hover {
    background: #e9ecef;
}

.henotace-ta-nav-btn.active {
    background: #007cba;
    color: white;
}

.henotace-ta-dashboard-main {
    flex: 1;
    padding: 20px;
}

.henotace-ta-dashboard-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.4em;
}

/* Progress Widget */
.henotace-ta-progress {
    min-height: 400px;
}

.henotace-ta-progress-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.henotace-ta-progress-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
}

.henotace-ta-progress-content {
    padding: 20px;
}

.henotace-ta-completion-progress,
.henotace-ta-grades-progress,
.henotace-ta-time-progress {
    margin-bottom: 30px;
}

.henotace-ta-completion-progress h4,
.henotace-ta-grades-progress h4,
.henotace-ta-time-progress h4 {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 1.1em;
}

.henotace-ta-progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.henotace-ta-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

.henotace-ta-progress-percentage {
    text-align: center;
    font-weight: 600;
    color: #555;
}

/* Feedback Widget */
.henotace-ta-feedback {
    min-height: 400px;
}

.henotace-ta-feedback-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.henotace-ta-feedback-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
}

.henotace-ta-feedback-content {
    padding: 20px;
}

.henotace-ta-feedback-scores,
.henotace-ta-feedback-details,
.henotace-ta-feedback-suggestions {
    margin-bottom: 30px;
}

.henotace-ta-feedback-scores h4,
.henotace-ta-feedback-details h4,
.henotace-ta-feedback-suggestions h4 {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 1.1em;
}

/* Dark theme */
.henotace-ta-dark {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #333;
}

.henotace-ta-dark .henotace-ta-widget-header,
.henotace-ta-dark .henotace-ta-dashboard-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.henotace-ta-dark .henotace-ta-analytics-header,
.henotace-ta-dark .henotace-ta-grading-header,
.henotace-ta-dark .henotace-ta-recommendations-header,
.henotace-ta-dark .henotace-ta-progress-header,
.henotace-ta-dark .henotace-ta-feedback-header {
    background: #2c2c2c;
    border-bottom-color: #444;
}

.henotace-ta-dark .henotace-ta-dashboard-sidebar {
    background: #2c2c2c;
    border-right-color: #444;
}

.henotace-ta-dark .henotace-ta-nav-btn {
    color: #e0e0e0;
}

.henotace-ta-dark .henotace-ta-nav-btn:hover {
    background: #444;
}

.henotace-ta-dark h3,
.henotace-ta-dark h4 {
    color: #e0e0e0;
}

/* Responsive design */
@media (max-width: 768px) {
    .henotace-ta-dashboard-content {
        flex-direction: column;
    }
    
    .henotace-ta-dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
    }
    
    .henotace-ta-dashboard-nav {
        display: flex;
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .henotace-ta-nav-btn {
        white-space: nowrap;
        margin-right: 10px;
        padding: 8px 16px;
    }
    
    .henotace-ta-grading-header,
    .henotace-ta-recommendations-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Utility classes */
.henotace-ta-hidden {
    display: none !important;
}

.henotace-ta-text-center {
    text-align: center;
}

.henotace-ta-text-success {
    color: #28a745;
}

.henotace-ta-text-warning {
    color: #ffc107;
}

.henotace-ta-text-danger {
    color: #dc3545;
}

.henotace-ta-mb-0 {
    margin-bottom: 0;
}

.henotace-ta-mb-1 {
    margin-bottom: 0.25rem;
}

.henotace-ta-mb-2 {
    margin-bottom: 0.5rem;
}

.henotace-ta-mb-3 {
    margin-bottom: 1rem;
}

.henotace-ta-mb-4 {
    margin-bottom: 1.5rem;
}

.henotace-ta-mb-5 {
    margin-bottom: 3rem;
}
