/* ===================================
   PREMIUM CUSTOM CALENDAR STYLES
   =================================== */

.premium-calendar {
    position: absolute;
    z-index: 1000;
    background: white;
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-top: 8px;
    min-width: 320px;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.premium-calendar.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Calendar Header */
.premium-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #FF6B00 0%, #FDB714 100%);
    border-radius: 16px;
    color: white;
}

.cal-month-year {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cal-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cal-nav-btn:active {
    transform: scale(0.95);
}

/* Weekdays */
.premium-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.cal-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
}

/* Days Grid */
.premium-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 0 4px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1f2937;
    position: relative;
}

.cal-day.empty {
    cursor: default;
    pointer-events: none;
}

.cal-day:not(.empty):not(.disabled):hover {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(253, 183, 20, 0.1) 100%);
    transform: scale(1.1);
}

.cal-day.today {
    color: #FF6B00;
    font-weight: 700;
}

.cal-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #FF6B00;
    border-radius: 50%;
}

.cal-day.selected {
    background: linear-gradient(135deg, #FF6B00 0%, #FDB714 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.cal-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .premium-calendar {
        min-width: 280px;
        padding: 16px;
    }

    .premium-calendar-header {
        padding: 12px 16px;
    }

    .cal-month-year {
        font-size: 16px;
    }

    .cal-day {
        font-size: 14px;
    }
}

/* Animation for date selection */
@keyframes selectDate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1.1);
    }
}

.cal-day.selected {
    animation: selectDate 0.3s ease;
}