/* Date Picker Styles */
.calendar-button {
    background-color: #757a8c;
    border: 2px solid #757a8c;
    border-radius: 7px;
    color: #f0f0f1;
    cursor: pointer;
    font-size: 13px;
    margin-top: 1rem;
    padding: 0px 13px;
    height: auto;
    line-height: 33px;
    vertical-align: middle;
}

.calendar-button:hover {
    background-color: #f6f7f7;
    border-color: #757a8c;
    color: #2c3338;
}

.calendar-button:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

.calendar-popup {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 13px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    padding: 10px;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

.calendar-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.calendar-title {
    font-weight: bold;
    text-align: center;
}

.prev-month,
.next-month {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 10px;
}

.prev-month:hover,
.next-month:hover {
    color: #2271b1;
}

.prev-month:focus,
.next-month:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

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

.calendar-cell {
    align-items: center;
    background: none;
    border: 1px solid transparent;
    display: flex;
    height: 35px;
    justify-content: center;
    padding: 5px;
    text-align: center;
    width: 35px;
}

.calendar-cell.header {
    font-weight: bold;
    background-color: #f0f0f1;
}

button.calendar-cell {
    cursor: pointer;
}

button.calendar-cell:hover {
    background-color: #f0f0f1;
    border-color: #2271b1;
}

button.calendar-cell:focus {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

.calendar-cell.selected {
    background-color: #2271b1;
    color: white;
}

.calendar-cell.empty {
    background: none;
    border: none;
}

/* Mobile Optimization */
@media screen and (max-width: 480px) {
    .calendar-popup {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
        width: 90%;
    }
}
