/* ===============================
   Frosty v0.7.0 Design System
   Release: Financial Memory
================================ */

:root {
    --primary: #0b3d2e;
    --primary-dark: #082d22;
    --accent: #6ee7b7;
    --background: #f4f7fb;
    --card: #ffffff;
    --text: #162033;
    --muted: #5b6778;
    --border: #dce3ec;
    --danger: #dc2626;
    --warning: #f59e0b;
    --success: #16a34a;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page */
body {
    font-family: Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
}

/* App Layout */
.app-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}
/* ==========================================
   v0.7.0 Workspace Navigation
========================================== */
/* ==========================================
   v0.7.0 Bills Workspace
========================================== */

.bills-header-card {
    background: linear-gradient(135deg, var(--primary), #145543);
    color: white;
    border-radius: 24px;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    gap: 25px;
}

.bills-header-card h3 {
    font-size: 34px;
    margin-bottom: 8px;
}

.bills-header-card p {
    opacity: 0.9;
    line-height: 1.5;
}

.bills-total-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 24px;
    border-radius: 20px;
    min-width: 220px;
    text-align: center;
}

.bills-total-box p {
    margin-bottom: 8px;
}

.bills-total-box strong {
    font-size: 34px;
}

.bills-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
}

.bill-form-card,
.bill-list-card {
    background: var(--card);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.bill-form-card h3,
.bill-list-card h3 {
    color: var(--primary);
}

select {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 16px;
    background-color: white;
    color: var(--text);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 61, 46, 0.12);
}

.bill-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bill-empty-state,
.bill-item {
    background-color: var(--background);
    border-left: 5px solid var(--primary);
    border-radius: 16px;
    padding: 18px;
}

.bill-empty-state strong,
.bill-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.bill-empty-state p,
.bill-item p {
    color: var(--muted);
    line-height: 1.5;
}

.bill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.bill-info span {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: bold;
    color: var(--primary);
}

.delete-bill-button {
    flex: 0;
    padding: 10px 14px;
    background-color: var(--danger);
    color: white;
    border-radius: 10px;
    white-space: nowrap;
}

.delete-bill-button:hover {
    background-color: #b91c1c;
}

body.dark-mode select {
    background-color: #0f172a;
    color: white;
}

body.dark-mode .bill-empty-state,
body.dark-mode .bill-item {
    background-color: #0f172a;
}

@media (max-width: 900px) {
    .bills-header-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .bills-total-box {
        width: 100%;
    }

    .bills-grid {
        grid-template-columns: 1fr;
    }

    .bill-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .delete-bill-button {
        width: 100%;
    }
}
.app-page {
    display: none;
}

.app-page.active-page {
    display: block;
}
.bill-actions {
    display: flex;
    gap: 10px;
}

.edit-bill-button {
    flex: 0;
    padding: 10px 14px;
    background-color: var(--primary);
    color: white;
    border-radius: 10px;
    white-space: nowrap;
}

.edit-bill-button:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 900px) {
    .bill-actions {
        width: 100%;
        flex-direction: column;
    }

    .edit-bill-button {
        width: 100%;
    }
}
/* Sidebar */
.sidebar {
    background-color: var(--primary);
    color: white;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.brand-icon {
    width: 52px;
    height: 52px;
    background-color: white;
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
}

.brand h1 {
    font-size: 28px;
}

.brand p {
    font-size: 14px;
    opacity: 0.8;
}
/* ==========================================
   v0.8.0 Goals Workspace
========================================== */

.goals-header-card {
    background: linear-gradient(135deg, var(--primary), #145543);
    color: white;
    border-radius: 24px;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    gap: 25px;
}

.goals-header-card h3 {
    font-size: 34px;
    margin-bottom: 8px;
}

.goals-header-card p {
    opacity: 0.9;
    line-height: 1.5;
}

.goals-total-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 24px;
    border-radius: 20px;
    min-width: 220px;
    text-align: center;
}

.goals-total-box p {
    margin-bottom: 8px;
}

.goals-total-box strong {
    font-size: 34px;
}

.goals-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
}

