/* ========================================
   LA ROCHE AUX MOUETTES - STYLES
   ======================================== */

/* ===== THEME VARIABLES ===== */
:root {
    --bg-body: #007ab3;
    --bg-section: #ffffff;
    --bg-input: #f8f9fa;
    --bg-hover: #e9ecef;
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --nav-bg: #4994b6;
    --modal-bg: #ffffff;
    --cancel-btn-bg: #e0e0e0;
}

[data-theme="dark"] {
    --bg-body: #0a1628;
    --bg-section: #1a1a2e;
    --bg-input: #1e2a3a;
    --bg-hover: #2a3a4a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #2a2a4a;
    --border-light: #2a2a4a;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --nav-bg: #0f1a2e;
    --modal-bg: #1a1a2e;
    --cancel-btn-bg: #2a2a4a;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-body);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 100px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.user-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.user-info span {
    font-size: 1.1rem;
}

.user-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 999;
}

.user-actions .logout-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-section);
    color: var(--text-primary);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-actions .logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: white;
    color: #667eea;
}

.admin-btn {
    background: #ffd700;
    color: #333;
    border: 2px solid #ffd700;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: #ffed4e;
    border-color: #ffed4e;
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
section {
    background: var(--bg-section);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
}

/* ===== PAGES CONTAINER ===== */
.pages-container {
    position: relative;
    min-height: 60vh;
}

.page {
    display: none;
    padding-bottom: 20px;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BOTTOM NAVIGATION - TOUJOURS FIXE ===== */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: var(--nav-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999 !important;
    transform: none !important;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 15px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
    max-width: 120px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.nav-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== SUB-TABS ===== */
.sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.sub-tab {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.sub-tab:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.sub-tab.active {
    background: white;
    color: #667eea;
    border-color: white;
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== BUTTONS ===== */
.add-note-btn {
    background: #10ac84;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.add-note-btn:hover {
    background: #0e9470;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.upload-icon {
    font-size: 1.3rem;
}

.upload-area {
    text-align: center;
    margin-bottom: 30px;
}

.nav-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: #5568d3;
}

.cancel-btn, .save-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cancel-btn {
    background: var(--cancel-btn-bg);
    color: var(--text-primary);
}

.cancel-btn:hover {
    background: var(--bg-hover);
}

.save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.save-btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a4190 100%);
}

/* ===== FORMS ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.note-input {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
    background: var(--bg-input);
    color: var(--text-primary);
}

.note-input:focus {
    outline: none;
    border-color: #667eea;
}

.note-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--bg-input);
    color: var(--text-primary);
}

.note-textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* ===== PRESENCE CHECKBOXES (Mobile-friendly) ===== */
.presence-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.presence-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.presence-checkbox-item:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.presence-checkbox-item.checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.presence-checkbox-item input[type="checkbox"] {
    display: none;
}

.presence-checkbox-item .checkbox-icon {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    background: white;
    color: #667eea;
    transition: all 0.2s ease;
}

.presence-checkbox-item.checked .checkbox-icon {
    background: white;
    border-color: white;
    color: #667eea;
}

.presence-checkbox-item .checkbox-label {
    font-weight: 500;
    font-size: 0.95rem;
}

/* ===== GUEST COUNTER ===== */
.guest-counter {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-input);
    padding: 12px 20px;
    border-radius: 30px;
    width: fit-content;
}

.counter-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.counter-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.counter-btn:active {
    transform: scale(0.95);
}

.guest-counter #guestCount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 50px;
    text-align: center;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--modal-bg);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid var(--border-light);
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 2px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* ===== FILES GRID ===== */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.file-card {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.file-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    word-break: break-word;
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.file-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

.view-hint {
    margin-top: 10px;
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-card:hover .view-hint {
    opacity: 1;
}

.delete-file-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: background 0.3s ease;
}

.delete-file-btn:hover {
    background: #ff3838;
}

/* ===== NOTES ===== */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.note-card {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.note-card h3 {
    color: #2d3436;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.note-card p {
    color: #636e72;
    line-height: 1.6;
    max-height: 100px;
    overflow: hidden;
}

.note-date {
    font-size: 0.8rem;
    color: #636e72;
    margin-top: 10px;
}

.note-meta {
    margin-top: 10px;
}

.note-author {
    font-size: 0.8rem;
    color: #636e72;
    font-style: italic;
    margin-top: 5px;
}

.delete-note-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: background 0.3s ease;
}

.delete-note-btn:hover {
    background: #ff3838;
}

/* ===== CALENDAR ===== */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-input);
    border-radius: 10px;
}

