:root {
    /* Base Colors */
    --bg-color: #050505;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent-gold: #D4AF37;
    --accent-glow: rgba(212, 175, 55, 0.3);

    /* Dynamic Theme Colors (Updated by JS) */
    --theme-primary: #D4AF37;
    --theme-secondary: #1a1a1a;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden;
    /* Prevent body scroll in dashboard mode */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
}

/* Backgrounds */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-image.active {
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.85) 100%);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

/* Layout - Dashboard Style */
.app-container {
    width: 100%;
    height: 100%;
    /* Further reduced max-width to allow beauty to shine */
    max-width: 1100px;
    /* Reduced from 1600/1200 */
    max-height: 96vh;
    /* Don't fill 100% height, float in center */
    display: flex;
    flex-direction: column;
    padding: var(--spacing-sm);
    /* Reduced padding */
    position: relative;
    z-index: 10;
    transition: transform 0.5s ease, opacity 0.5s ease;
    margin: auto;
    /* Center vertically/horizontally */
}

/* On mobile, remove height constraints and allow scroll */
@media (max-width: 900px) {
    .app-container {
        height: auto;
        min-height: 100vh;
        max-height: none;
        overflow-y: auto;
        padding: var(--spacing-md);
    }

    body {
        overflow-y: auto;
        /* Allow body scroll on mobile */
        height: auto;
        display: block;
        /* Normal flow */
    }
}

/* Immersive Mode Logic */
body.immersive-mode .glass-panel,
body.immersive-mode .header-line,
body.immersive-mode .footer {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
}

body.immersive-mode .overlay {
    opacity: 0.3;
    /* Cleaner view of bg */
}

/* Toggle View Button */
.view-toggle-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.view-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle-btn:hover {
    background: var(--theme-primary);
    color: #000;
}


