* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

header .subtitle {
    color: #ecf0f1;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

nav {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

nav a {
    color: #3498db;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

nav a:hover {
    background-color: #ecf0f1;
}

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

.about-section {
    margin-bottom: 1.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.about-block {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.about-block h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.about-block p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.filter-hint {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.student-intro {
    background: #e8f4f8;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3498db;
}

.student-intro p {
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

.filter-group select {
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: white;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #3498db;
}

.local-news-filter {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.local-news-filter > label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: #2c3e50;
}

.city-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.city-input-group input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.city-input-group input:focus {
    outline: none;
    border-color: #3498db;
}

.city-input-group button {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

#search-local-btn {
    background-color: #3498db;
    color: white;
}

#search-local-btn:hover {
    background-color: #2980b9;
}

#clear-local-btn {
    background-color: #e74c3c;
    color: white;
}

#clear-local-btn:hover {
    background-color: #c0392b;
}

#local-status {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #27ae60;
}

.include-tags {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.include-tags > label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: #2c3e50;
}

.exclude-tags {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.exclude-tags > label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: #555;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.stories h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

#story-count {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: normal;
}

#story-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.story-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.story-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    margin-right: 1rem;
}

.story-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.topic {
    background-color: #3498db;
    color: white;
}

.badge.level {
    background-color: #9b59b6;
    color: white;
}

.badge.date {
    background-color: #95a5a6;
    color: white;
}

.badge.sensitivity-low {
    background-color: #27ae60;
    color: white;
}

.badge.sensitivity-medium {
    background-color: #f39c12;
    color: white;
}

.badge.sensitivity-high {
    background-color: #e74c3c;
    color: white;
}

.story-preview {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.story-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.modal-summary {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.modal-summary p {
    margin-bottom: 1rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.modal-section ol {
    padding-left: 1.5rem;
}

.modal-section li {
    margin-bottom: 0.5rem;
    color: #555;
}

.modal-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: #ecf0f1;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #555;
}

.student-story-list .story-card {
    padding: 2rem;
}

.student-story-list .story-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.student-summary {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.feedback-link {
    color: #3498db;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid #3498db;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-link:hover {
    background-color: #3498db;
    color: white;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-primary:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-tertiary {
    background-color: #16a085;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-tertiary:hover {
    background-color: #138d75;
}

.perspectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.perspective-column {
    background-color: #f8f9fa;
    padding: 1.25rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.perspective-column.perspective-a {
    border-left-color: #9b59b6;
}

.perspective-column.perspective-b {
    border-left-color: #e67e22;
}

.perspective-column.perspective-global {
    border-left-color: #16a085;
}

.perspective-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.perspective-content {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.perspective-content p {
    margin-bottom: 0.75rem;
}

.perspectives-note {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.perspectives-note p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-subtitle {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.feedback-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    display: none;
}

.feedback-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.feedback-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.4rem;
    }
    
    nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    nav a, .feedback-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 0.75rem;
        margin: 1rem auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-block {
        padding: 1rem;
    }
    
    .filters {
        padding: 1rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .filter-group select {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .checkbox-group {
        gap: 0.75rem 1rem;
    }
    
    .checkbox-group label {
        padding: 0.25rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .checkbox-group input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }
    
    .city-input-group {
        flex-direction: column;
    }
    
    .city-input-group input {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .city-input-group button {
        padding: 0.75rem;
        width: 100%;
    }
    
    .story-card {
        padding: 1rem;
    }
    
    .story-title {
        font-size: 1.1rem;
    }
    
    .story-meta {
        gap: 0.5rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .story-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .story-actions .btn {
        width: 100%;
        padding: 0.75rem;
        min-height: 44px;
    }
    
    .modal-content {
        margin: 2% auto;
        padding: 1.25rem;
        max-height: 90vh;
        width: 95%;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .close {
        right: 1rem;
        top: 0.75rem;
        font-size: 1.75rem;
    }
    
    .perspectives-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
        min-height: 44px;
    }
    
    .student-story-list .story-card {
        padding: 1.25rem;
    }
    
    .student-story-list .story-title {
        font-size: 1.2rem;
    }
}

/* Dark mode styles */
body.dark-mode {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

body.dark-mode header {
    background-color: #16213e;
}

body.dark-mode .container {
    color: #e0e0e0;
}

body.dark-mode .about-block,
body.dark-mode .filters,
body.dark-mode .story-card {
    background-color: #16213e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

body.dark-mode .about-block h3,
body.dark-mode .filters h2,
body.dark-mode .stories h2,
body.dark-mode .story-title {
    color: #e0e0e0;
}

body.dark-mode .about-block p,
body.dark-mode .story-preview,
body.dark-mode .filter-group label {
    color: #b0b0b0;
}

body.dark-mode .filter-group select,
body.dark-mode .city-input-group input {
    background-color: #0f3460;
    border-color: #1a1a2e;
    color: #e0e0e0;
}

body.dark-mode .filter-group select:focus,
body.dark-mode .city-input-group input:focus {
    border-color: #3498db;
}

body.dark-mode .local-news-filter {
    background-color: #0f3460;
    border-color: #1a1a2e;
}

body.dark-mode .include-tags,
body.dark-mode .exclude-tags {
    border-top-color: #333;
}

body.dark-mode .student-intro {
    background-color: #0f3460;
    border-left-color: #3498db;
}

body.dark-mode .student-intro p {
    color: #e0e0e0;
}

body.dark-mode .modal-content {
    background-color: #16213e;
    color: #e0e0e0;
}

body.dark-mode .modal-title {
    color: #e0e0e0;
}

body.dark-mode .modal-summary,
body.dark-mode .modal-section li {
    color: #b0b0b0;
}

body.dark-mode .modal-section h3 {
    color: #e0e0e0;
}

body.dark-mode .tag {
    background-color: #0f3460;
    color: #b0b0b0;
}

body.dark-mode .perspective-column {
    background-color: #0f3460;
}

body.dark-mode .perspective-title {
    color: #e0e0e0;
    border-bottom-color: #333;
}

body.dark-mode .perspective-content {
    color: #b0b0b0;
}

body.dark-mode .perspectives-note {
    background-color: #3d3d00;
    border-color: #666600;
}

body.dark-mode .perspectives-note p {
    color: #e0e0e0;
}

body.dark-mode .form-group label {
    color: #e0e0e0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background-color: #0f3460;
    border-color: #1a1a2e;
    color: #e0e0e0;
}

body.dark-mode .student-summary {
    color: #b0b0b0;
}

body.dark-mode .filter-hint {
    color: #888;
}

/* Dark mode toggle button */
.theme-toggle {
    background: none;
    border: 1px solid #3498db;
    color: #3498db;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background-color: #3498db;
    color: white;
}

body.dark-mode .theme-toggle {
    border-color: #f39c12;
    color: #f39c12;
}

body.dark-mode .theme-toggle:hover {
    background-color: #f39c12;
    color: #16213e;
}

/* Bookmark button styles */
.btn-bookmark {
    background-color: transparent;
    border: 1px solid #f39c12;
    color: #f39c12;
}

.btn-bookmark:hover {
    background-color: #f39c12;
    color: white;
}

.btn-bookmark.bookmarked {
    background-color: #f39c12;
    color: white;
}

body.dark-mode .btn-bookmark {
    border-color: #f39c12;
    color: #f39c12;
}

body.dark-mode .btn-bookmark:hover,
body.dark-mode .btn-bookmark.bookmarked {
    background-color: #f39c12;
    color: #16213e;
}

/* Share button */
.btn-share {
    background-color: #27ae60;
    color: white;
}

.btn-share:hover {
    background-color: #219a52;
}

/* Print button in modal */
.btn-print {
    background-color: #8e44ad;
    color: white;
}

.btn-print:hover {
    background-color: #7d3c98;
}

/* Modal actions bar */
.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

body.dark-mode .modal-actions {
    border-top-color: #333;
}

/* Bookmarks section */
.bookmarks-section {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #f39c12;
}

body.dark-mode .bookmarks-section {
    background-color: #3d3d00;
    border-left-color: #f39c12;
}

.bookmarks-section h3 {
    margin-bottom: 0.5rem;
    color: #856404;
}

body.dark-mode .bookmarks-section h3 {
    color: #f39c12;
}

.bookmarks-section p {
    color: #856404;
    margin-bottom: 0.75rem;
}

body.dark-mode .bookmarks-section p {
    color: #e0e0e0;
}

.view-bookmarks-btn {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.view-bookmarks-btn:hover {
    background-color: #e67e22;
}

/* Print worksheet - hidden on screen */
.print-worksheet {
    display: none;
}

/* Print styles */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        background-color: white !important;
        color: black !important;
        font-size: 12pt;
        margin: 0;
        padding: 0;
    }
    
    /* Hide everything except the modal */
    header, nav, main, .filters, .story-actions, .modal-actions,
    .feedback-link, .feedback-btn, #feedback-modal,
    .theme-toggle, .btn-bookmark, .btn-share, .btn-print,
    .bookmarks-section, .close, .close-feedback,
    .about-section, .stories, .container, .screen-only {
        display: none !important;
    }
    
    /* Show and position modal properly */
    .modal {
        position: static !important;
        display: block !important;
        background: none !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .modal-content {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
    }
    
    /* Show the print worksheet */
    .print-worksheet {
        display: block !important;
        padding: 0.5in;
        font-family: Georgia, serif;
    }
    
    .worksheet-header {
        text-align: center;
        margin-bottom: 24pt;
        border-bottom: 2px solid black;
        padding-bottom: 12pt;
    }
    
    .worksheet-header h1 {
        font-size: 20pt;
        margin: 0 0 8pt 0;
        color: black !important;
    }
    
    .worksheet-name-line {
        font-size: 12pt;
        margin: 12pt 0 0 0;
        text-align: left;
    }
    
    .worksheet-title {
        font-size: 16pt;
        color: black !important;
        margin: 0 0 18pt 0;
        line-height: 1.3;
    }
    
    .worksheet-section {
        margin-bottom: 24pt;
        page-break-inside: avoid;
    }
    
    .worksheet-section h3 {
        font-size: 13pt;
        color: black !important;
        margin: 0 0 8pt 0;
        border-bottom: 1px solid #666;
        padding-bottom: 4pt;
    }
    
    .worksheet-summary {
        font-size: 11pt;
        line-height: 1.6;
        padding: 10pt;
        background-color: #f5f5f5 !important;
        border: 1px solid #ccc;
        margin-bottom: 12pt;
    }
    
    .worksheet-summary p {
        margin: 0;
        color: black !important;
    }
    
    .worksheet-questions {
        list-style-position: outside;
        padding-left: 20pt;
        margin: 0;
    }
    
    .worksheet-questions li {
        margin-bottom: 20pt;
        page-break-inside: avoid;
    }
    
    .question-text {
        font-size: 11pt;
        margin: 0 0 8pt 0;
        color: black !important;
        line-height: 1.4;
    }
    
    .answer-lines {
        margin-left: -4pt;
    }
    
    .answer-line {
        border-bottom: 1px solid #999;
        height: 22pt;
        margin-bottom: 2pt;
    }
    
    /* Page break control */
    .worksheet-section:last-child {
        page-break-after: avoid;
    }
    
    .perspectives-note p {
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
}

/* V2 Features - Lesson Ideas Section */
.lesson-ideas-section {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #4CAF50;
}

.lesson-ideas-section h3 {
    font-size: 1.1rem;
    color: #2e7d32;
    margin-bottom: 0.75rem;
}

.lesson-ideas-section ul {
    margin: 0;
    padding-left: 1.25rem;
}

.lesson-ideas-section li {
    color: #1b5e20;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* V2 Features - Reading Level Toggle */
.reading-level-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.reading-level-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: #f5f5f5;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.reading-level-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.reading-level-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

/* V2 Features - Vocabulary */
.vocabulary-section .vocabulary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.vocab-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #9c27b0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vocab-word {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
}

.vocab-pos {
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.vocab-def {
    color: #34495e;
    font-size: 0.95rem;
}

.vocab-example {
    color: #7f8c8d;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.25rem;
}

/* V2 Features - Standards */
.standards-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.standard-badge {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    padding: 0.4rem 0.75rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #90caf9;
}

/* V2 Features - Quiz */
.quiz-list {
    list-style: none;
    padding: 0;
    counter-reset: quiz;
}

.quiz-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 3px solid #ff9800;
}

.quiz-item::before {
    counter-increment: quiz;
    content: counter(quiz) ". ";
    font-weight: 700;
    color: #e65100;
}

.quiz-question {
    color: #2c3e50;
}

.quiz-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.quiz-option {
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
}

/* V2 Features - Discussion Starters */
.discussion-starters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.discussion-starter {
    background: #fff3e0;
    color: #e65100;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-style: italic;
    font-size: 0.9rem;
    border: 1px solid #ffcc80;
}

/* V2 Features - Projection Button */
.btn-projection {
    background: linear-gradient(135deg, #673ab7, #9c27b0);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-projection:hover {
    background: linear-gradient(135deg, #5e35b1, #8e24aa);
}

/* Dark Mode V2 Features */
body.dark-mode .lesson-ideas-section {
    background: linear-gradient(135deg, #1b3a1d, #2e5a31);
    border-left-color: #66bb6a;
}

body.dark-mode .lesson-ideas-section h3 {
    color: #81c784;
}

body.dark-mode .lesson-ideas-section li {
    color: #a5d6a7;
}

body.dark-mode .reading-level-btn {
    background: #2d2d2d;
    border-color: #444;
    color: #aaa;
}

body.dark-mode .reading-level-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

body.dark-mode .reading-level-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

body.dark-mode .vocab-card {
    background: #2d2d2d;
    border-left-color: #ba68c8;
}

body.dark-mode .vocab-word {
    color: #ecf0f1;
}

body.dark-mode .vocab-def {
    color: #bdc3c7;
}

body.dark-mode .standard-badge {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #90caf9;
    border-color: #5c6bc0;
}

body.dark-mode .quiz-item {
    background: #2d2d2d;
    border-left-color: #ffb74d;
}

body.dark-mode .quiz-question {
    color: #ecf0f1;
}

body.dark-mode .quiz-option {
    background: #1a1a1a;
    color: #bdc3c7;
    border-color: #444;
}

body.dark-mode .discussion-starter {
    background: #3e2723;
    color: #ffb74d;
    border-color: #6d4c41;
}

/* Student View V2 Styles */
.student-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.click-hint {
    color: #7f8c8d;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.75rem;
    text-align: right;
}

.vocab-badge {
    background: #9c27b0 !important;
    color: white !important;
}

body.dark-mode .click-hint {
    color: #888;
}

body.dark-mode .student-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
