/* Cornell Notes CSS Styles */
.cornell-notes-container {
    max-width: 900px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header Section */
.notes-header {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    padding: 2rem;
    text-align: center;
    color: white;
}

.main-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-divider {
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Main Content Layout */
.notes-content {
    padding: 1.5rem;
}

.cornell-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Left Column - Cues */
.cue-column {
    background: #f8fafc;
    padding: 1.5rem 1rem;
    border-right: 2px solid #e2e8f0;
}

.cue-content {
    position: sticky;
    top: 1rem;
}

.cue-number {
    display: inline-block;
    background: #4f46e5;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.cue-text {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    line-height: 1.4;
}

/* Right Column - Notes */
.notes-column {
    padding: 1.5rem;
    background: white;
}

.notes-content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.notes-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.note-item {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
}

.note-item::before {
    content: '•';
    color: #6366f1;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -0.1rem;
}

/* Section Summary */
.section-summary {
    background: #e0e7ff;  /* light indigo */
    border-left: 4px solid #4f46e5;
    padding: 1rem;
    border-radius: 0 6px 6px 0;
    margin-top: auto;
}

.summary-text {
    font-size: 0.9rem;
    color: #0c4a6e;
    margin: 0;
    font-style: italic;
    line-height: 1.5;
}

/* Conclusion Section */
.conclusion-section {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    color: white;
    padding: 2rem;
    margin-top: 1rem;
}

.conclusion-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
}

.conclusion-content {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cornell-notes-container {
        margin: 1rem;
        border-radius: 8px;
    }
    
    .cornell-section {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .cue-column {
        border-right: none;
        border-bottom: 2px solid #e2e8f0;
        padding: 1rem;
    }
    
    .notes-column {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .notes-header {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .cornell-notes-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .notes-header {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .conclusion-section {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .section-summary {
        background: #f9f9f9 !important;
        border-left-color: #000 !important;
    }
}

/* === Dark Mode === */
.dark .cornell-notes-container {
    background: #0F172A;
    color: #E2E8F0;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

.dark .notes-header {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    color: white;
}

.dark .header-divider {
    background: rgba(255, 255, 255, 0.6);
}

.dark .cornell-section {
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.03);
}

.dark .cue-column {
    background: #1E293B;
    border-color: #334155;
}

.dark .cue-number {
    background: #6366f1;
    color: white;
}

.dark .cue-text {
    color: #cbd5e1;
}

.dark .notes-column {
    background: #0F172A;
}

.dark .note-item {
    color: #cbd5e1;
}

.dark .note-item::before {
    color: #A855F7;
}

.dark .section-summary {
    background: rgba(99, 102, 241, 0.1);
    border-left-color: #818cf8;
}

.dark .summary-text {
    color: #e0f2fe;
}

.dark .conclusion-section {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    color: white;
}
