/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(120deg, #f6f8fc 0%, #dbeafe 60%, #a7c7e7 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 2rem;
    background: linear-gradient(120deg, #2563eb 0%, #3b82f6 60%, #1e40af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(120deg, #2563eb 0%, #3b82f6 60%, #1e40af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Main Container */
.main-container {
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.screen.active {
    display: block;
}

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

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    font-size: 1.125rem;
    color: #374151;
}

/* Subject Cards */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.subject-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f6f8fc 0%, #dbeafe 80%, #a7c7e7 100%);
}


.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.subject-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(120deg, #f6f8fc 0%, #dbeafe 60%, #a7c7e7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.subject-icon i {
    font-size: 1.5rem;
    color: white;
}

.subject-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.subject-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.subject-stats {
    display: flex;
    gap: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

.stat i {
    color: #a855f7;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #a855f7;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: white;
    transform: translateX(-2px);
}

.breadcrumb h2 {
    color: #1a1a1a;
    font-size: 1.75rem;
    font-weight: 600;
}

/* Chapter Cards */
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.chapter-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #a855f7;
}

.chapter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.chapter-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.chapter-number {
    background: linear-gradient(120deg, #f6f8fc 0%, #dbeafe 60%, #a7c7e7 100%);
    color: #1a1a1a;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.chapter-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.chapter-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #666;
}

/* Content Options */
.content-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.content-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(120deg, #f6f8fc 0%, #dbeafe 60%, #a7c7e7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.content-icon i {
    font-size: 2rem;
    color: white;
}

.content-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.content-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.content-meta {
    color: #a855f7;
    font-weight: 500;
}

/* Synopsis Styles */
.synopsis-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.synopsis-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

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

.synopsis-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.synopsis-text p {
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 1rem;
}

.examples {
    margin-top: 1.5rem;
}

.examples h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.example-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.example-box p {
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    color: #374151;
}

.key-concepts {
    background: linear-gradient(135deg, #ff6b6b10, #4ecdc410);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.key-concepts h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.concepts-list {
    list-style: none;
}

.concepts-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.concepts-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Problem Navigation */
.problem-navigation {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
}

/* Problems Grid */

.problem-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
}

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

.problem-item.completed {
    border-color: #10b981;
    background: #f0fdf4;
}

.problem-item.current {
    border-color: #a855f7;
    background: #faf5ff;
}

.problem-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.problem-status {
    font-size: 0.75rem;
    color: #666;
}

.problem-item.completed .problem-status {
    color: #10b981;
}

.problem-item.current .problem-status {
    color: #a855f7;
}

/* Exercise Sections */
.exercise-section {
    background: white;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}


.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.exercise-header h3 {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 600;
}

.exercise-count {
    background: linear-gradient(120deg, #f6f8fc 0%, #dbeafe 60%, #a7c7e7 100%);
    color: #1a1a1a;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.exercise-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.start-exercise-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.start-exercise-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Problem Viewer */
.problem-header {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.problem-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.problem-number {
    font-weight: 600;
    color: #1a1a1a;
}

.difficulty-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #fbbf24;
    color: white;
}

.difficulty-badge.easy {
    background: #10b981;
}

.difficulty-badge.hard {
    background: #ef4444;
}

.problem-navigation-controls {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #06b6d4;
    color: white;
}

.nav-btn:disabled {
    background: #f9fafb;
    color: #d1d5db;
    cursor: not-allowed;
}

/* Problem Content */
.problem-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.problem-question {
    margin-bottom: 2rem;
}

.problem-question h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.question-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #a855f7;
}

.question-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Choices */
.problem-choices h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.choices-container {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.choice-option {
    position: relative;
}

.choice-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.choice-option label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.choice-option label:hover {
    border-color: #a855f7;
    background: #faf5ff;
}

.choice-option input[type="radio"]:checked + label {
    border-color: #a855f7;
    background: #faf5ff;
}

.choice-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    transition: all 0.2s ease;
}

.choice-option input[type="radio"]:checked + label .choice-letter {
    background: #06b6d4;
    color: white;
}

.choice-text {
    flex: 1;
    font-size: 1rem;
    color: #374151;
}

/* Feedback Styles */
.choice-option.correct label {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

.choice-option.incorrect label {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.choice-option.correct .choice-letter {
    background: #10b981 !important;
    color: white !important;
}

.choice-option.incorrect .choice-letter {
    background: #ef4444 !important;
    color: white !important;
}

/* Problem Actions */
.problem-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(120deg, #f6f8fc 0%, #dbeafe 60%, #a7c7e7 100%);
    color: #1a1a1a;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Feedback Section */
.feedback-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    margin-top: 2rem;
}

.feedback-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feedback-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feedback-icon i {
    font-size: 1.5rem;
}

.feedback-section.correct .feedback-icon {
    background: #f0fdf4;
    color: #10b981;
}

.feedback-section.incorrect .feedback-icon {
    background: #fef2f2;
    color: #ef4444;
}

.feedback-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feedback-section.correct .feedback-text h4 {
    color: #10b981;
}

.feedback-section.incorrect .feedback-text h4 {
    color: #ef4444;
}

.feedback-text p {
    color: #6b7280;
    line-height: 1.6;
}

/* Hint Section */
.hint-section {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.hint-content h4 {
    color: #f59e0b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hint-content p {
    color: #92400e;
    margin: 0;
}

/* AI Chat Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(120deg, #f6f8fc 0%, #dbeafe 60%, #a7c7e7 100%);
    color: #1a1a1a;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

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

/* Chat Container */
.chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    animation: slideIn 0.3s ease;
}

.message.ai-message {
    align-self: flex-start;
}

.message.user-message {
    align-self: flex-end;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.ai-message .message-content {
    background: #f3f4f6;
    color: #374151;
    border-bottom-left-radius: 4px;
}

.user-message .message-content {
    background: linear-gradient(135deg, #06b6d4, #10b981);
    color: white;
    border-bottom-right-radius: 4px;
}

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

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
}

.chat-input-container input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
}

.chat-input-container input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.send-btn {
    background: linear-gradient(135deg, #06b6d4, #10b981);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.loading-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
    color: #ff6b6b;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-weight: 500;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast.success .toast-content i {
    color: #10b981;
}

.toast.error .toast-content i {
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .problems-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    .problem-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .problem-navigation-controls {
        order: -1;
    }
    
    .problem-actions {
        flex-direction: column;
    }
    
    .nav-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .breadcrumb {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .feedback-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .chat-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .welcome-section h2 {
        font-size: 2rem;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }
    
    .subject-card {
        padding: 1.5rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .problem-content {
        padding: 1rem;
    }
    
    .synopsis-content {
        padding: 1rem;
    }
}

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

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

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

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

/* Focus States for Accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

.choice-option input[type="radio"]:focus + label {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .problem-actions,
    .modal,
    .loading-overlay,
    .toast {
        display: none !important;
    }
    
    .main-container {
        padding: 0;
    }
    
    .problem-content,
    .synopsis-content {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

/* AI Chat Styles */
.message-content h1, .message-content h2, .message-content h3 {
    color: #2a3a5e;
    margin-top: 1em;
    margin-bottom: 0.5em;
}
.message-content strong {
    color: #3b5998;
}
.message-content ul, .message-content ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}
.message-content p {
    margin-bottom: 0.7em;
    line-height: 1.6;
}