.calendar-controls h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    width: 100%;
}

.calendar-day-header {
    background: #667eea;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    border-radius: 5px;
}

.calendar-day {
    background: var(--bg-input);
    min-height: 100px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.today {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    font-weight: 600;
}

.day-number {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.calendar-day.other-month .day-number {
    color: var(--text-muted);
}

.day-events {
    margin-top: 5px;
}

.event-dot {
    display: block;
    padding: 3px 6px;
    margin: 2px 0;
    border-radius: 3px;
    font-size: 0.75rem;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.birthday-dot {
    display: block;
    padding: 3px 6px;
    margin: 2px 0;
    border-radius: 3px;
    font-size: 0.75rem;
    color: white;
    background-color: #ff6b9d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: bold;
}

.calendar-day.has-birthday {
    box-shadow: inset 0 0 0 2px #ff6b9d;
}

/* ===== TRAVAUX ===== */
.travaux-section {
    background: var(--bg-section);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-bottom: 30px;
}

.travaux-section:first-child {
    margin-top: 0;
}

.travaux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.travaux-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 25px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.travaux-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.travaux-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.travaux-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.travaux-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.travaux-edit {
    flex: 1;
    padding: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.travaux-edit:hover {
    background: rgba(255, 255, 255, 0.3);
}

.travaux-delete {
    flex: 1;
    padding: 8px;
    background: rgba(255, 71, 87, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.travaux-delete:hover {
    background: rgba(238, 47, 59, 0.9);
}


/* ===== PRESENCE SECTION ===== */
.presence-section {
    background: var(--bg-section);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-bottom: 20px;
}

.presence-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.presence-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.presence-card:hover {
    transform: translateY(-3px);
}

.presence-card.guest-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.presence-card.total-card {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.presence-card .user-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.presence-card .user-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.presence-card .days-count {
    font-size: 1.8rem;
    font-weight: 700;
}

.presence-card .days-label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.presence-card.clickable {
    cursor: pointer;
}

.presence-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.presence-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-style: italic;
}

/* Presence Detail Modal Content */
.presence-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.presence-event-item {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.2s ease;
}

.presence-event-item:hover {
    background: var(--bg-hover);
    transform: translateX(5px);
}

.presence-event-item .event-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.presence-event-item .event-dates {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.presence-event-item .event-days {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
}

.presence-event-item .event-guests {
    font-size: 0.85rem;
    color: #f5576c;
    font-weight: 500;
    margin-top: 5px;
}

.presence-total-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.presence-total-summary .total-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.presence-total-summary .total-value {
    font-size: 1.8rem;
    font-weight: 700;
}

/* ===== INFOS ===== */
.infos-section {
    background: var(--bg-section);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-bottom: 30px;
}

.infos-content {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* ===== COURSES ===== */
.courses-section {
    background: var(--bg-section);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.courses-input {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.course-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--bg-input);
    color: var(--text-primary);
}

.course-input:focus {
    outline: none;
    border-color: #667eea;
}
.add-course-quick-btn {
    padding: 12px 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-course-quick-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.courses-list {
    margin-top: 20px;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-input);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.course-item:hover {
    background: var(--bg-hover);
}

.course-item.checked {
    opacity: 0.6;
    text-decoration: line-through;
}

.course-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.course-text {
    font-size: 1rem;
    color: var(--text-primary);
}

.course-added-by {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.course-item.checked .course-added-by {
    color: #bbb;
}

.del-course-quick-btn,
.course-delete {
    padding: 8px 15px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.course-delete:hover {
    background: #ee2f3b;
}

/* ===== GLAÇONS ===== */
.glacons-section {
    padding: 20px;
}

.glacons-controls {
    margin: 20px 0;
}

.glacons-card {
    background: var(--bg-section);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.glacons-card h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.glacons-card h4 {
    margin: 20px 0 15px;
    color: var(--text-secondary);
}

.glacons-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.3rem;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.glacons-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.glacons-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.glacons-result {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

.glacons-result.success {
    color: #27ae60;
}

.glacons-result.error {
    color: #e74c3c;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.status-connected {
    background: #d4edda;
    color: #155724;
}

.status-offline {
    background: #f8d7da;
    color: #721c24;
}

/* Schedule Form */
.schedule-form {
    text-align: left;
}

.schedule-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-input);
    border-radius: 10px;
    margin-bottom: 10px;
}

.schedule-row label:first-child {
    min-width: 80px;
    font-weight: bold;
    font-size: 1.1rem;
}

.schedule-row input[type="time"] {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 120px;
}

.schedule-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.save-schedule-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.save-schedule-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.4);
}

.clear-schedule-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.clear-schedule-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

/* Toggle Switch */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

.toggle-label span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    width: 70px;
    height: 36px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e74c3c;
    transition: 0.3s;
    border-radius: 36px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .slider {
    background-color: #27ae60;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(34px);
}

.toggle-switch .slider:after {
    content: "OFF";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.toggle-switch input:checked + .slider:after {
    content: "ON";
    left: 10px;
    right: auto;
}

/* ===== POUBELLES ===== */
.poubelles-section {
    background: var(--bg-section);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.poubelles-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.poubelle-card {
    padding: 25px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: center;
}

.poubelle-card:hover {
    transform: translateY(-5px);
}

.poubelle-card.ordures {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.poubelle-card.recyclage {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.poubelle-card.verre {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.poubelle-card.bio {
    background: linear-gradient(135deg, #93a5cf 0%, #e4efe9 100%);
}

.poubelle-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.poubelle-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.poubelle-day {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0;
}

.next-collection {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.poubelle-container-yellow {
    font-size: 1rem;
    font-weight: 700;
    margin: 8px 0;
    padding: 8px 12px;
    background: #f2c73f;
    border-radius: 8px;
}

.poubelle-container-grey {
    font-size: 1rem;
    font-weight: 700;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.poubelle-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.poubelle-link:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.poubelles-info {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-input);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.poubelles-info h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.poubelles-info ul {
    list-style: none;
    padding: 0;
}

.poubelles-info li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.poubelles-info li:last-child {
    border-bottom: none;
}

.poubelles-info strong {
    color: #667eea;
}

/* ===== ADRESSES ===== */
.adresses-section {
    background: var(--bg-section);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-top: 30px;
}

.adresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.adresse-card {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.adresse-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.adresse-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adresse-card .categorie-badge {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 10px;
    margin-right: 8px;
}

.adresse-card .no-map-badge {
    font-size: 0.75rem;
    background: rgba(255, 193, 7, 0.3);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.adresse-card .on-map-badge {
    font-size: 0.75rem;
    background: rgba(40, 167, 69, 0.3);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 10px;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.adresse-card p {
    margin: 8px 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.adresse-card .adresse-info {
    margin: 8px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.adresse-card .adresse-notes {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.9;
}

.adresse-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.adresse-edit,
.adresse-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.adresse-edit:hover {
    background: rgba(0, 123, 255, 0.9);
}

.adresse-delete:hover {
    background: rgba(220, 53, 69, 0.9);
}

/* Map */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.leaflet-popup-content {
    margin: 15px;
}

/* ===== BRICORAMA ===== */
.bricorama-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.bricorama-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.bricorama-image:hover {
    transform: scale(1.02);
}

/* ===== WIFI ===== */
.wifi-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wifi-info p {
    font-size: 1.1rem;
    margin: 0;
}

.wifi-info strong {
    color: #5a9fd4;
}

/* ===== UTILE ===== */
.utile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.utile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.utile-card:hover {
    transform: translateY(-5px);
}

.utile-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.utile-card .phone {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 10px 0;
}

.utile-card .notes {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 10px;
}

.utile-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.utile-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.utile-delete:hover {
    background: rgba(220, 53, 69, 0.9);
}

/* ===== SUGGESTIONS ===== */
.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.suggestion-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.suggestion-card:hover {
    transform: translateY(-5px);
}

.suggestion-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.suggestion-card .categorie-badge {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 10px;
}

.suggestion-card p {
    margin: 10px 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.suggestion-card a {
    color: white;
    text-decoration: underline;
    font-size: 0.9rem;
}

.suggestion-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.suggestion-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.suggestion-delete:hover {
    background: rgba(220, 53, 69, 0.9);
}

/* ===== ARTICLES ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.article-card {
    background: var(--bg-section);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-header {
    margin-bottom: 10px;
}

.article-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.15rem;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.article-author {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
}

.article-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.article-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s;
}

.article-link:hover {
    color: #5a6fd6;
    text-decoration: underline;
}

.article-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.article-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}

.article-actions .edit-btn:hover {
    background: #e3f2fd;
    transform: scale(1.1);
}

.article-actions .delete-btn:hover {
    background: #ffebee;
    transform: scale(1.1);
}

/* ===== PASSWORD ===== */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    user-select: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.toggle-password:hover {
    opacity: 1;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 1.1rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablettes (768px et moins) */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
        padding-bottom: 90px;
    }

    header h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }

    .header-logo {
        width: 50px;
        height: 50px;
    }

    .user-info {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .user-actions {
        top: 8px;
        right: 8px;
        flex-direction: row;
        gap: 5px;
    }

    .user-actions .logout-btn,
    .user-actions .theme-toggle-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .bottom-nav {
        padding: 8px 0;
    }

    .nav-item {
        padding: 6px 8px;
        max-width: 80px;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
    }

    .nav-item span {
        font-size: 0.65rem;
    }

    .sub-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }

    .sub-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: auto;
    }

    .files-grid,
    .notes-grid,
    .articles-grid,
    .suggestions-grid,
    .adresses-grid,
    .utile-grid,
    .travaux-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .calendar-grid {
        gap: 4px;
    }

    .calendar-day-header {
        padding: 8px 2px;
        font-size: 0.75rem;
    }

    .calendar-day {
        min-height: 60px;
        padding: 4px 2px;
        font-size: 0.8rem;
    }

    .day-number {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }

    .event-dot {
        font-size: 0.65rem;
        padding: 2px 3px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 20px 15px;
    }

    .courses-input {
        flex-direction: column;
    }

    #map {
        height: 300px !important;
    }

    .poubelles-calendar {
        grid-template-columns: 1fr;
    }

    .schedule-row {
        flex-wrap: wrap;
    }

    .bricorama-image {
        max-width: 300px;
    }
}

/* Smartphones (480px et moins) */
@media screen and (max-width: 480px) {
    body {
        padding: 5px;
        padding-bottom: 80px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .header-logo {
        width: 40px;
        height: 40px;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .sub-tab {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .calendar-grid {
        gap: 2px;
    }

    .calendar-day-header {
        padding: 6px 1px;
        font-size: 0.65rem;
        border-radius: 3px;
    }

    .calendar-day {
        min-height: 50px;
        padding: 3px 1px;
        font-size: 0.7rem;
        border-radius: 4px;
    }

    .day-number {
        font-size: 0.75rem;
        margin-bottom: 1px;
    }

    .event-dot {
        font-size: 0.6rem;
        padding: 1px 2px;
        margin: 1px 0;
    }

    .bottom-nav {
        padding: 6px 0;
    }

    .nav-item {
        font-size: 0.65rem;
    }

    .nav-icon {
        width: 22px;
        height: 22px;
    }

    .user-actions .logout-btn,
    .user-actions .theme-toggle-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    #map {
        height: 250px !important;
    }
}

/* Très petits écrans (360px et moins) */
@media screen and (max-width: 360px) {
    .user-actions {
        top: 5px;
        right: 5px;
    }

    .user-actions .logout-btn,
    .user-actions .theme-toggle-btn {
        padding: 4px 6px;
        font-size: 0.75rem;
    }

    header h1 {
        font-size: 1.3rem;
    }

    .header-logo {
        width: 35px;
        height: 35px;
    }
}

/* Mode paysage smartphones */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .bottom-nav {
        padding: 5px 0;
    }

    .nav-item {
        font-size: 0.6rem;
        padding: 5px;
    }

    .nav-icon {
        width: 20px;
        height: 20px;
    }

    header {
        margin-bottom: 20px;
    }

    header h1 {
        font-size: 1.3rem;
    }

    section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .modal-content {
        max-height: 85vh;
    }
}

/* Grands écrans (1400px et plus) */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }

    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .notes-grid,
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    header h1 {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* ==================== NOTIFICATION PREFERENCES MODAL ==================== */

.notification-prefs-content {
    padding: 10px 0;
}

.notif-status-text {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    background: var(--bg-input);
}

.notif-prefs-section {
    margin: 20px 0;
}

.pref-item {
    margin-bottom: 15px;
}

.pref-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--bg-input);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: 2px solid transparent;
}

.pref-checkbox:hover {
    background: var(--bg-hover);
}

.pref-checkbox input[type="checkbox"] {
    display: none;
}

.pref-checkbox .checkmark {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #adb5bd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 2px;
}

.pref-checkbox input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.pref-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.pref-info {
    flex: 1;
}

.pref-info strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pref-info small {
    color: #6c757d;
    font-size: 0.85rem;
}

#notification-modal .modal-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

#notification-modal .cancel-btn,
#notification-modal .save-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

#notification-modal .save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#notification-modal .cancel-btn {
    background: #dc3545;
    color: white;
}

#notification-modal .save-btn:hover:not(:disabled),
#notification-modal .cancel-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#notification-modal .save-btn:disabled,
#notification-modal .cancel-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-section);
    color: var(--text-primary);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ===== DARK THEME HELPER CLASSES ===== */
.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}
