:root {
    /* 
 * Theme: Classic
 * Description: A traditional serif theme evoking the feel of printed agendas.
 */
    --bg-color: #f0f0f0;
    --card-bg: #fff;
    --text-primary: #111;
    --text-secondary: #444;
    --accent: #8b0000;
    /* Dark Red */
    --accent-hover: #500000;
    --border-color: #999;
    --day-hover-bg: #e0e0e0;
    --today-bg: #8b0000;
    --today-text: #fff;

    --font-family: 'Georgia', 'Times New Roman', serif;
}

/* Body fixed. Theme is component-based. */
.app-container {
    color: var(--text-primary);
    font-family: var(--font-family);
}

.app-header {
    background: var(--card-bg);
    border-bottom: 3px double var(--border-color);
    padding-bottom: calc(1.25rem - 3px);
}

/* Scoped to grid to protect header */
.year-grid input,
.year-grid select {
    border: 1px solid #8b0000;
    color: #590000;
    background: #fff8dc;
    padding: 5px;
    font-family: 'Georgia', serif;
}

.month-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.month-title {
    font-size: 1.5rem;
    font-weight: normal;
    font-style: italic;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.weekday-header {
    font-weight: bold;
    font-style: italic;
    border-bottom: 1px solid #ccc;
}

.day {
    font-size: 1rem;
}

.day.today {
    border: 1px solid var(--accent);
}

@media print {
    :root {
        --bg-color: #fff;
    }

    .month-card {
        border: 1px solid #000;
        box-shadow: none;
    }
}