/* 
 * BabySteps Portal - Stylesheet
 * Elegant, romantic, organic warm pastel palette with glassmorphism, 
 * beautiful micro-animations, and responsive layout to spark joy ("Vorfreude").
 */

:root {
    /* Color Palette */
    --primary-color: #FF8F9C;       /* Sweet soft rose */
    --primary-light: #FFF0F2;      /* Cozy light rose background */
    --primary-hover: #E07380;      /* Slightly darker rose for hovers */
    --secondary-color: #F8B47E;     /* Soft warm peach */
    --secondary-light: #FFF9F3;    /* Creamy peach background */
    --accent-gold: #D9A05B;        /* Elegant baby gold */
    --accent-teal: #78C1B7;        /* Calming nursery mint/teal */
    --accent-teal-light: #EBF8F6;  /* Soft calming mint background */
    
    --bg-app: #FAF5EF;             /* Warm Cozy Sand / Soft Oatmeal */
    --bg-card: rgba(255, 255, 255, 0.85); /* Premium glassmorphism base */
    --border-glass: rgba(255, 255, 255, 0.6);
    --shadow-premium: 0 12px 35px rgba(228, 203, 190, 0.4);
    --shadow-soft: 0 6px 18px rgba(228, 203, 190, 0.2);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.03);

    /* Text Colors */
    --text-main: #3E3835;          /* Rich charcoal-cocoa */
    --text-muted: #8E827C;         /* Soft sand-grey */
    --text-light: #FFFFFF;
    
    /* Status Colors */
    --status-red: #E05F6F;
    --status-red-light: #FFEAEB;
    --status-orange: #EF9B4B;
    --status-orange-light: #FFF3E6;
    
    /* Layout Variables */
    --sidebar-width: 280px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 10px;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-app);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    /* Soft organic background blobs to add a luxurious, dreamy depth */
    background-image: 
        radial-gradient(at 10% 20%, rgba(255, 143, 156, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(248, 180, 126, 0.18) 0px, transparent 50%),
        radial-gradient(at 50% 80%, rgba(120, 193, 183, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Confetti Overlay */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* Layout Grid */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    box-shadow: 6px 0 30px rgba(228, 203, 190, 0.15);
}

.logo-area {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.heart-pulse-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    margin-bottom: 16px;
    box-shadow: 0 6px 15px rgba(255, 143, 156, 0.2);
}

.logo-heart {
    font-size: 26px;
    color: var(--primary-color);
    animation: gentle-heartbeat 1.8s infinite;
}

.logo-area h1 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.tagline {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic;
}

/* Navigation buttons in sidebar */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    border: none;
    background: transparent;
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn i {
    font-size: 18px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    transform: translateX(4px);
}

.nav-btn:hover i {
    color: var(--primary-color);
}

.nav-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(255, 143, 156, 0.3);
}

.nav-btn.active i {
    color: var(--text-light);
}

/* Quick stats inside sidebar bottom */
.quick-stats-sidebar {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    padding-top: 24px;
}

.sidebar-stat-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-stat-card .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.sidebar-stat-card .val {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.highlight-pink {
    color: var(--primary-color) !important;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 40px 48px;
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header/Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 24px;
}

.welcome-msg h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.welcome-msg p {
    font-size: 15px;
    color: var(--text-muted);
}

/* Pregnancy Simulator Widget */
.week-simulation-panel {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    width: 360px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.simulated-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #EEDFD7;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: transform 0.1s;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(255, 143, 156, 0.5);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.reset-btn {
    border: none;
    background: var(--secondary-light);
    color: var(--secondary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: var(--secondary-color);
    color: white;
}

/* Tabs Content System */
.tab-content {
    display: none;
    flex-grow: 1;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

/* Dashboard Content Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
}

/* Standard Premium Cards */
.dashboard-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 45px rgba(228, 203, 190, 0.55);
}

.full-width {
    grid-column: 1 / -1;
}

/* Card layout customized */
.card-progress {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,240,242,0.6) 100%);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 143, 156, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.card-content-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.circular-progress-container {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.8s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.progress-text .percentage {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-text .subtext {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: -4px;
}

.progress-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.fancy-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(62, 56, 53, 0.1);
    padding-bottom: 6px;
    font-size: 14px;
}

.detail-row .lbl {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-row .val {
    font-weight: 600;
    color: var(--text-main);
}

.highlight {
    color: var(--primary-color) !important;
}

.highlight-trimester {
    color: var(--accent-teal) !important;
}

/* Baby Size Card */
.card-baby-size h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 24px;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

.baby-development-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.baby-illustration {
    width: 100px;
    height: 100px;
    background: var(--secondary-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(248, 180, 126, 0.2);
}

.size-icon {
    font-size: 40px;
}

.baby-size-text {
    flex-grow: 1;
}

.baby-size-text h4 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.baby-size-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Affirmation Card */
.card-affirmation {
    background: linear-gradient(135deg, #FFF9F3 0%, #FFF0F2 100%);
    text-align: center;
    padding: 32px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 143, 156, 0.2);
}

.affirmation-icon {
    font-size: 24px;
    color: var(--accent-gold);
}

#affirmation-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 20px;
    line-height: 1.5;
    color: #5C4F4A;
    font-weight: 500;
}

.next-affirmation-btn {
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 20px;
}

.next-affirmation-btn:hover {
    background: rgba(255, 143, 156, 0.1);
    transform: scale(1.05);
}

/* Quick views in dashboard */
.card-quick-tasks h3, .card-quick-medical h3 {
    font-family: var(--font-heading);
    font-size: 20px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(62, 56, 53, 0.08);
    padding-bottom: 12px;
}

.link-btn-text {
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
}

.link-btn-text:hover {
    transform: translateX(4px);
}

.quick-tasks-list, .quick-medical-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-tasks-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    background: rgba(255,255,255,0.4);
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255,255,255,0.3);
}

.quick-tasks-list li .checkbox-span {
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.1s;
}

.quick-tasks-list li .checkbox-span:hover {
    transform: scale(1.2);
}

.quick-medical-list li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    background: rgba(255,255,255,0.4);
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255,255,255,0.3);
}

