/* Calibration 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;
}

.reset-nav-btn {
    color: #030870 !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; /* Reduced padding */
    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; /* Smaller title */
    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; /* Smaller day names */
    font-weight: 700;
    color: #cbd5e0;
}

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

/* 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; /* KEEP READABLE */
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    position: relative;
}

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

.day-has-events::after {
    display: none; /* Hide dots to save visual vertical noise */
}

.day-severity-expired { background-color: #fee2e2; color: #b91c1c !important; }
.day-severity-warning { background-color: #fef3c7; color: #92400e !important; }
.day-severity-normal { background-color: #d1fae5; color: #065f46 !important; }

.day-today {
    background-color: #030870 !important;
    color: white !important;
}

.day-selected {
    outline: 2px solid #030870;
    outline-offset: -2px;
}

/* 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: #030870;
    color: white;
    border-radius: 50%;
    border: 1px solid white;
}

.calendar-reset-btn {
    margin-top: 0.5rem;
    width: 100%;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.4rem;
    border-radius: 10px;
    background: white;
    border: 1px solid #E2E8F0;
    color: #E53E3E;
    text-transform: uppercase;
    cursor: pointer;
}