:root {
    /* Catppuccin Mocha (dark) - DEFAULT */
    --ctp-base: #1e1e2e;
    --ctp-mantle: #181825;
    --ctp-crust: #11111b;
    --ctp-surface0: #313244;
    --ctp-surface1: #45475a;
    --ctp-surface2: #585b70;
    --ctp-text: #cdd6f4;
    --ctp-subtext1: #bac2de;
    --ctp-subtext0: #a6adc8;
    --ctp-overlay2: #9399b2;
    --ctp-overlay1: #7f849c;
    --ctp-overlay0: #6c7086;
    --ctp-blue: #89b4fa;
    --ctp-lavender: #b4befe;
    --ctp-sapphire: #74c7ec;
    --ctp-sky: #89dceb;
    --ctp-teal: #94e2d5;
    --ctp-green: #a6e3a1;
    --ctp-yellow: #f9e2af;
    --ctp-peach: #fab387;
    --ctp-maroon: #eba0ac;
    --ctp-red: #f38ba8;
    --ctp-mauve: #cba6f7;
    --ctp-pink: #f5c2e7;
    --ctp-flamingo: #f2cdcd;
    --ctp-rosewater: #f5e0dc;

    --bg-main: var(--ctp-base);
    --bg-chat: var(--ctp-mantle);
    --bg-header: var(--ctp-surface0);
    --bg-btn: var(--ctp-surface1);
    --bg-btn-hover: var(--ctp-surface2);
    --bg-popup: var(--ctp-mantle);
    --bg-popup-header: var(--ctp-surface1);
    --bg-popup-header-pulse: var(--ctp-surface2);
    --text-main: var(--ctp-text);
    --text-secondary: var(--ctp-subtext1);
    --text-link: var(--ctp-blue);
    --border-main: var(--ctp-surface2);
    --shadow-main: 0 4px 24px rgba(24,24,37,0.25);
    --shadow-header: 0 2px 8px rgba(24,24,37,0.18);
    --shadow-header-pulse: 0 4px 16px rgba(137,180,250,0.25);
    --popup-radius: 16px 16px 8px 8px;
    --border-color: var(--ctp-surface2);
    --border-color-accent: var(--ctp-blue);
}

