/**
 * assets/css/style.css (Aangepast voor mobiele knoppen-layout)
 */

/* =================================================================== */
/* 1. FONT IMPORT EN CSS VARIABELEN (ROOT)                             */
/* =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400&family=Lato:wght@400;700&display=swap');
:root {
    --primary-color: #4a6c6f; --background-main: #f0f2f5; --background-card: #ffffff;
    --text-color: #333333; --text-color-light: #5f6c7b; --border-color: #dbe1e8;
    --completed-color: #28a745; --success-color: #28a745; --danger-color: #dc3545; --danger-color-hover: #c82333;
    --error-color-bg: #f8d7da; --error-color-text: #721c24; --error-color-border: #f5c6cb;
    --font-heading: 'Merriweather', serif; --font-body: 'Lato', sans-serif; --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --theme-1-bg: #e0f2f1; --theme-2-bg: #fbe9e7; --theme-3-bg: #ede7f6;
    --theme-4-bg: #e3f2fd; --theme-5-bg: #fff9c4; --theme-6-bg: #e8f5e9;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { font-family: var(--font-body); background-color: var(--background-main); color: var(--text-color); margin: 0; line-height: 1.6; padding-top: 70px; }
.container { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }

/* =================================================================== */
/* 3. NAVIGATIEBALK                                                    */
/* =================================================================== */
.main-nav { background-color: var(--background-card); box-shadow: 0 2px 4px rgba(0,0,0,0.1); padding: 0 1rem; position: fixed; top: 0; left: 0; width: 100%; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; height: 70px; }
.nav-brand { font-family: var(--font-heading); font-size: 1.2rem; color: var(--primary-color); text-decoration: none; font-weight: 700; }
.nav-user { display: flex; align-items: center; gap: 1rem; }
.nav-user span { color: var(--text-color-light); }
.nav-logout { background-color: var(--primary-color); color: white; text-decoration: none; padding: 0.5rem 1rem; border-radius: 8px; transition: background-color 0.2s; font-size: 0.9rem; }
.nav-logout:hover { background-color: #3b5658; }

/* =================================================================== */
/* 4. AUTHENTICATIE FORMULIEREN (LOGIN/REGISTER) - MOBILE FIRST        */
/* =================================================================== */
.auth-page-wrapper { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 70px); padding: 1.5rem 1rem; }
.auth-container { display: flex; flex-direction: column; gap: 2.5rem; width: 100%; max-width: 500px; background: var(--background-card); padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); margin: 0 auto; }
.auth-form-column { width: 100%; order: 2; }
.auth-info-column { width: 100%; order: 1; }
.auth-form { background: none; padding: 0; box-shadow: none; width: 100%; }
.auth-form h1 { font-family: var(--font-heading); margin: 0 0 0.5rem 0; text-align: left; color: var(--text-color); font-size: 2rem; }
.auth-form p { text-align: left; color: var(--text-color-light); margin: 0 0 1.5rem 0; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: var(--text-color); text-align: left; }
.form-group input { width: 100%; padding: 0.8rem; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; font-family: var(--font-body); background-color: #f8f9fa; }
.auth-form .cta-button { width: 100%; margin-top: 1rem; padding: 0.8rem; font-size: 1rem; }
.auth-link { text-align: left; margin-top: 1.5rem; font-size: 0.9rem; }
.auth-link p { text-align: left; }
.auth-info-content h2 { font-family: var(--font-heading); font-size: 1rem; color: var(--text-color-light); text-transform: uppercase; letter-spacing: 1px; }
.auth-info-content h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-color); line-height: 1.4; }
.auth-info-content p, .auth-info-content ul { color: var(--text-color-light); font-size: 0.95rem; }
.auth-info-content ul { list-style: none; padding-left: 0; }
.auth-info-content ul li { margin-bottom: 0.5rem; }
.auth-errors, .auth-success { border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; }
.auth-errors { background-color: var(--error-color-bg); color: var(--error-color-text); border: 1px solid var(--error-color-border); }
.auth-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.auth-errors p, .auth-success p { margin: 0; text-align: left; }