/* Header */
.header {
    text-align: center;
    margin-bottom: var(--spacing-xs);
    width: 100%;
    position: relative;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* One-line header */
.header-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-line .year {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 400;
    background: linear-gradient(135deg, #f5e6a3 0%, #D4AF37 40%, #c9a033 60%, #f5e6a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
    letter-spacing: 3px;
    line-height: 1;
}

.header-line .subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    background: linear-gradient(135deg, #f5e6a3 0%, #D4AF37 40%, #c9a033 60%, #f5e6a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-transform: uppercase;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
    line-height: 1;
}

.header-dot {
    font-size: 1.8rem;
    color: rgba(212, 175, 55, 0.5);
    line-height: 1;
    user-select: none;
}

.top-bar {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    z-index: 20;
}

/* Mobile top bar positioning */
@media (max-width: 600px) {
    .top-bar {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-bottom: 10px;
        justify-content: center;
        width: 100%;
    }
}

.lang-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

.lang-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
    pointer-events: none;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 30px 6px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    outline: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.lang-select:hover,
.lang-select:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-select option {
    background-color: #222;
    color: #fff;
    padding: 10px;
}

.lang-wrapper::after {
    content: '▼';
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.icon-btn:hover {
    opacity: 1;
}

/* Personalization / Welcome */
.user-welcome {
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    .header-line {
        gap: 8px;
    }

    .header-line .year {
        font-size: 2rem;
    }

    .header-line .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
}

.user-name-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-main);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    width: 120px;
    padding: 2px 4px;
    outline: none;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f5e6a3 0%, #D4AF37 40%, #c9a033 60%, #f5e6a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-name-input::placeholder {
    -webkit-text-fill-color: rgba(212, 175, 55, 0.35);
    font-style: italic;
    font-size: 0.9rem;
}

.user-name-input:focus {
    border-bottom-color: var(--theme-primary);
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
}

.year {
    font-size: clamp(2rem, 4vw, 3.5rem);
    /* Reduced max size */
    background: linear-gradient(45deg, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    line-height: 1;
    filter: drop-shadow(0 0 20px var(--accent-glow));
    margin: 0;
}

.subtitle {
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Content Wrapper - Grid Layout */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Responsive Desktop Layout */
@media (min-width: 900px) {
    .content-wrapper {
        flex-direction: row;
        gap: var(--spacing-lg);
        /* Slightly more gap on desktop */
    }

    .calendar-wrapper {
        flex: 1;
        /* Equal width to side panel roughly */
        min-width: 0;
    }

    .side-panel-wrapper {
        flex: 1;
        min-width: 0;
    }
}

/* Mobile Wrapper settings */
@media (max-width: 900px) {
    .content-wrapper {
        overflow: visible;
        /* Allow external scroll */
        height: auto;
        flex: none;
        /* Don't stretch */
    }

    .calendar-wrapper,
    .side-panel-wrapper {
        height: auto;
        min-height: 400px;
        /* Give some height on mobile */
    }

    .calendar-grid-container {
        /* On mobile, let grid define height based on content */
        flex: none;
        height: auto;
    }

    .days-grid {
        /* Reset grid for mobile scrolling if needed, or keep compact */
        height: 300px;
        /* Fixed height for calendar on mobile */
    }
}

/* Side Panel Wrapper */
.side-panel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    overflow-y: auto;
    /* Allow scrolling if content doesn't fit */
    padding-right: 4px;
    /* Space for scrollbar */
}

/* Custom Scrollbar for side panel */
.side-panel-wrapper::-webkit-scrollbar {
    width: 4px;
}

.side-panel-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

@media (max-width: 900px) {
    .side-panel-wrapper {
        height: auto;
        overflow: visible;
    }
}

/* Glass Panel Base */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    /* Slightly tighter radius */
    padding: clamp(12px, 1.5vh, 24px);
    /* Very tight padding */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.glass-panel:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Calendar Specifics */
.calendar-wrapper {
    display: flex;
    flex-direction: column;
}

/* Journal Specifics */
.journal-wrapper {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
}

/* Horoscope Specifics */
.horoscope-wrapper {
    flex: 0 0 auto;
}

/* Navigation */
.month-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    /* Reduced margin */
    flex-shrink: 0;
}

.nav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: clamp(28px, 3vw, 40px);
    /* Smaller nav buttons */
    height: clamp(28px, 3vw, 40px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #000;
    box-shadow: 0 0 15px var(--theme-primary);
}

.month-indicator {
    text-align: center;
}

#month-name {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    /* Reduced size */
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.breed-badge {
    font-size: clamp(0.6rem, 0.8vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--theme-primary);
    border: 1px solid var(--theme-primary);
    padding: 2px 10px;
    border-radius: 16px;
    display: inline-block;
    background: rgba(0, 0, 0, 0.2);
}

/* Calendar Grid */
.calendar-grid-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: clamp(0.6rem, 0.8vw, 0.8rem);
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    /* Fixed 6 rows */
    gap: clamp(2px, 0.5vh, 6px);
    /* Minimal gap */
    flex: 1;
    height: 100%;
    min-height: 0;
}

.day {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.7rem, 1vw, 1rem);
    /* Smaller font */
    color: var(--text-main);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}

/* ... (Day states remain same) ... */
.day.empty {
    pointer-events: none;
}

.day.today {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid #fff;
    font-weight: bold;
}

.day.selected {
    transform: scale(1.1);
    background: #fff;
    color: var(--theme-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.day.happy-day {
    position: relative;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.day.happy-day::after {
    content: "★";
    position: absolute;
    top: -5px;
    right: -5px;
    color: #ffd700;
    font-size: 0.8rem;
}

.day.has-entry::before {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.8;
}

.day:hover:not(.empty):not(.today) {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.day.selected {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--theme-primary);
    transform: scale(1.1);
}

/* Lunar Phase */
.lunar-phase-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: clamp(0.6rem, 0.8vw, 0.8rem);
    flex-shrink: 0;
    margin-top: auto;
}

.lunar-icon {
    font-size: 1rem;
}

/* Legend */
.legend-container {
    margin-top: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.65rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.legend-star {
    font-size: 0.7rem;
    color: #D4AF37;
    text-shadow: 0 0 4px rgba(212, 175, 55, 0.6);
}

/* Dream Journal Styles */
.journal-title {
    font-size: clamp(0.9rem, 1.1vw, 1.3rem);
    margin-bottom: var(--spacing-xs);
    text-align: center;
    color: var(--theme-primary);
    flex-shrink: 0;
}

.journal-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--spacing-sm);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 0.9vw, 1rem);
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

#month-goal {
    height: 60px;
    /* Fixed small height for goal */
    flex-shrink: 0;
    margin-bottom: 10px;
}

