body {
    background-color: var(--bs-body-bg);
    transition: background-color 0.3s ease;
    /* Espaço extra para não encostar na barra de cookies */
}

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

.day-header {
    text-align: center;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 5px 0;
    color: var(--bs-secondary);
}

.day-cell {
    position: relative;
    text-align: center;
    padding: 8px 0;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: var(--bs-body-color);
}

.day-cell:hover:not(.empty-cell) {
    background: var(--bs-tertiary-bg);
    cursor: pointer;
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.today {
    border-color: var(--bs-primary) !important;
    border-width: 2px;
    font-weight: bold;
}

.weekend {
    color: #dc3545;
}

.holiday {
    background-color: #ffeeba !important;
    color: red;
    font-weight: bold;
}

[data-bs-theme="dark"] .weekend {
    color: #ea868f;
}

[data-bs-theme="dark"] .holiday {
    background-color: #4d4013 !important;
    color: #ffda6a;
    border-color: #665615;
}

[data-bs-theme="dark"] .day-cell:hover:not(.empty-cell) {
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.05);
}

.has-note::after {
    content: '📌';
    position: absolute;
    top: -4px;
    right: -2px;
    font-size: 0.7rem;
}

.empty-cell {
    background: transparent !important;
    border: none !important;
}

.month-title {
    letter-spacing: 1px;
}

/* Barra de Cookies reescrita com CSS nativo para evitar bugs do Bootstrap */
#cookie-banner {
    display: none;
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] #cookie-banner {
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
}