/* =================================================================== */
/* 5. MODALS & POPUPS (WELKOM/TIPS)                                    */
/* =================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 1000; }
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-content { position: relative; background: var(--background-card); padding: 2rem 2.5rem; border-radius: var(--border-radius); max-width: 550px; width: 90%; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.modal-close-btn { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2rem; color: #aaa; cursor: pointer; line-height: 1; padding: 0; }
.modal-close-btn:hover { color: #333; }
.modal-content h2 { font-family: var(--font-heading); margin-top: 0; color: var(--primary-color); text-align: center; }
.modal-body { margin: 1.5rem 0; color: var(--text-color-light); text-align: left; }
.welcome-overlay .modal-body { text-align: center; }
.tips-text { max-height: 60vh; overflow-y: auto; padding-right: 10px; }
.modal-action-btn { background-color: var(--primary-color); color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 8px; font-size: 1rem; cursor: pointer; margin-top: 1rem; transition: background-color 0.2s; }
.modal-action-btn:hover { background-color: #3b5658; }

/* =================================================================== */
/* 6. DASHBOARD STYLING                                                */
/* =================================================================== */
.feedback-notice { background-color: var(--theme-1-bg); color: var(--primary-color); border: 1px solid var(--primary-color); border-radius: var(--border-radius); padding: 1rem 1.5rem; margin-bottom: 2rem; text-align: center; }
.feedback-notice p { margin: 0; font-weight: bold; }
.main-header { text-align: center; margin-bottom: 2.5rem; }
.main-header h1 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--primary-color); margin: 0; }
.main-header p { color: var(--text-color-light); font-size: 1.1rem; margin: 0.5rem 0 0 0; }
.header-actions { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.cta-button, .destructive-button { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.5rem; border-radius: 10px; font-weight: bold; font-size: 1rem; cursor: pointer; text-decoration: none; transition: all 0.2s ease-in-out; box-shadow: 0 2px 8px rgba(0,0,0,0.08); border: 2px solid transparent; line-height: 1.2; white-space: nowrap; }
.cta-button:hover, .destructive-button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.cta-button { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.cta-button:hover { background-color: #3b5658; }
.cta-button.ghost { background-color: var(--background-card); color: var(--primary-color); }
.cta-button.ghost:hover { background-color: #eef3f3; }
.destructive-button { background-color: var(--background-card); color: var(--danger-color); border-color: var(--danger-color); }
.destructive-button:hover { background-color: var(--danger-color); color: white; }
.progress-section { background: var(--background-card); padding: 1.5rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); margin-bottom: 2.5rem; }
.progress-section h3 { margin: 0 0 1rem 0; font-family: var(--font-heading); }
.progress-bar-container { background-color: #e9ecef; border-radius: 99px; height: 20px; overflow: hidden; border: 1px solid var(--border-color); }
.progress-bar-fill { background-color: var(--primary-color); height: 100%; display: flex; justify-content: center; align-items: center; color: white; font-size: 0.8rem; font-weight: bold; transition: width 0.5s ease-in-out; }
.progress-label { text-align: right; margin: 0.5rem 0 0 0; color: var(--text-color-light); font-size: 0.9rem; }
.themes-wrapper { display: flex; flex-direction: column; gap: 1.5rem; }
.theme-section { border-radius: var(--border-radius); box-shadow: var(--box-shadow); overflow: hidden; }
.theme-1 { background-color: var(--theme-1-bg); } .theme-2 { background-color: var(--theme-2-bg); } .theme-3 { background-color: var(--theme-3-bg); } .theme-4 { background-color: var(--theme-4-bg); } .theme-5 { background-color: var(--theme-5-bg); } .theme-6 { background-color: var(--theme-6-bg); }
.theme-details summary { padding: 1rem 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.theme-details summary::-webkit-details-marker { display: none; }
.theme-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--primary-color); }
.theme-toggle-button { font-size: 0.9rem; font-weight: bold; color: var(--primary-color); text-transform: uppercase; letter-spacing: 0.5px; }
.theme-details .theme-toggle-open { display: none; }
.theme-details:not([open]) .theme-toggle-close { display: none; }
.theme-details:not([open]) .theme-toggle-open { display: inline; }
.theme-intro-content { padding: 0 1.5rem 1.5rem 1.5rem; color: var(--text-color-light); border-top: 1px solid rgba(0,0,0,0.08); margin-top: 1rem; }
.theme-intro-content p { margin: 0; padding-top: 1rem; }
.day-grid-small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 1.5rem; background-color: rgba(255,255,255,0.6); border-top: 1px solid var(--border-color); }
.day-card { background-color: var(--background-card); border: 1px solid var(--border-color); border-radius: var(--border-radius); aspect-ratio: 1 / 1; text-decoration: none; color: var(--primary-color); transition: transform 0.2s, box-shadow 0.2s; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0.5rem; gap: 0.5rem; }
.day-card:hover { transform: translateY(-5px); box-shadow: var(--box-shadow); }
.day-icon { font-size: 7rem; line-height: 1; color: var(--primary-color); }
.day-label { font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; color: var(--text-color-light); }
.day-card.completed { background-color: var(--completed-color); border-color: var(--completed-color); color: white; }
.day-card.completed .day-icon, .day-card.completed .day-label { color: white; }
.day-card .checkmark { font-size: 1.2rem; position: absolute; top: 8px; right: 10px; font-weight: bold; color: white; }
.day-card:not(.completed) .checkmark { display: none; }
.dashboard-footer { text-align: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); color: var(--text-color-light); font-style: italic; }
.copyright-text { font-size: 0.85rem; color: #888; margin-top: 1rem; }

/* =================================================================== */
/* 7. DAG-WEERGAVE STYLING                                             */
/* =================================================================== */
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--primary-color); text-decoration: none; font-weight: bold; }
.day-content-wrapper { background-color: var(--background-card); padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.day-header, .entry-section, .quote-section { margin-bottom: 2.5rem; }
.part-title { font-family: var(--font-heading); color: var(--primary-color); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.part-intro { font-style: italic; color: var(--text-color-light); border-left: 3px solid var(--border-color); padding-left: 1rem; margin: 0 0 2rem 0; }
.prompt { font-family: var(--font-heading); margin-bottom: 1rem; font-size: 1.8rem; line-height: 1.3; }
textarea { width: 100%; padding: 1rem; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; font-family: var(--font-body); line-height: 1.5; resize: vertical; min-height: 200px; }
button[type="submit"] { display: block; width: 100%; padding: 1rem; margin-top: 1rem; background-color: var(--primary-color); color: #fff; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: bold; cursor: pointer; }
.file-upload-wrapper { margin: 1.5rem 0; padding: 1rem; background-color: #fafafa; border: 1px dashed #ccc; border-radius: 8px; }
.file-upload-wrapper label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: var(--text-color-light); }
.file-types-info { display: block; font-size: 0.85rem; color: var(--text-color-light); margin-top: 0.5rem; }
.current-image img { max-width: 100%; height: auto; border-radius: var(--border-radius); border: 1px solid var(--border-color); }
.quote-section { margin-top: 3rem; border-top: 1px solid var(--border-color); padding-top: 2.5rem; margin-bottom: 0; }
.quote { margin: 0; padding-left: 1.5rem; border-left: 5px solid var(--primary-color); }

/* =================================================================== */
/* 8. RESPONSIVE AANPASSINGEN (MEDIA QUERIES)                          */
/* =================================================================== */
@media (min-width: 992px) {
    .auth-container { flex-direction: row; max-width: 1200px; padding: 3rem; }
    .auth-form-column { flex-basis: 33%; order: 1; }
    .auth-info-column { display: block; flex-basis: 67%; order: 2; border-left: 1px solid var(--border-color); padding-left: 3rem; }
}
@media (max-width: 991px) {
    .auth-info-column { display: block; }
}
@media (max-width: 768px) {
    .nav-user span { display: none; }
    .day-content-wrapper { padding: 1.5rem; }
    .prompt { font-size: 1.5rem; }
}
@media (max-width: 600px) {
    .main-header h1 { font-size: 1.8rem; }
    /* WIJZIGING HIERONDER */
    .header-actions { 
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .cta-button, .destructive-button {
        font-size: 0.85rem; /* Iets kleiner lettertype */
        padding: 0.7rem 0.5rem; /* Minder padding aan de zijkanten */
    }
    /* EINDE WIJZIGING */
    .themes-wrapper { display: block; }
    .theme-section { margin-bottom: 1.5rem; }
    .theme-details summary { padding: 0.8rem 1rem; }
    .day-grid-small { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding: 1.25rem; }
    .day-card { padding: 0.5rem; gap: 0.25rem; border-radius: 8px; min-height: auto; }
    .day-icon { font-size: 4rem; }
    .day-label { font-size: 0.75rem; }
    .checkmark { font-size: 1rem !important; top: 2px; right: 5px; }
}
@media (min-width: 768px) {
    .day-content-wrapper { padding: 2.5rem; }
    .prompt { font-size: 2.2rem; }
}