/* ==========================================================================
   FOCUS JOURNAL — DESIGN SYSTEM & STYLESHEET
   Aesthetic: Notion + Apple Reminders + Minimal Cream Journal
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Theme Design Tokens)
   -------------------------------------------------------------------------- */
:root[data-theme="light"] {
    --bg-main: #F6F4ED;            /* Cream Paper Background */
    --bg-journal: #FAF8F5;        /* Slightly lighter inner paper */
    --bg-card: #FFFFFF;           /* Pure Crisp Card */
    --bg-card-hover: #FCFCFA;
    --bg-glass: rgba(255, 255, 255, 0.75);
    
    --text-primary: #2E2E2E;      /* Deep Charcoal */
    --text-secondary: #5A5955;    /* Warm Slate */
    --text-muted: #8E8D8A;        /* Soft Grey */
    
    --color-primary: #6A8F6B;     /* Sage Green */
    --color-primary-hover: #567657;
    --color-primary-light: rgba(106, 143, 107, 0.10);
    --color-primary-border: rgba(106, 143, 107, 0.25);
    
    --color-accent: #D4A373;      /* Warm Sand / Terracotta */
    --color-accent-light: rgba(212, 163, 115, 0.15);

    --priority-low: #5B8A99;      /* Muted Slate Blue */
    --priority-low-bg: rgba(91, 138, 153, 0.12);
    --priority-medium: #D4A373;   /* Warm Sand */
    --priority-medium-bg: rgba(212, 163, 115, 0.15);
    --priority-high: #E07A5F;     /* Warm Terracotta Red */
    --priority-high-bg: rgba(224, 122, 95, 0.14);

    --border-subtle: rgba(46, 46, 46, 0.08);
    --border-hover: rgba(46, 46, 46, 0.18);
    
    --shadow-sm: 0 2px 8px rgba(46, 46, 46, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 8px 24px rgba(46, 46, 46, 0.05), 0 2px 6px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 16px 36px rgba(46, 46, 46, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 28px rgba(106, 143, 107, 0.12), 0 4px 10px rgba(0, 0, 0, 0.03);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --font-heading: 'Newsreader', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root[data-theme="dark"] {
    --bg-main: #18181A;            /* Dark Slate Journal */
    --bg-journal: #1E1E22;
    --bg-card: #252529;           /* Charcoal Elevated Card */
    --bg-card-hover: #2D2D33;
    --bg-glass: rgba(37, 37, 41, 0.85);

    --text-primary: #F2F2F5;      /* Off White */
    --text-secondary: #A8A8B0;    /* Muted Lavender Grey */
    --text-muted: #72727D;

    --color-primary: #84A98C;     /* Sage Glow */
    --color-primary-hover: #97BC9F;
    --color-primary-light: rgba(132, 169, 140, 0.15);
    --color-primary-border: rgba(132, 169, 140, 0.35);

    --color-accent: #E2B07E;
    --color-accent-light: rgba(226, 176, 126, 0.18);

    --priority-low: #7BB3C4;
    --priority-low-bg: rgba(123, 179, 196, 0.15);
    --priority-medium: #E2B07E;
    --priority-medium-bg: rgba(226, 176, 126, 0.18);
    --priority-high: #F28B82;
    --priority-high-bg: rgba(242, 139, 130, 0.20);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 12px 28px rgba(132, 169, 140, 0.2);
}

/* --------------------------------------------------------------------------
   2. Global Reset & Base Layout
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2.5rem 1rem;
    transition: background-color 0.4s ease, color 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-wrapper {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
   3. Header Section
   -------------------------------------------------------------------------- */
.journal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    border-bottom: 1px dashed var(--border-subtle);
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.journal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    width: fit-content;
}

.journal-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.1;
}

.journal-date {
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   4. Buttons & Icon Controls
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.2s ease, 
                background-color 0.2s ease, 
                color 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
}

.btn:active {
    transform: scale(0.97) translateY(0) !important;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(106, 143, 107, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.icon-btn:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

/* Theme toggle icons */
[data-theme="light"] .moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }

.kbd-hint {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
}

/* --------------------------------------------------------------------------
   5. Hero Card with Progress Ring
   -------------------------------------------------------------------------- */
.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 60%;
}

.hero-greeting {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.25;
}

.hero-subtext {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stats-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-main);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    border: 1px solid var(--border-subtle);
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.stat-dot.total { background-color: var(--text-muted); }
.stat-dot.active { background-color: var(--color-accent); }
.stat-dot.completed { background-color: var(--color-primary); }

.stat-label { color: var(--text-muted); }
.stat-value { font-weight: 700; color: var(--text-primary); }

/* SVG Progress Ring */
.progress-ring-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
}

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

.progress-ring-bg {
    fill: none;
    stroke: var(--border-subtle);
    stroke-width: 10;
}