.quick-medical-list li .med-name {
    font-weight: 500;
}

.quick-medical-list li .med-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(248, 180, 126, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
}

/* SECTION INTROS */
.section-intro {
    margin-bottom: 32px;
}

.title-with-subtitle {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.subtitle {
    font-size: 15px;
    color: var(--text-muted);
}

/* MEDICAL TAB DESIGN */
.medical-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Critical Warning Box for Genetic & Abortion */
.critical-alert-box {
    background: linear-gradient(135deg, #FFEFEF 0%, #FFF5F2 100%);
    border: 1px solid rgba(224, 95, 111, 0.25);
    border-radius: var(--border-radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-soft);
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--status-red);
}

.alert-icon {
    font-size: 24px;
}

.alert-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
}

.alert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.alert-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(228, 203, 190, 0.15);
    border-top: 5px solid transparent;
}

.gene-test-card {
    border-top-color: var(--secondary-color);
}

.legal-limit-card {
    border-top-color: var(--status-red);
}

.alert-card h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.alert-card p {
    font-size: 13.5px;
    color: #554D4A;
    line-height: 1.5;
}

.margin-top-sm {
    margin-top: 10px;
}

.date-highlight-pink {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.date-highlight-orange {
    background: var(--status-orange-light);
    color: var(--status-orange);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.date-highlight-red {
    background: var(--status-red-light);
    color: var(--status-red);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 14px;
}

.badge-info {
    background: var(--primary-light);
    color: var(--primary-color);
    animation: gentle-heartbeat 2s infinite;
}

.deadline-tracker {
    margin-top: 14px;
    background: var(--status-red-light);
    color: var(--status-red);
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

/* Timeline Accordion Styling */
.timeline-container h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 20px;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 20px;
    border-left: 2px dashed rgba(228, 203, 190, 0.8);
}

.timeline-item {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.timeline-item-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.timeline-item-header:hover {
    background: rgba(255, 255, 255, 0.4);
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 26px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #EEDFD7;
    border: 3px solid var(--bg-app);
    box-shadow: 0 0 0 2px rgba(228, 203, 190, 0.5);
    transition: all 0.3s;
}

.timeline-item.active-week .timeline-dot {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 143, 156, 0.6);
}

.timeline-item.passed .timeline-dot {
    background: var(--accent-teal);
}

.timeline-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.week-tag {
    font-weight: 700;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
}

.passed .week-tag {
    color: var(--accent-teal);
    background: var(--accent-teal-light);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
}

.timeline-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-range-badge {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.accordion-arrow {
    transition: transform 0.3s;
    color: var(--text-muted);
}

.timeline-item.open .accordion-arrow {
    transform: rotate(180deg);
}

.timeline-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(255, 255, 255, 0.4);
    border-top: 0px solid rgba(62, 56, 53, 0.08);
}

.timeline-item.open .timeline-item-body {
    max-height: 500px;
    border-top-width: 1px;
}

.timeline-content-inner {
    padding: 24px;
    font-size: 14px;
}

.bullet-list {
    margin-left: 20px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.medical-info-card {
    background: var(--accent-teal-light);
    border: 1px solid rgba(120, 193, 183, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 32px;
}

.medical-info-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 12px;
    color: #4C827A;
}

.medical-info-card p {
    font-size: 14px;
    margin-bottom: 12px;
}

/* ORGANIZER / TO-DO PLANNER TAB */
.organizer-layout {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 32px;
    align-items: start;
}

.task-control-panel .card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(15px);
}

.task-control-panel h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 20px;
}

.task-categories-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.task-cat-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-glass);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--text-main);
    text-align: left;
}