.light-mode {
    /* Catppuccin Latte (light) */
    --ctp-base: #eff1f5;
    --ctp-mantle: #e6e9ef;
    --ctp-crust: #dce0e8;
    --ctp-surface0: #ccd0da;
    --ctp-surface1: #bcc0cc;
    --ctp-surface2: #acb0be;
    --ctp-text: #4c4f69;
    --ctp-subtext1: #5c5f77;
    --ctp-subtext0: #6c6f85;
    --ctp-overlay2: #7c7f93;
    --ctp-overlay1: #8c8fa1;
    --ctp-overlay0: #9ca0b0;
    --ctp-blue: #1e66f5;
    --ctp-lavender: #7287fd;
    --ctp-sapphire: #209fb5;
    --ctp-sky: #04a5e5;
    --ctp-teal: #179299;
    --ctp-green: #40a02b;
    --ctp-yellow: #df8e1d;
    --ctp-peach: #fe640b;
    --ctp-maroon: #e64553;
    --ctp-red: #d20f39;
    --ctp-mauve: #8839ef;
    --ctp-pink: #ea76cb;
    --ctp-flamingo: #dd7878;
    --ctp-rosewater: #dc8a78;

    --bg-main: var(--ctp-base);
    --bg-chat: var(--ctp-mantle);
    --bg-header: var(--ctp-surface0);
    --bg-btn: var(--ctp-surface1);
    --bg-btn-hover: var(--ctp-surface2);
    --bg-popup: var(--ctp-mantle);
    --bg-popup-header: var(--ctp-surface1);
    --bg-popup-header-pulse: var(--ctp-surface2);
    --text-main: var(--ctp-text);
    --text-secondary: var(--ctp-subtext1);
    --text-link: var(--ctp-blue);
    --border-main: var(--ctp-surface2);
    --shadow-main: 0 4px 24px rgba(220,224,232,0.10);
    --shadow-header: 0 2px 8px rgba(220,224,232,0.08);
    --shadow-header-pulse: 0 4px 16px rgba(30,102,245,0.12);
    --popup-radius: 16px 16px 8px 8px;
    --border-color: var(--ctp-surface2);
    --border-color-accent: var(--ctp-blue);
}
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Quicksand', 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Navbar */
.navbar {
    background-color: var(--ctp-crust);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    color: var(--ctp-mauve);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-item {
    color: var(--ctp-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--ctp-pink);
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--ctp-text);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.theme-toggle-btn:hover {
    color: var(--ctp-mauve);
    background-color: var(--ctp-surface1);
}

a {
    color: var(--text-link);
    text-decoration: underline;
}

.chat-container,
.chat-messages,
.chat-input-area,
input,
textarea {
    background-color: var(--bg-chat);
    color: var(--text-main);
    border-color: var(--border-main);
    font-family: inherit;
}

.message.sent {
    background-color: var(--bg-btn);
    color: var(--text-main);
}

.message.received {
    background-color: var(--bg-header);
    color: var(--text-secondary);
}

/* Typing Animation */
.typing-indicator {
    background-color: var(--ctp-surface1);
    padding: 10px 16px;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    align-self: flex-start;
    width: fit-content;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--ctp-subtext1);
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

button,
.send-btn {
    background-color: var(--bg-btn);
    color: var(--text-main);
    border: 1px solid var(--border-main);
    font-family: inherit;
    transition: background 0.2s;
}

button:hover,
.send-btn:hover {
    background-color: var(--bg-btn-hover);
}

::-webkit-scrollbar {
    width: 8px;
    background: var(--bg-header);
}
::-webkit-scrollbar-thumb {
    background: var(--border-main);
    border-radius: 4px;
}

/* === START: Main Content & Chat UI Styles === */

/* General Content Layout */
.main-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quote-container {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--ctp-mantle);
    border-radius: 8px;
    font-style: italic;
    color: var(--ctp-subtext1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.quote-container p {
    margin: 0;
    flex-grow: 1;
}

.quote-author {
    font-size: 0.9em;
    color: var(--ctp-overlay1);
    font-weight: normal;
}

.quote-refresh-btn {
    background: none;
    border: none;
    color: var(--ctp-overlay1);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-refresh-btn:hover {
    color: var(--ctp-blue);
    background-color: var(--ctp-surface0);
    transform: rotate(180deg);
}

.quote-refresh-btn:active {
    transform: rotate(180deg) scale(0.95);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Chat Area & Container */
.chat-area .messenger-container {
    position: relative;
    width: 100%;
    left: auto;
    bottom: auto;
    background-color: var(--ctp-base);
    border: 1px solid var(--ctp-surface1);
    border-radius: 8px; /* Rounded corners for the whole widget */
    box-shadow: var(--shadow-main);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: max-height 0.35s ease-in-out;
}


.chat-main {
    display: flex;
    flex-direction: column;
    height: 70vh;
    max-height: 700px;
    min-height: 300px;
}

/* Chat Header */
.chat-header {
    background-color: var(--ctp-surface0);
    padding: 10px 20px;
    border-bottom: 1px solid var(--ctp-surface1);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.chat-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--ctp-text);
    margin-right: auto;
}

.chat-header .mode-switch-btn,
.chat-header .minimize-btn {
    background: none;
    border: none;
    color: var(--ctp-subtext1);
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    margin-left: 8px;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 5px;
}

.chat-header button:hover {
    color: var(--ctp-mauve);
    background-color: var(--ctp-surface1);
}

/* Message Area */
.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.2s ease-in-out;
}

.message {
    padding: 10px 16px;
    border-radius: 18px;
    max-width: 85%;
    width: fit-content;
    line-height: 1.5;
    word-wrap: break-word;
}

.message p:first-child { margin-top: 0; }
.message p:last-child { margin-bottom: 0; }

.message.sent {
    background-color: var(--ctp-mauve);
    color: var(--ctp-crust);
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.message.received {
    background-color: var(--ctp-surface1);
    color: var(--ctp-text);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

/* Input Area */
.chat-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid var(--ctp-surface1);
    background-color: var(--ctp-base);
    transition: opacity 0.2s ease-in-out;
}

.chat-input {
    flex-grow: 1;
    border: 1px solid var(--ctp-surface2);
    background-color: var(--ctp-surface0);
    color: var(--ctp-text);
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.chat-input:focus {
    border-color: var(--ctp-mauve);
    box-shadow: 0 0 0 3px rgba(203, 166, 247, 0.3);
}

.chat-input-area button {
    background: none;
    border: none;
    color: var(--ctp-subtext1);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    transition: color 0.2s, background-color 0.2s;
}

.chat-input-area button:hover {
    color: var(--ctp-mauve);
    background-color: var(--ctp-surface1);
}

.chat-input-area button:disabled {
    color: var(--ctp-overlay0);
    background: none;
    cursor: not-allowed;
}

/* Collapsed State */
.messenger-container.collapsed {
    max-height: 55px; /* Adjust to match header height */
}

.messenger-container.collapsed .chat-messages,
.messenger-container.collapsed .chat-input-area {
    opacity: 0;
    pointer-events: none;
}

.messenger-container.collapsed .chat-header {
    cursor: pointer;
}

/* Sidebar Area */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rating-widget, .mascot-widget {
    background-color: var(--ctp-mantle);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.rating-widget h3 {
    margin-bottom: 1rem;
    color: var(--ctp-teal);
}

.stars {
    font-size: 1.5rem;
    color: var(--ctp-yellow);
    margin-bottom: 1rem;
    cursor: pointer;
}

.stars i:hover {
    color: var(--ctp-peach);
}

.mascot-widget img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Rating Feedback Styles */
.rating-feedback {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rating-textarea {
    background-color: var(--ctp-surface0);
    color: var(--ctp-text);
    border: 1px solid var(--ctp-surface2);
    border-radius: 6px;
    padding: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    min-height: 80px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rating-textarea:focus {
    border-color: var(--ctp-mauve);
    box-shadow: 0 0 0 3px rgba(203, 166, 247, 0.3);
}

.rating-submit-btn {
    background-color: var(--ctp-mauve);
    color: var(--ctp-crust);
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.rating-submit-btn:hover {
    background-color: var(--ctp-pink);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-area {
        flex-direction: row;
        justify-content: space-around;
    }

    .rating-widget, .mascot-widget {
        flex-basis: 45%;
    }
}

@media (max-width: 500px) {
    .main-content {
        padding: 1rem;
    }

    .sidebar-area {
        flex-direction: column;
    }
}

/* === END: Main Content & Chat UI Styles === */

/* === START: Journal Page Styles === */
.journal-container {
    background-color: var(--ctp-base);
    border: 1px solid var(--ctp-surface1);
    border-radius: 8px;
    box-shadow: var(--shadow-main);
    overflow: hidden;
}

.journal-header {
    background-color: var(--ctp-surface0);
    padding: 15px 20px;
    border-bottom: 1px solid var(--ctp-surface1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.journal-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--ctp-text);
}

.new-entry-btn {
    background: none;
    border: none;
    color: var(--ctp-mauve);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.new-entry-btn:hover {
    background-color: var(--ctp-surface1);
}

.journal-entries {
    padding: 20px;
}

.entry-form {
    background-color: var(--ctp-mantle);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.entry-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.entry-date, .entry-mood {
    background-color: var(--ctp-surface0);
    color: var(--ctp-text);
    border: 1px solid var(--ctp-surface2);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: inherit;
}

.entry-content {
    width: 100%;
    background-color: var(--ctp-surface0);
    color: var(--ctp-text);
    border: 1px solid var(--ctp-surface2);
    border-radius: 6px;
    padding: 15px;
    font-family: inherit;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.entry-content:focus {
    border-color: var(--ctp-mauve);
    box-shadow: 0 0 0 3px rgba(203, 166, 247, 0.3);
}

.entry-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.save-entry-btn, .clear-entry-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.save-entry-btn {
    background-color: var(--ctp-mauve);
    color: var(--ctp-crust);
    border: none;
}

.save-entry-btn:hover {
    background-color: var(--ctp-pink);
}

.clear-entry-btn {
    background-color: var(--ctp-surface1);
    color: var(--ctp-text);
    border: 1px solid var(--ctp-surface2);
}

.clear-entry-btn:hover {
    background-color: var(--ctp-surface2);
}

.journal-stats, .journal-prompts {
    background-color: var(--ctp-mantle);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.journal-stats h3, .journal-prompts h3 {
    margin-bottom: 1rem;
    color: var(--ctp-teal);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--ctp-surface1);
}

.stat-label {
    color: var(--ctp-subtext1);
}

.stat-value {
    color: var(--ctp-text);
    font-weight: bold;
}

.prompt-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prompt-item {
    background-color: var(--ctp-surface0);
    padding: 0.75rem;
    border-radius: 6px;
    color: var(--ctp-text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.prompt-item:hover {
    background-color: var(--ctp-surface1);
}

/* === END: Journal Page Styles === */

/* === START: Activities Page Styles === */
.activities-container {
    background-color: var(--ctp-base);
    border: 1px solid var(--ctp-surface1);
    border-radius: 8px;
    box-shadow: var(--shadow-main);
    overflow: hidden;
}

.activities-header {
    background-color: var(--ctp-surface0);
    padding: 15px 20px;
    border-bottom: 1px solid var(--ctp-surface1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activities-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--ctp-text);
}

.activity-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background-color: var(--ctp-surface1);
    color: var(--ctp-text);
    border: 1px solid var(--ctp-surface2);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--ctp-mauve);
    color: var(--ctp-crust);
    border-color: var(--ctp-mauve);
}

.activities-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.activity-card {
    background-color: var(--ctp-mantle);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--ctp-surface1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-main);
}

.activity-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.activity-card h3 {
    color: var(--ctp-text);
    margin-bottom: 8px;
}

.activity-card p {
    color: var(--ctp-subtext1);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.activity-duration {
    color: var(--ctp-teal);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.start-activity-btn {
    background-color: var(--ctp-mauve);
    color: var(--ctp-crust);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.start-activity-btn:hover {
    background-color: var(--ctp-pink);
}

.activity-progress, .activity-suggestions {
    background-color: var(--ctp-mantle);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.activity-progress h3, .activity-suggestions h3 {
    margin-bottom: 1rem;
    color: var(--ctp-teal);
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--ctp-surface1);
}

.progress-label {
    color: var(--ctp-subtext1);
}

.progress-value {
    color: var(--ctp-text);
    font-weight: bold;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suggestion-item {
    background-color: var(--ctp-surface0);
    padding: 0.75rem;
    border-radius: 6px;
    color: var(--ctp-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-icon {
    font-size: 1.1rem;
}

/* === END: Activities Page Styles === */

/* === START: Meditation Page Styles === */
.meditation-container {
    background-color: var(--ctp-base);
    border: 1px solid var(--ctp-surface1);
    border-radius: 8px;
    box-shadow: var(--shadow-main);
    overflow: hidden;
}

.meditation-header {
    background-color: var(--ctp-surface0);
    padding: 15px 20px;
    border-bottom: 1px solid var(--ctp-surface1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.meditation-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--ctp-text);
}

.meditation-controls {
    display: flex;
    gap: 10px;
}

.timer-btn, .sound-btn {
    background-color: var(--ctp-surface1);
    color: var(--ctp-text);
    border: 1px solid var(--ctp-surface2);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.timer-btn:hover, .sound-btn:hover {
    background-color: var(--ctp-surface2);
}

.meditation-session {
    padding: 30px 20px;
    text-align: center;
}

.meditation-player {
    max-width: 400px;
    margin: 0 auto;
}

.meditation-visualizer {
    margin-bottom: 30px;
}

.breathing-circle {
    width: 150px;
    height: 150px;
    border: 3px solid var(--ctp-mauve);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--ctp-mauve);
    transition: all 0.5s ease-in-out;
}

.breathing-circle.breathing-in {
    transform: scale(1.2);
    background-color: rgba(203, 166, 247, 0.1);
}

.breathing-circle.breathing-out {
    transform: scale(1);
}

.meditation-instruction {
    color: var(--ctp-subtext1);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.meditation-timer {
    margin-bottom: 30px;
}

.timer-display {
    font-size: 3rem;
    font-weight: bold;
    color: var(--ctp-text);
    display: block;
    margin-bottom: 15px;
}

.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.timer-preset {
    background-color: var(--ctp-surface1);
    color: var(--ctp-text);
    border: 1px solid var(--ctp-surface2);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.timer-preset:hover, .timer-preset.active {
    background-color: var(--ctp-mauve);
    color: var(--ctp-crust);
}

.meditation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.start-meditation-btn, .pause-meditation-btn, .stop-meditation-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.start-meditation-btn {
    background-color: var(--ctp-mauve);
    color: var(--ctp-crust);
    border: none;
}

.start-meditation-btn:hover {
    background-color: var(--ctp-pink);
}

.pause-meditation-btn {
    background-color: var(--ctp-yellow);
    color: var(--ctp-crust);
    border: none;
}

.pause-meditation-btn:hover {
    background-color: var(--ctp-peach);
}

.stop-meditation-btn {
    background-color: var(--ctp-red);
    color: var(--ctp-crust);
    border: none;
}

.stop-meditation-btn:hover {
    background-color: var(--ctp-maroon);
}

.meditation-sessions {
    padding: 20px;
    border-top: 1px solid var(--ctp-surface1);
}

.meditation-sessions h3 {
    color: var(--ctp-text);
    margin-bottom: 20px;
}

.session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.session-card {
    background-color: var(--ctp-mantle);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--ctp-surface1);
    text-align: center;
    transition: transform 0.2s;
}

.session-card:hover {
    transform: translateY(-2px);
}

.session-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.session-card h4 {
    color: var(--ctp-text);
    margin-bottom: 5px;
}

.session-card p {
    color: var(--ctp-subtext1);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.session-duration {
    color: var(--ctp-teal);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.play-session-btn {
    background-color: var(--ctp-mauve);
    color: var(--ctp-crust);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.play-session-btn:hover {
    background-color: var(--ctp-pink);
}

.meditation-stats, .meditation-tips {
    background-color: var(--ctp-mantle);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.meditation-stats h3, .meditation-tips h3 {
    margin-bottom: 1rem;
    color: var(--ctp-teal);
}

.tip-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tip-item {
    background-color: var(--ctp-surface0);
    padding: 0.75rem;
    border-radius: 6px;
    color: var(--ctp-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-icon {
    font-size: 1.1rem;
}

/* === END: Meditation Page Styles === */

/* === START: Exercise Page Styles === */
.exercise-container {
    background-color: var(--ctp-base);
    border: 1px solid var(--ctp-surface1);
    border-radius: 8px;
    box-shadow: var(--shadow-main);
    overflow: hidden;
}

.exercise-header {
    background-color: var(--ctp-surface0);
    padding: 15px 20px;
    border-bottom: 1px solid var(--ctp-surface1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exercise-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--ctp-text);
}

.exercise-filters {
    display: flex;
    gap: 8px;
}

.exercise-workouts {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.workout-card {
    background-color: var(--ctp-mantle);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--ctp-surface1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.workout-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-main);
}

.workout-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.workout-card h3 {
    color: var(--ctp-text);
    margin-bottom: 8px;
}

.workout-card p {
    color: var(--ctp-subtext1);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.workout-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.workout-duration, .workout-intensity {
    color: var(--ctp-teal);
    font-size: 0.85rem;
    background-color: var(--ctp-surface0);
    padding: 4px 8px;
    border-radius: 4px;
}

.start-workout-btn {
    background-color: var(--ctp-mauve);
    color: var(--ctp-crust);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.start-workout-btn:hover {
    background-color: var(--ctp-pink);
}

.exercise-tracker {
    padding: 20px;
    border-top: 1px solid var(--ctp-surface1);
}

.exercise-tracker h3 {
    color: var(--ctp-text);
    margin-bottom: 20px;
}

.activity-tracker {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tracker-item {
    background-color: var(--ctp-mantle);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--ctp-surface1);
}

.tracker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracker-label {
    color: var(--ctp-subtext1);
    font-size: 0.9rem;
}

.tracker-value {
    color: var(--ctp-text);
    font-weight: bold;
    font-size: 1.1rem;
}

.tracker-progress {
    flex-grow: 1;
    margin: 0 15px;
    height: 8px;
    background-color: var(--ctp-surface0);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--ctp-mauve);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.exercise-stats, .exercise-goals {
    background-color: var(--ctp-mantle);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.exercise-stats h3, .exercise-goals h3 {
    margin-bottom: 1rem;
    color: var(--ctp-teal);
}

.goal-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.goal-item {
    background-color: var(--ctp-surface0);
    padding: 0.75rem;
    border-radius: 6px;
    color: var(--ctp-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goal-icon {
    font-size: 1.1rem;
}

.goal-progress {
    flex-grow: 1;
    height: 4px;
    background-color: var(--ctp-surface1);
    border-radius: 2px;
    overflow: hidden;
    margin-left: 10px;
}

.goal-bar {
    height: 100%;
    background-color: var(--ctp-teal);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Workout Completion Overlay */
.workout-complete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

.workout-complete-card {
    background-color: var(--ctp-base);
    padding: 40px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--ctp-surface1);
    color: var(--ctp-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

.complete-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.workout-complete-card h2 {
    color: var(--ctp-text);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.workout-complete-card h3 {
    color: var(--ctp-mauve);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.complete-stats {
    background-color: var(--ctp-mantle);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--ctp-surface1);
}

.complete-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.complete-stats .stat-item:last-child {
    margin-bottom: 0;
}

.complete-stats .stat-label {
    color: var(--ctp-subtext1);
}

.complete-stats .stat-value {
    color: var(--ctp-text);
    font-weight: bold;
}

.complete-message {
    color: var(--ctp-subtext1);
    margin-bottom: 25px;
    font-size: 1rem;
}

.complete-btn {
    background-color: var(--ctp-mauve);
    color: var(--ctp-crust);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.complete-btn:hover {
    background-color: var(--ctp-pink);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* === END: Exercise Page Styles === */

/* === START: Resources Page Styles === */
.resources-container {
    background-color: var(--ctp-base);
    border: 1px solid var(--ctp-surface1);
    border-radius: 8px;
    box-shadow: var(--shadow-main);
    overflow: hidden;
}

.resources-header {
    background-color: var(--ctp-surface0);
    padding: 15px 20px;
    border-bottom: 1px solid var(--ctp-surface1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resources-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--ctp-text);
}

.resource-filters {
    display: flex;
    gap: 8px;
}

.resources-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.resource-card {
    background-color: var(--ctp-mantle);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--ctp-surface1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-main);
}

.resource-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.resource-card h3 {
    color: var(--ctp-text);
    margin-bottom: 8px;
}

.resource-card p {
    color: var(--ctp-subtext1);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resource-link {
    color: var(--ctp-blue);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color 0.2s;
}

.resource-link:hover {
    color: var(--ctp-mauve);
}

.resource-link.emergency {
    color: var(--ctp-red);
    font-weight: bold;
}

.resource-link.emergency:hover {
    color: var(--ctp-maroon);
}

.local-resources {
    padding: 20px;
    border-top: 1px solid var(--ctp-surface1);
}

.local-resources h3 {
    color: var(--ctp-text);
    margin-bottom: 15px;
}

.local-search {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.location-input {
    flex-grow: 1;
    background-color: var(--ctp-surface0);
    color: var(--ctp-text);
    border: 1px solid var(--ctp-surface2);
    border-radius: 6px;
    padding: 10px;
    font-family: inherit;
}

.search-btn {
    background-color: var(--ctp-mauve);
    color: var(--ctp-crust);
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: var(--ctp-pink);
}

.resource-stats, .quick-actions, .emergency-contacts {
    background-color: var(--ctp-mantle);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.resource-stats h3, .quick-actions h3, .emergency-contacts h3 {
    margin-bottom: 1rem;
    color: var(--ctp-teal);
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    background-color: var(--ctp-surface0);
    color: var(--ctp-text);
    border: 1px solid var(--ctp-surface2);
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.action-btn:hover {
    background-color: var(--ctp-surface1);
    border-color: var(--ctp-mauve);
}

.action-icon {
    font-size: 1.1rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    background-color: var(--ctp-surface0);
    padding: 0.75rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-item.emergency {
    background-color: rgba(243, 139, 168, 0.1);
    border: 1px solid var(--ctp-red);
}

.contact-label {
    color: var(--ctp-subtext1);
    font-size: 0.9rem;
}

.contact-number {
    color: var(--ctp-text);
    font-weight: bold;
}

.contact-item.emergency .contact-number {
    color: var(--ctp-red);
}

/* === END: Resources Page Styles === */

/* === START: Navigation Active State === */
.nav-item.active {
    color: var(--ctp-mauve);
    font-weight: bold;
}

/* === END: Navigation Active State === */