.goal-form-card,
.goal-list-card {
    background: var(--card);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.goal-form-card h3,
.goal-list-card h3 {
    color: var(--primary);
}

.goal-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.goal-empty-state,
.goal-item {
    background-color: var(--background);
    border-left: 5px solid var(--primary);
    border-radius: 16px;
    padding: 18px;
}

.goal-empty-state strong,
.goal-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.goal-empty-state p,
.goal-item p {
    color: var(--muted);
    line-height: 1.5;
}

.goal-progress-bar {
    width: 100%;
    height: 14px;
    background-color: var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin: 14px 0;
}

.goal-progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary);
    border-radius: 20px;
    transition: width 0.4s ease;
}

.goal-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}

.goal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.edit-goal-button {
    flex: 0;
    padding: 10px 14px;
    background-color: var(--primary);
    color: white;
    border-radius: 10px;
    white-space: nowrap;
}

.edit-goal-button:hover {
    background-color: var(--primary-dark);
}

.delete-goal-button {
    flex: 0;
    padding: 10px 14px;
    background-color: var(--danger);
    color: white;
    border-radius: 10px;
    white-space: nowrap;
}

.delete-goal-button:hover {
    background-color: #b91c1c;
}

body.dark-mode .goal-empty-state,
body.dark-mode .goal-item {
    background-color: #0f172a;
}

@media (max-width: 900px) {
    .goals-header-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .goals-total-box {
        width: 100%;
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }

    .goal-actions {
        width: 100%;
        flex-direction: column;
    }

    .edit-goal-button,
    .delete-goal-button {
        width: 100%;
    }
}

/* Sidebar Navigation */
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-nav a {
    color: white;
    text-decoration: none;
    padding: 13px 15px;
    border-radius: 12px;
    font-weight: bold;
    opacity: 0.85;
}

.side-nav a:hover,
.side-nav a.active {
    background-color: rgba(255, 255, 255, 0.14);
    opacity: 1;
}

.sidebar-footer {
    font-size: 13px;
    opacity: 0.75;
    line-height: 1.6;
}

