/**
 * DevOps Coach Styles
 * 
 * Modern UI design inspired by learning platforms
 * 
 * @package DevOps_Coach
 * @since 1.3.0
 */

/* Container */
.devops-coach-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.devops-coach-container h2 {
    margin: 0 0 30px 0;
    color: #1a202c;
    font-size: 32px;
    font-weight: 700;
}

/* Layout Grid */
.devops-coach-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 25px;
}

/* Main Content Area */
.devops-coach-main {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

/* Sidebar - AI Assistant */
.devops-coach-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 25px;
}

.sidebar-header h3 {
    margin: 0 0 15px 0;
    color: #1a202c;
    font-size: 22px;
    font-weight: 600;
}

.ai-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

/* Settings */
.devops-coach-settings {
    margin-bottom: 25px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.devops-coach-settings label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 14px;
}

.llm-selector {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #2d3748;
}

.llm-selector:hover {
    border-color: #667eea;
}

.llm-selector:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Chat Messages */
.chat-messages {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.chat-message {
    margin-bottom: 20px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message .message-content {
    background: #edf2f7;
    padding: 14px 18px;
    border-radius: 12px;
    color: #2d3748;
    font-size: 15px;
    line-height: 1.6;
    margin-left: auto;
    max-width: 85%;
    float: right;
    clear: both;
}

.assistant-message .message-content {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    color: #2d3748;
    font-size: 15px;
    line-height: 1.7;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.message-header strong {
    color: #4a5568;
    font-weight: 600;
}

.message-time {
    color: #a0aec0;
    font-size: 12px;
}

.error-message {
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 8px;
    padding: 15px;
    color: #c53030;
}

.welcome-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.welcome-message .message-header strong {
    color: #ffffff;
    font-size: 18px;
}

.welcome-message .message-content {
    color: #ffffff;
    opacity: 0.95;
}

/* Markdown Content Styling */
.message-content h1,
.message-content h2,
.message-content h3 {
    margin-top: 20px;
    margin-bottom: 12px;
    color: #1a202c;
    font-weight: 600;
}

.message-content h1 {
    font-size: 24px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.message-content h2 {
    font-size: 20px;
}

.message-content h3 {
    font-size: 18px;
}

.message-content p {
    margin: 12px 0;
}

.message-content ul,
.message-content ol {
    margin: 12px 0;
    padding-left: 25px;
}

.message-content li {
    margin: 6px 0;
    line-height: 1.6;
}

.message-content code {
    background: #2d3748;
    color: #68d391;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

.message-content pre {
    background: #2d3748;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid #4a5568;
}

.message-content pre code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
}

.message-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 16px;
    margin: 16px 0;
    color: #4a5568;
    font-style: italic;
}

.message-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.message-content a:hover {
    border-bottom-color: #667eea;
}

.message-content strong {
    font-weight: 600;
    color: #1a202c;
}

.message-content em {
    font-style: italic;
}

.message-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.message-content table th,
.message-content table td {
    padding: 10px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.message-content table th {
    background: #f7fafc;
    font-weight: 600;
}

/* Chat Input */
.chat-input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.user-prompt {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 50px;
    transition: all 0.2s;
    color: #2d3748;
}

.user-prompt::placeholder {
    color: #a0aec0;
}

.user-prompt:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.send-prompt-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.send-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.send-prompt-btn:active {
    transform: translateY(0);
}

.send-prompt-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* Loading Indicator */
.loading-indicator {
    margin-top: 15px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #faf089 0%, #f6e05e 100%);
    border-radius: 8px;
    color: #744210;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(246, 224, 94, 0.3);
}

.loading-indicator span::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Syntax Highlighting Enhancements */
pre[class*="language-"] {
    margin: 16px 0;
    border-radius: 8px;
}

code[class*="language-"] {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .devops-coach-layout {
        grid-template-columns: 1fr;
    }
    
    .devops-coach-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .devops-coach-container {
        margin: 15px;
    }

    .devops-coach-container h2 {
        font-size: 26px;
    }

    .devops-coach-main,
    .devops-coach-sidebar {
        padding: 20px;
    }

    .chat-messages {
        max-height: 400px;
    }

    .chat-input-container {
        flex-direction: column;
    }

    .send-prompt-btn {
        width: 100%;
    }
    
    .user-message .message-content {
        max-width: 95%;
    }
}

/* Print Styles */
@media print {
    .devops-coach-settings,
    .chat-input-container,
    .loading-indicator,
    .send-prompt-btn,
    .devops-coach-sidebar {
        display: none;
    }

    .devops-coach-layout {
        grid-template-columns: 1fr;
    }

    .chat-messages {
        max-height: none;
        overflow: visible;
    }
}

/* Admin Settings Page Styles */
.devops-coach-settings-intro {
    background: #f7fafc;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.devops-coach-settings-intro p {
    margin: 10px 0;
    color: #4a5568;
}

.devops-coach-settings-intro ul {
    margin: 15px 0;
    padding-left: 25px;
}

.devops-coach-settings-intro li {
    margin: 8px 0;
    color: #2d3748;
}




/* ========================================
   LMS Features - Progress Dashboard
   ======================================== */

.devops-coach-dashboard {
    margin-bottom: 30px;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.level-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.level-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.level-card h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.xp-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Dashboard Stats Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

/* Achievements */
.achievements-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a202c;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.achievement-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.achievement-info strong {
    display: block;
    color: #1a202c;
    margin-bottom: 4px;
}

.achievement-info p {
    margin: 0 0 4px 0;
    color: #4a5568;
    font-size: 14px;
}

.achievement-info small {
    color: #a0aec0;
    font-size: 12px;
}

/* ========================================
   Projects
   ======================================== */

.projects-section {
    margin-top: 30px;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-card.difficulty-beginner {
    border-left: 4px solid #48bb78;
}

.project-card.difficulty-intermediate {
    border-left: 4px solid #ed8936;
}

.project-card.difficulty-advanced {
    border-left: 4px solid #f56565;
}

.project-card.new-project {
    background: linear-gradient(135deg, #fef5e7 0%, #ffffff 100%);
    border: 2px solid #f39c12;
    box-shadow: 0 4px 16px rgba(243, 156, 18, 0.15);
}

.project-card.new-project:hover {
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.25);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
    animation: pulse-new 2s ease-in-out infinite;
}

@keyframes pulse-new {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.project-header h4 {
    margin: 0;
    color: #1a202c;
    font-size: 18px;
}

.difficulty-badge {
    background: #edf2f7;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.project-description {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #718096;
}

.project-status {
    text-transform: capitalize;
    font-weight: 600;
}

.project-actions {
    display: flex;
    gap: 10px;
}

.project-actions button {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-start-project {
    background: #667eea;
    color: #ffffff;
}

.btn-start-project:hover {
    background: #5a67d8;
}

.btn-view-project {
    background: #edf2f7;
    color: #4a5568;
}

.btn-view-project:hover {
    background: #e2e8f0;
}

.no-projects {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
    font-style: italic;
}

/* ========================================
   Project Workspace
   ======================================== */

.project-workspace {
    background: #ffffff;
    border: 2px solid #667eea;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.workspace-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 20px 25px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workspace-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.btn-close-workspace {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-close-workspace:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.workspace-content {
    padding: 25px;
}

.workspace-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.workspace-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.workspace-section h4 {
    color: #1a202c;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.workspace-section p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.requirements-content {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    color: #2d3748;
    line-height: 1.8;
}

.project-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-details-list li {
    padding: 8px 0;
    color: #4a5568;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-assigned {
    background: #bee3f8;
    color: #2c5282;
}

.status-in_progress {
    background: #feebc8;
    color: #7c2d12;
}

.status-submitted {
    background: #c6f6d5;
    color: #22543d;
}

.status-completed {
    background: #9ae6b4;
    color: #22543d;
}

.submission-hint {
    color: #718096;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 10px;
}

.submission-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
}

.submission-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submission-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.btn-submit-project,
.btn-save-draft {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit-project {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #ffffff;
    flex: 1;
}

.btn-submit-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.btn-submit-project:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.btn-save-draft {
    background: #edf2f7;
    color: #4a5568;
}

.btn-save-draft:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* ========================================
   Quiz Interface
   ======================================== */

.quiz-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

.quiz-container h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #1a202c;
}

.quiz-question {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.quiz-question:last-of-type {
    border-bottom: none;
}

.question-text {
    font-size: 16px;
    color: #1a202c;
    margin-bottom: 15px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-option:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.quiz-option input[type="radio"] {
    margin-right: 12px;
}

.btn-submit-quiz {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-submit-quiz:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Quiz Results */
.quiz-results {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
}

.quiz-results h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.results-summary {
    background: #f7fafc;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}

.results-summary .score {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 10px 0;
}

.results-summary .correct-count {
    font-size: 18px;
    color: #4a5568;
    margin: 0 0 15px 0;
}

.pass-status {
    font-size: 20px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

.pass-status.passed {
    background: #c6f6d5;
    color: #22543d;
}

.pass-status.failed {
    background: #fed7d7;
    color: #742a2a;
}

.results-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
}

.result-item.correct {
    background: #f0fff4;
    border-left-color: #48bb78;
}

.result-item.incorrect {
    background: #fff5f5;
    border-left-color: #f56565;
}

.result-item .question {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.result-item .answer,
.result-item .correct-answer {
    font-size: 14px;
    color: #4a5568;
    margin: 4px 0;
}

.result-item .explanation {
    font-size: 14px;
    color: #718096;
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.btn-close {
    width: 100%;
    padding: 12px;
    background: #edf2f7;
    color: #4a5568;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
}

.btn-close:hover {
    background: #e2e8f0;
}

/* Action Buttons */
.lms-action-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.lms-action-buttons button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#request-project-btn {
    background: #48bb78;
    color: #ffffff;
}

#request-project-btn:hover {
    background: #38a169;
}

#generate-quiz-btn {
    background: #ed8936;
    color: #ffffff;
}

#generate-quiz-btn:hover {
    background: #dd6b20;
}

#view-progress-btn {
    background: #667eea;
    color: #ffffff;
}

#view-progress-btn:hover {
    background: #5a67d8;
}

/* Responsive LMS */
@media (max-width: 768px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-list {
        grid-template-columns: 1fr;
    }
    
    .lms-action-buttons {
        flex-direction: column;
    }
}




/* ========================================
   AI Review Modal
   ======================================== */

.ai-review-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    animation: slideDown 0.4s ease-out;
    overflow: hidden;
}

.ai-review-modal.review-passed {
    border: 3px solid #48bb78;
}

.ai-review-modal.review-failed {
    border: 3px solid #f56565;
}

.review-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.btn-close-review {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-close-review:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.review-content {
    padding: 30px;
}

.review-score-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #ffffff;
    border: 6px solid #667eea;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.review-passed .score-circle {
    border-color: #48bb78;
}

.review-failed .score-circle {
    border-color: #f56565;
}

.score-value {
    font-size: 48px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1;
}

.score-label {
    font-size: 16px;
    color: #718096;
    font-weight: 600;
}

.pass-status {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px;
    border-radius: 8px;
    text-align: center;
}

.pass-status.review-passed {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.pass-status.review-failed {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.review-feedback {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.feedback-content {
    color: #2d3748;
    font-size: 15px;
    line-height: 1.8;
}

.feedback-content strong {
    color: #1a202c;
    font-weight: 700;
    font-size: 16px;
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
}

.feedback-content strong:first-child {
    margin-top: 0;
}

.feedback-content p {
    margin: 0 0 15px 0;
}

.feedback-content p:last-child {
    margin-bottom: 0;
}

.review-actions {
    display: flex;
    justify-content: center;
}

.btn-close-review-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-close-review-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}




/* ========================================
   Chat Header & Sessions
   ======================================== */

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.chat-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.btn-new-chat {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-new-chat:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Chat Sessions Sidebar */
.chat-sessions-sidebar {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sessions-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sessions-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.btn-close-sessions {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-close-sessions:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sessions-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.session-item {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.session-item:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateX(-3px);
}

.session-item.active {
    background: #e6fffa;
    border-color: #81e6d9;
}

.session-info {
    flex: 1;
    min-width: 0;
}

.session-preview {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #718096;
}

.session-actions {
    display: flex;
    gap: 6px;
    margin-left: 10px;
}

.btn-load-session,
.btn-delete-session {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-load-session:hover {
    background: #e2e8f0;
}

.btn-delete-session:hover {
    background: #fed7d7;
}

.loading-sessions,
.no-sessions,
.error-sessions {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
    font-style: italic;
}

.error-sessions {
    color: #f56565;
}

/* Adjust chat messages to account for header */
.chat-messages {
    border-radius: 0 0 12px 12px;
    margin-top: 0;
}

