﻿.calendar-button {
    position: relative;
    display: inline-block;
}

.calendar-popup {
    margin-top: 10px;
    background: rgb(43, 48, 53);
    border: 1px solid #212529;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 1000;
    display: none;
    min-width: 300px;
}

.calendar-popup.show {
    display: block;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
}

.calendar-header button:hover {
    background: rgb(43, 48, 53);
    border-radius: 4px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 8px;
    font-size: 12px;
    color: #666;
}

.calendar-day {
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.calendar-day:hover {
    background: #212529;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.empty:hover {
    background: none;
}

.calendar-day.today {
    background: none;
    border: 1px solid #666;
    font-weight: bold;
}

.calendar-day.selected {
    background: #0b5ed7;
    font-weight: bold;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 999;
    display: none;
}

.overlay.show {
    display: block;
}