/* Main Content */
.main-content {
    padding: 36px;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.eyebrow {
    color: var(--muted);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.top-header h2 {
    font-size: 34px;
    color: var(--text);
    margin-bottom: 8px;
}

.header-subtitle {
    color: var(--muted);
    font-size: 17px;
}

.theme-button {
    background-color: var(--card);
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.theme-button:hover {
    background-color: #eef5ff;
}

/* Hero Card */
.hero-card {
    background: linear-gradient(135deg, var(--primary), #145543);
    color: white;
    border-radius: 24px;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.hero-left h3 {
    font-size: 52px;
    margin: 10px 0;
}

.hero-left p {
    max-width: 450px;
    opacity: 0.9;
}

.health-score-card {
    background: rgba(255,255,255,.15);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    min-width: 220px;
}

.health-score-card h3 {
    font-size: 52px;
    margin: 10px 0;
}

.health-score-card span {
    font-weight: bold;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.calculator-card,
.coach-card,
.summary-box,
.progress-section,
.radar-card,
.timeline-card,
.coach-insights-section,
.insight-box,
.memory-section,
.memory-history-card,
.memory-box {
    background: var(--card);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.calculator-card h3,
.coach-card h3,
.radar-card h3,
.timeline-card h3,
.coach-insights-section h3,
.memory-section h3,
.memory-history-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.section-text {
    color: var(--muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Form */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

label {
    margin-bottom: 6px;
    font-weight: bold;
}

input {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 16px;
    transition: 0.25s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11,61,46,.12);
}

.button-row {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

button {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.25s;
}

button[type="submit"] {
    background: var(--primary);
    color: white;
}

button[type="submit"]:hover {
    background: var(--primary-dark);
}

.secondary-button {
    background: #eef2f7;
    color: var(--text);
}

.secondary-button:hover {
    background: #dde6ef;
}
.danger-button {
    background-color: var(--danger);
    color: white;
}

.danger-button:hover {
    background-color: #b91c1c;
}
/* Coach Card */
.coach-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
/* ==========================================
   v0.6.0 AI Coach 2.0
========================================== */

.coach-briefing {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.coach-briefing-item {
    background-color: var(--background);
    border-left: 5px solid var(--primary);
    border-radius: 16px;
    padding: 18px;
}

.coach-briefing-item strong {
    display: block;
    color: var(--text);
    margin-bottom: 6px;
}

.coach-briefing-item p {
    color: var(--muted);
    line-height: 1.5;
}

body.dark-mode .coach-briefing-item {
    background-color: #0f172a;
}

.coach-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}

.coach-header p {
    color: var(--muted);
    font-size: 14px;
}

#coach-text {
    line-height: 1.8;
    color: var(--muted);
}

/* Summary Cards */
.summary-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.summary-box {
    transition: 0.25s;
}

.summary-box:hover {
    transform: translateY(-4px);
}

.summary-box p {
    color: var(--muted);
    margin-bottom: 8px;
}

.summary-box strong {
    font-size: 24px;
    color: var(--primary);
}

/* v0.6.0 Financial Memory */
.memory-section,
.memory-history-card {
    margin-bottom: 30px;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.memory-box {
    box-shadow: none;
    background-color: var(--background);
    transition: 0.25s;
}

.memory-box:hover {
    transform: translateY(-4px);
}

.memory-box p {
    color: var(--muted);
    margin-bottom: 8px;
}

.memory-box strong {
    display: block;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 8px;
}

.memory-box span {
    color: var(--muted);
    line-height: 1.5;
}

.memory-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.memory-item {
    padding: 18px;
    border-radius: 16px;
    background-color: var(--background);
    border-left: 5px solid var(--primary);
    transition: 0.25s;
}

.memory-item:hover {
    transform: translateX(6px);
}

.memory-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.memory-item p {
    color: var(--muted);
    line-height: 1.5;
}

.memory-item.good {
    border-left-color: var(--success);
}

.memory-item.warning {
    border-left-color: var(--warning);
}

.memory-item.danger {
    border-left-color: var(--danger);
}
/* Financial Growth */
.growth-card {
    background: var(--card);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.growth-card h3 {
    color: var(--primary);
}

.growth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.growth-box {
    background-color: var(--background);
    border-radius: 22px;
    padding: 30px;
    border: 1px solid var(--border);
    transition: 0.25s;
}

.growth-box:hover {
    transform: translateY(-4px);
}

.growth-box p {
    color: var(--muted);
    margin-bottom: 8px;
}

.growth-box strong {
    display: block;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 8px;
}

.growth-box span {
    color: var(--muted);
    line-height: 1.5;
}

body.dark-mode .growth-box {
    background-color: #0f172a;
}

@media (max-width: 1000px) {
    .growth-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
   v0.6.0 Memory Insights
========================================== */

.memory-insights-card {
    background: var(--card);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.memory-insights-card h3 {
    color: var(--primary);
}

.memory-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.memory-insight-box {
    background-color: var(--background);
    border-radius: 22px;
    padding: 30px;
    border: 1px solid var(--border);
    transition: 0.25s;
}

.memory-insight-box:hover {
    transform: translateY(-4px);
}

.memory-insight-box p {
    color: var(--muted);
    margin-bottom: 8px;
}

.memory-insight-box strong {
    display: block;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 8px;
}

.memory-insight-box span {
    color: var(--muted);
    line-height: 1.5;
}

.memory-summary-box {
    background: linear-gradient(135deg, var(--primary), #145543);
    color: white;
    border-radius: 20px;
    padding: 24px;
}

.memory-summary-box h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.memory-summary-box p {
    line-height: 1.6;
    opacity: 0.92;
}

body.dark-mode .memory-insight-box {
    background-color: #0f172a;
}

@media (max-width: 1000px) {
    .memory-insights-grid {
        grid-template-columns: 1fr;
    }
}

/* Financial Radar + Timeline */
.v04-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.section-title-row p {
    color: var(--muted);
    line-height: 1.5;
}

.section-title-row span {
    font-size: 28px;
}

.radar-list,
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.radar-item {
    padding: 18px;
    border-radius: 16px;
    background-color: var(--background);
    border-left: 5px solid var(--primary);
}

.radar-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.radar-item p {
    color: var(--muted);
    line-height: 1.5;
}

.radar-item.good {
    border-left-color: var(--success);
}

.radar-item.warning {
    border-left-color: var(--warning);
}

.radar-item.danger {
    border-left-color: var(--danger);
}

.timeline-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 16px;
    background-color: var(--background);
}

.timeline-dot {
    width: 14px;
    height: 14px;
    margin-top: 4px;
    border-radius: 50%;
    background-color: var(--primary);
    flex-shrink: 0;
}

.timeline-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.timeline-item p {
    color: var(--muted);
    line-height: 1.5;
}

/* Coach Insights */
.coach-insights-section {
    margin-bottom: 30px;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.insight-box {
    box-shadow: none;
    background-color: var(--background);
}

.insight-box p {
    color: var(--muted);
    margin-bottom: 8px;
}

.insight-box strong {
    display: block;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 8px;
}

.insight-box span {
    color: var(--muted);
    line-height: 1.5;
}

/* Notifications */
.notifications-card {
    background: var(--card);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.notifications-card h3 {
    color: var(--primary);
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-item {
    background-color: var(--background);
    border-left: 5px solid var(--primary);
    padding: 18px;
    border-radius: 16px;
    transition: 0.25s;
}

.notification-item:hover {
    transform: translateX(6px);
}

.notification-item strong {
    display: block;
    margin-bottom: 6px;
}

.notification-item p {
    color: var(--muted);
    line-height: 1.5;
}

.notification-item.good {
    border-left-color: var(--success);
}

.notification-item.warning {
    border-left-color: var(--warning);
}

.notification-item.danger {
    border-left-color: var(--danger);
}

/* Money Breakdown Chart */
.chart-card {
    background: var(--card);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.chart-card h3 {
    color: var(--primary);
}

.pie-chart-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.money-pie {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary) 0% 33%,
        var(--accent) 33% 66%,
        var(--warning) 66% 100%
    );
    box-shadow: inset 0 0 0 20px var(--card);
    transition: 0.5s ease;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--muted);
    font-weight: bold;
}

.legend-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    margin-right: 8px;
}

.bills-dot {
    background-color: var(--primary);
}

.savings-dot {
    background-color: var(--accent);
}

.spending-dot {
    background-color: var(--warning);
}

/* Safe Spend Outlook */
.outlook-card {
    background: var(--card);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.outlook-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 240px;
    margin-top: 25px;
}

.outlook-item {
    width: 55px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.outlook-fill {
    width: 40px;
    min-height: 12px;
    background: linear-gradient(
        to top,
        var(--primary),
        var(--accent)
    );
    border-radius: 14px 14px 6px 6px;
    transition: 0.5s;
}

.outlook-item p {
    margin-top: 10px;
    color: var(--muted);
    font-weight: bold;
}

/* Progress Section */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.progress-header h3 {
    color: var(--primary);
    margin-bottom: 6px;
}

.progress-header p {
    color: var(--muted);
}

#progress-percent {
    color: var(--primary);
    font-size: 22px;
}

.progress-bar {
    width: 100%;
    height: 18px;
    background-color: #dce3ec;
    border-radius: 20px;
    overflow: hidden;
}

#progress-fill {
    width: 0%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 20px;
    transition: width 0.5s ease;
}

/* Dark Mode */
body.dark-mode {
    --background: #0f172a;
    --card: #111827;
    --text: #f8fafc;
    --muted: #cbd5e1;
    --border: #263244;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

body.dark-mode .sidebar {
    background-color: #020617;
}

body.dark-mode .hero-card {
    background: linear-gradient(135deg, #020617, #0b3d2e);
}

body.dark-mode input {
    background-color: #0f172a;
    color: white;
}

body.dark-mode .secondary-button {
    background-color: #263244;
    color: white;
}

body.dark-mode .secondary-button:hover {
    background-color: #334155;
}

body.dark-mode .coach-icon,
body.dark-mode .radar-item,
body.dark-mode .timeline-item,
body.dark-mode .insight-box,
body.dark-mode .notification-item,
body.dark-mode .memory-box,
body.dark-mode .memory-item {
    background-color: #0f172a;
}

body.dark-mode .progress-bar {
    background-color: #263244;
}

body.dark-mode .theme-button {
    background-color: #111827;
    color: white;
    border-color: #263244;
}

/* Animations */
.hero-card,
.calculator-card,
.coach-card,
.summary-box,
.radar-card,
.timeline-card,
.coach-insights-section,
.notifications-card,
.chart-card,
.outlook-card,
.memory-section,
.memory-history-card,
.progress-section {
    animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-box,
.insight-box,
.radar-item,
.timeline-item,
.notification-item,
.memory-box,
.memory-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Responsive Design */
@media (max-width: 1000px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .side-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-footer {
        display: none;
    }

    .v04-grid {
        grid-template-columns: 1fr;
    }

    .insight-grid,
    .memory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 24px;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .theme-button {
        width: 100%;
    }

    .hero-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .health-score-card {
        width: 100%;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .summary-section {
        grid-template-columns: 1fr;
    }

    .button-row {
        flex-direction: column;
    }

    .hero-left h3,
    .health-score-card h3 {
        font-size: 42px;
    }

    .outlook-bars {
        gap: 10px;
        overflow-x: auto;
    }

    .outlook-item {
        min-width: 45px;
    }
}

@media (max-width: 520px) {
    .sidebar {
        flex-direction: column;
        align-items: flex-start;
    }

    .side-nav {
        width: 100%;
        flex-direction: column;
    }

    .brand {
        margin-bottom: 10px;
    }

    .main-content {
        padding: 18px;
    }
}
/* ==========================================
   v1.0.0 Feedback Button
========================================== */

.feedback-button {
    display: inline-block;
    margin-top: 18px;
    padding: 14px 20px;
    background-color: var(--primary);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
}

.feedback-button:hover {
    background-color: var(--primary-dark);
}
/* ==========================================
   v1.0.0 Auth UI
========================================== */

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.hidden {
    display: none !important;
}

.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 6000;
    padding: 20px;
}

.auth-card {
    background: var(--card);
    color: var(--text);
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
}

.auth-card h2 {
    color: var(--primary);
    margin-bottom: 8px;
}

.auth-card p {
    color: var(--muted);
    margin-bottom: 20px;
}

.auth-close-button {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    color: var(--text);
    font-size: 28px;
    padding: 0;
}

.auth-message {
    margin-top: 16px;
    font-weight: bold;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 55px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
}

body.dark-mode .auth-card {
    background: #111827;
}
/* ==========================================
   FROSTY v1.0.0
   HIDDEN ELEMENT UTILITY
========================================== */

.hidden {
    display: none !important;
}
/* ==========================================
   FROSTY v1.0.0
   FORCE HIDE AUTH MODAL
========================================== */

.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.account-status {
    font-weight: bold;
    color: var(--muted);
}

.settings-button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}
/* ==========================================
   Logged Out Screen
========================================== */

.logged-out-screen {

    position: fixed;
    inset: 0;

    background: var(--background);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 5000;

}

.logged-out-card {

    background: var(--card);

    padding: 45px;

    max-width: 500px;

    border-radius: 24px;

    text-align: center;

    box-shadow: var(--shadow);

}

.logged-out-card h1{

    margin-bottom:20px;

}

.logged-out-card p{

    margin-bottom:30px;

    line-height:1.7;

}
/* ==========================================
   v1.0.0 Feedback Center
========================================== */

.feedback-form {
    margin-top: 20px;
}

.feedback-form textarea {
    min-height: 130px;
    resize: vertical;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 16px;
    font-family: inherit;
    background: white;
    color: var(--text);
}

.feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 61, 46, 0.12);
}

.feedback-status {
    margin-top: 16px;
    font-weight: bold;
    color: var(--primary);
}

body.dark-mode .feedback-form textarea {
    background-color: #0f172a;
    color: white;
}