.task-cat-btn:hover {
    background: white;
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

.task-cat-btn.active {
    background: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.task-cat-btn.active .cat-name {
    font-weight: 600;
}

.count-badge {
    background: #EEDFD7;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
}

.task-cat-btn.active .count-badge {
    background: var(--primary-color);
    color: white;
}

.progress-box-card {
    background: var(--secondary-light);
    border: 1px solid rgba(248, 180, 126, 0.2);
    border-radius: var(--border-radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.progress-box-card h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.task-progress-bar-container {
    height: 8px;
    background: rgba(62,56,53,0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.task-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--secondary-color);
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.progress-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
}

/* Add custom task form inside organizer */
.add-task-form {
    border-top: 1px solid rgba(62, 56, 53, 0.08);
    padding-top: 24px;
}

.add-task-form h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input[type="text"], 
.form-group input[type="number"], 
.form-group select,
.form-group textarea {
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    color: var(--text-main);
    transition: border-color 0.2s, background 0.2s;
}

.form-group input[type="text"]:focus, 
.form-group input[type="number"]:focus, 
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: white;
}

.add-btn-submit {
    width: 100%;
    border: none;
    background: var(--primary-color);
    color: white;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(255, 143, 156, 0.2);
}

.add-btn-submit:hover {
    background: var(--primary-hover);
}

.add-btn-submit:active {
    transform: scale(0.98);
}

/* Tasks Lists right-hand column */
.tasks-list-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(15px);
    min-height: 500px;
}

.list-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(62, 56, 53, 0.08);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.list-header-bar h3 {
    font-family: var(--font-heading);
    font-size: 22px;
}

.reset-defaults-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reset-defaults-btn:hover {
    color: var(--status-red);
}

.todo-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Single Todo Item Design */
.todo-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    transition: all 0.2s;
    position: relative;
}

.todo-item:hover {
    background: white;
    box-shadow: var(--shadow-soft);
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.todo-item.checked .todo-checkbox {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
}

.todo-checkbox i {
    font-size: 10px;
    color: white;
    display: none;
}

.todo-item.checked .todo-checkbox i {
    display: block;
}

.todo-details-info {
    flex-grow: 1;
}

.todo-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.2s;
}

.todo-item.checked .todo-title {
    color: var(--text-muted);
    text-decoration: line-through;
}

.todo-meta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 600;
}

.meta-week {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 1px 8px;
    border-radius: 10px;
}

.meta-cat {
    color: var(--text-muted);
}

.delete-task-btn {
    border: none;
    background: transparent;
    color: rgba(62, 56, 53, 0.2);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.delete-task-btn:hover {
    color: var(--status-red);
    background: var(--status-red-light);
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    color: rgba(62, 56, 53, 0.1);
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 14px;
}

/* KNOWLEDGE HUB TAB */
.hub-subtitle {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.knowledge-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.knowledge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.knowledge-card:hover {
    background: white;
}

.card-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    margin-bottom: 16px;
}

.knowledge-card:nth-child(2) .card-icon {
    background: var(--status-orange-light);
    color: var(--status-orange);
}
.knowledge-card:nth-child(3) .card-icon {
    background: var(--secondary-light);
    color: var(--accent-gold);
}
.knowledge-card:nth-child(4) .card-icon {
    background: var(--accent-teal-light);
    color: var(--accent-teal);
}

.knowledge-card h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    margin-bottom: 8px;
}

.knowledge-card p {
    font-size: 13px;
    color: #6C5F5A;
    line-height: 1.5;
    flex-grow: 1;
}

.card-link {
    display: inline-block;
    color: var(--primary-color);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 14px;
}

.card-link:hover {
    text-decoration: underline;
}

.badge-date {
    background: var(--status-orange-light);
    color: var(--status-orange);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 8px;
    width: fit-content;
    margin-top: 12px;
}

.media-resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.media-column h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 4px;
}

