﻿/* Calendar Container */
.ajax__calendar_container {
    padding: 12px;
    position: absolute;
    cursor: default;
    width: 100%;
    max-width: 320px;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #A7C5EB;
    background-color: #FFFFFF;
    color: #1A1A1A;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Calendar Body */
.ajax__calendar_body {
    width: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
}

/* Calendar Days Grid */
.ajax__calendar_days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

/* Day Cells */
.ajax__calendar_day {
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid transparent;
    background-color: #FFFFFF;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    user-select: none;
}

    .ajax__calendar_day:hover {
        background-color: #EAF1F9;
        border-color: #A7C5EB;
        color: #3361AD;
    }

/* Active Day */
.ajax__calendar_active .ajax__calendar_day {
    background-color: #4A90E2;
    color: #FFFFFF;
    font-weight: bold;
    border-color: #3C75C6;
}

/* Navigation Buttons */
.ajax__calendar_prev,
.ajax__calendar_next {
    width: 28px;
    height: 28px;
    border: 1px solid #CCD9E0;
    border-radius: 50%;
    background: linear-gradient(145deg, #F9FBFD, #EAF1F9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: #4A90E2;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .ajax__calendar_prev:hover,
    .ajax__calendar_next:hover {
        background: linear-gradient(145deg, #4A90E2, #3C75C6);
        color: #FFFFFF;
        transform: scale(1.1);
    }

/* Title (Month-Year) */
.ajax__calendar_title {
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    color: #2C3E50;
}

/* Footer */
.ajax__calendar_footer {
    padding: 6px;
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid #EAF1F9;
    background-color: #F9FBFD;
    border-radius: 0 0 8px 8px;
}

/* Responsive Adjustments */
@media (min-width: 1440px) {
    .ajax__calendar_container {
        font-size: 1rem;
        max-width: 360px;
    }

    .ajax__calendar_day {
        padding: 12px;
    }

    .ajax__calendar_prev,
    .ajax__calendar_next {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .ajax__calendar_container {
        max-width: 95%;
    }

    .ajax__calendar_day {
        padding: 8px;
        font-size: 0.8rem;
    }

    .ajax__calendar_prev,
    .ajax__calendar_next {
        width: 24px;
        height: 24px;
    }
}