.progress-ring-circle {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 339.292; /* 2 * PI * 54 */
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.progress-percent {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.progress-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   6. Input Form Section
   -------------------------------------------------------------------------- */
.input-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-section:focus-within {
    border-color: var(--color-primary-border);
    box-shadow: var(--shadow-md);
}

.task-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-main-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    transition: border-color 0.2s ease;
}

.input-main-group:focus-within {
    border-color: var(--color-primary);
}

.input-icon {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.task-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-primary);
    outline: none;
}

.task-input::placeholder {
    color: var(--text-muted);
}

/* Input Options Bar */
.input-options-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.25rem;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.priority-selector {
    display: flex;
    gap: 0.35rem;
    background: var(--bg-main);
    padding: 0.2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.priority-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.priority-chip:hover {
    color: var(--text-primary);
}

.priority-chip.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.chip-dot.low { background-color: var(--priority-low); }
.chip-dot.medium { background-color: var(--priority-medium); }
.chip-dot.high { background-color: var(--priority-high); }

.custom-select, .custom-date-input {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.custom-select:hover, .custom-date-input:hover {
    border-color: var(--border-hover);
}

/* --------------------------------------------------------------------------
   7. Toolbar Section (Search, Filters, Sort)
   -------------------------------------------------------------------------- */
.toolbar-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 220px;
}

.search-icon {
    position: absolute;
    left: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 0.55rem 2rem 0.55rem 2.4rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: var(--color-primary-border);
    box-shadow: var(--shadow-md);
}

.clear-search-btn {
    position: absolute;
    right: 0.6rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.filter-tabs {
    display: flex;
    gap: 0.35rem;
    background: var(--bg-card);
    padding: 0.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.filter-btn {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(106, 143, 107, 0.25);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   8. Task List & Task Cards
   -------------------------------------------------------------------------- */
.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 240px;
}

.task-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Individual Task Card */
.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.25s ease, 
                border-color 0.2s ease, 
                background-color 0.3s ease;
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    will-change: transform, opacity;
}

.task-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

.task-card.dragging {
    opacity: 0.4;
    transform: scale(0.98);
    border: 2px dashed var(--color-primary);
}

/* Completed Card Styling */
.task-card.completed {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-border);
}

.task-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 1;
    min-width: 0;
}

.drag-handle {
    color: var(--text-muted);
    cursor: grab;
    display: flex;
    align-items: center;
    padding: 0.2rem;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.task-card:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Custom Animated Checkbox */
.checkbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--text-muted);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.task-card:hover .custom-checkbox {
    border-color: var(--color-primary);
}

.custom-checkbox svg {
    stroke: #FFFFFF;
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    transition: stroke-dashoffset 0.3s ease;
}

.task-card.completed .custom-checkbox {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.task-card.completed .custom-checkbox svg {
    stroke-dashoffset: 0;
}

/* Task Content Info */
.task-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.task-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
    position: relative;
}

.task-title-input {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-main);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.5rem;
    width: 100%;
    outline: none;
}

.task-card.completed .task-title {
    text-decoration: line-through;
    text-decoration-color: var(--color-primary);
    text-decoration-thickness: 2px;
    color: var(--text-muted);
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: capitalize;
}

.badge-priority.low {
    color: var(--priority-low);
    background: var(--priority-low-bg);
}
.badge-priority.medium {
    color: var(--priority-medium);
    background: var(--priority-medium-bg);
}
.badge-priority.high {
    color: var(--priority-high);
    background: var(--priority-high-bg);
}

.badge-category {
    color: var(--text-secondary);
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
}

.task-due-date {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.task-due-date.overdue {
    color: var(--priority-high);
    font-weight: 600;
}

/* Card Actions */
.task-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.task-card:hover .task-actions {
    opacity: 1;
}

.action-btn {
    background: none;
    border: none;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.action-btn:hover {
    background-color: var(--bg-main);
    color: var(--text-primary);
    transform: scale(1.1);
}

.action-btn.btn-delete:hover {
    background-color: var(--priority-high-bg);
    color: var(--priority-high);
}

.action-btn.btn-pin.pinned {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   9. Empty State
   -------------------------------------------------------------------------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.empty-illustration {
    margin-bottom: 1rem;
    color: var(--color-primary);
    opacity: 0.6;
}

.empty-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.empty-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 320px;
}

/* --------------------------------------------------------------------------
   10. Footer Section
   -------------------------------------------------------------------------- */
.journal-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-tips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tip-pill {
    background: var(--bg-card);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   11. Responsive Styles (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.75rem;
    }

    .journal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .hero-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.25rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .progress-ring-container {
        align-self: center;
    }

    .input-options-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .toolbar-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    .toolbar-right {
        justify-content: space-between;
    }

    .task-card {
        padding: 0.85rem 1rem;
    }
}