#journal-entry {
    flex-grow: 1;
    min-height: 80px;
}

.journal-input:focus {
    border-color: var(--theme-primary);
    background: rgba(0, 0, 0, 0.3);
}

.journal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-sm);
    height: 16px;
    flex-shrink: 0;
}

.journal-info {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
}

.save-status {
    font-size: 0.65rem;
    color: var(--theme-primary);
    opacity: 0;
    transition: opacity 0.5s;
}

.save-status.visible {
    opacity: 0.8;
}

.export-container {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
    flex-shrink: 0;
    /* Important: prevents hiding */
}

.export-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
}

.export-btn:hover {
    background: var(--theme-primary);
    color: #000;
}

/* Daily Horoscope Panel Styles */
.horoscope-date-title {
    font-size: clamp(0.8rem, 0.9vw, 1rem);
    color: var(--text-muted);
    margin-bottom: 8px;
    text-align: center;
    flex-shrink: 0;
}

.horoscope-prediction {
    font-size: clamp(0.8rem, 0.9vw, 1rem);
    /* Even smaller */
    line-height: 1.5;
    margin-bottom: 10px;
    color: #fff;
    flex-grow: 1;
    overflow-y: auto;
}

.horoscope-zodiac-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--theme-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.horoscope-tip {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-style: italic;
    border-left: 2px solid var(--theme-primary);
    margin-top: auto;
    flex-shrink: 0;
}

/* Footer */
.footer {
    margin-top: auto;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    width: 100%;
    transition: opacity 0.5s ease;
    padding-bottom: 10px;
    flex-shrink: 0;
}

.privacy-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 5px;
}

.privacy-link:hover {
    color: var(--text-main);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #111;
    color: #ddd;
    width: 90%;
    max-width: 500px;
    padding: 24px;
    border-radius: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;

    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.close-modal:hover {
    opacity: 1;
}

.modal-body {
    margin-top: 15px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.modal-body ul {
    margin-left: 20px;
    margin-top: 10px;
}

.modal-footer {
    margin-top: 20px;
    text-align: right;
}

.modal-btn {
    background: var(--theme-primary);
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
}

.horoscope-input-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.date-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
}

select.date-input option {
    background-color: #222;
    color: #fff;
}

/* Footer Support Divider */
.footer-divider {
    opacity: 0.3;
    margin: 0 4px;
}

/* Support Modal Wallet Styles */
.support-wallets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 5px;
}

.wallet-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.3s ease;
}

.wallet-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.wallet-icon {
    font-size: 1.6rem;
    font-weight: bold;
    min-width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.wallet-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    word-break: break-all;
    line-height: 1.3;
    background: none;
    padding: 0;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--theme-primary);
    color: #000;
    border-color: var(--theme-primary);
}

.copy-btn.copied {
    background: #2ecc71;
    color: #000;
    border-color: #2ecc71;
}

.support-link {
    color: var(--theme-primary) !important;
    opacity: 0.8;
}

.support-link:hover {
    opacity: 1;
}

/* PRINT STYLES */
@media print {
    body {
        overflow: visible;
        height: auto;
    }

    body * {
        visibility: hidden;
    }

    #printable-area,
    #printable-area * {
        visibility: visible;
    }

    #printable-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
        color: black;
        padding: 40px;
        font-family: 'Times New Roman', Times, serif;
        display: block !important;
    }

    .print-header {
        text-align: center;
        margin-bottom: 40px;
        border-bottom: 2px solid #000;
        padding-bottom: 20px;
    }

    .print-title {
        font-size: 24pt;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .print-subtitle {
        font-size: 14pt;
        color: #555;
    }

    .print-month-entry {
        margin-bottom: 30px;
        page-break-inside: avoid;
    }

    .print-month-title {
        font-size: 16pt;
        font-weight: bold;
        margin-bottom: 10px;
        border-bottom: 1px solid #ccc;
    }

    .print-content {
        font-size: 12pt;
        line-height: 1.6;
        white-space: pre-wrap;
    }

    .print-footer {
        margin-top: 50px;
        text-align: center;
        font-size: 10pt;
        color: #888;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }
}
/* Mobile Visibility Fix */
@media (max-width: 768px) {
    .bg-image {
        background-position: center 30% !important;
    }
}