.media-column-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.media-red-icon {
    color: #FF0000;
}

.media-green-icon {
    color: #1DB954;
}

.media-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Curated Media Item */
.media-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 16px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all 0.2s;
}

.media-item:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 203, 190, 0.25);
}

.media-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.media-item.completed .media-check {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
}

.media-check i {
    color: white;
    font-size: 10px;
    display: none;
}

.media-item.completed .media-check i {
    display: block;
}

.media-thumbnail-placeholder {
    width: 64px;
    height: 48px;
    background: #EEDFD7;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 18px;
    flex-shrink: 0;
}

.media-item:hover .media-thumbnail-placeholder {
    background: var(--primary-light);
    color: var(--primary-color);
}

.media-info {
    flex-grow: 1;
}

.media-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    transition: color 0.2s;
}

.media-item.completed .media-title {
    color: var(--text-muted);
    text-decoration: line-through;
}

.media-creator {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.media-link-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
}

.media-link-btn:hover {
    color: var(--primary-color);
    background: var(--primary-light);
    transform: scale(1.1);
}

/* JOURNAL TAB LAYOUT */
.journal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.journal-editor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(15px);
}

.journal-editor-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 20px;
}

.mood-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mood-btn {
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 12.5px;
    color: var(--text-main);
    transition: all 0.2s;
}

.mood-btn:hover {
    background: white;
}

.mood-btn.active {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.form-group-row {
    display: flex;
    gap: 16px;
}

.form-group.half {
    flex: 1;
}

.save-journal-btn {
    width: 100%;
    border: none;
    background: var(--accent-gold);
    color: white;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(217, 160, 91, 0.25);
    margin-top: 10px;
}

.save-journal-btn:hover {
    background: #C48E49;
    transform: translateY(-1px);
}

.save-journal-btn:active {
    transform: translateY(0);
}

/* Journal list right column */
.journal-entries-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.journal-entries-container h3 {
    font-family: var(--font-heading);
    font-size: 22px;
}

.journal-entries-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.journal-entries-list::-webkit-scrollbar {
    width: 6px;
}

.journal-entries-list::-webkit-scrollbar-thumb {
    background: rgba(228, 203, 190, 0.5);
    border-radius: 3px;
}

/* Single Journal Entry Card */
.journal-entry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.journal-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(62, 56, 53, 0.1);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.journal-entry-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.journal-entry-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.entry-mood-badge {
    font-size: 18px;
}

.entry-info-badge {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.entry-actions {
    display: flex;
    gap: 8px;
}

.delete-entry-btn {
    border: none;
    background: transparent;
    color: rgba(62, 56, 53, 0.2);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.delete-entry-btn:hover {
    color: var(--status-red);
    background: var(--status-red-light);
}

.journal-entry-body {
    font-size: 13.5px;
    color: #554E4A;
    line-height: 1.6;
    white-space: pre-wrap; /* respect line breaks */
}

/* STICKY SIMULATION BANNER */
.sim-sticky-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #FFF0F2 0%, #FFF9F3 100%);
    border: 2px solid var(--primary-color);
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(255, 143, 156, 0.25);
    z-index: 1000;
    max-width: 480px;
    font-size: 13px;
    animation: slideUp 0.3s ease-out;
}

.sim-sticky-banner p {
    color: var(--text-main);
}

.reset-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    margin-left: 4px;
}

.reset-link:hover {
    color: var(--primary-hover);
}

/* FOOTER */
.app-footer {
    text-align: center;
    margin-top: 64px;
    border-top: 1px solid rgba(62, 56, 53, 0.08);
    padding-top: 32px;
}

.footer-decor {
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.app-footer p {
    font-size: 12.5px;
    color: var(--text-muted);
}

.app-footer .disclaimer {
    font-size: 11px;
    margin-top: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* Animations */
@keyframes gentle-heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    70% { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes animate-float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: animate-float 3s ease-in-out infinite;
}

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

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

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 24px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 24px;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 16px;
    }
    
    .quick-stats-sidebar {
        display: none;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .organizer-layout, .journal-layout {
        grid-template-columns: 1fr;
    }
    
    .alert-grid {
        grid-template-columns: 1fr;
    }
    
    .media-resources-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .week-simulation-panel {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .nav-menu {
        gap: 6px;
    }
    
    .nav-btn {
        padding: 10px 14px;
        font-size: 13px;
        gap: 8px;
    }
    
    .card-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .title-with-subtitle {
        font-size: 26px;
    }
    
    .welcome-msg h2 {
        font-size: 26px;
    }
}
