/* Birthday Calendar Styles - Compact Sidebar Edition */

.calendar-strip {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem; 
    position: relative;
    width: 100%;
}

.calendar-nav-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.25rem;
}

.calendar-nav-btn {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: #f8fafc;
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.reset-nav-btn {
    color: var(--bs-primary) !important;
    background: #f1f5f9 !important;
    font-weight: bold;
    border-color: #cbd5e0 !important;
}

.reset-nav-btn:hover {
    background: #e2e8f0 !important;
}

.calendar-months-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

/* COMPACT MONTH CARDS */
.calendar-month-panel {
    background: white;
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
}

.calendar-month-title {
    text-align: center;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f8fafc;
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 0.25rem;
}

.grid-day-name {
    text-align: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: #cbd5e0;
}

.calendar-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* COMPACT GRID CELLS */
.grid-day, .grid-day-empty {
    aspect-ratio: 1 / 1;
    width: 100%;
    min-width: 24px;
    max-width: 28px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a5568;
    position: relative;
}

.grid-day {
    cursor: default;
}

.grid-day:hover {
    background-color: #f7fafc;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.day-has-events {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary) !important;
    cursor: help;
}

.day-today {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

/* COMPACT BUBBLE */
.day-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.45rem;
    min-width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    border: 1px solid white;
}

/* Calendar Dark Theme Overrides */
html[data-bs-theme="dark"] .calendar-month-panel {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-table-border-color, #333);
}
html[data-bs-theme="dark"] .calendar-nav-btn {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-table-border-color, #333);
    color: #cbd5e0;
}
html[data-bs-theme="dark"] .calendar-nav-btn:hover {
    background-color: var(--bs-secondary-bg);
}
html[data-bs-theme="dark"] .reset-nav-btn {
    background-color: var(--bs-secondary-bg) !important;
    color: var(--bs-primary) !important;
}
html[data-bs-theme="dark"] .calendar-month-title {
    color: #e0e0e0;
    border-bottom-color: var(--bs-table-border-color, #333);
}
html[data-bs-theme="dark"] .grid-day {
    color: #a0aec0;
}
html[data-bs-theme="dark"] .grid-day:hover {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px #4a5568;
}
html[data-bs-theme="dark"] .day-has-events {
    background-color: rgba(var(--bs-primary-rgb), 0.2);
}
html[data-bs-theme="dark"] .day-badge {
    border-color: var(--bs-tertiary-bg);
}
