/**
 * Florazo Custom Date Picker
 * Beautiful date picker matching the theme design
 */

.florazo-custom-datepicker {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 30px;
    z-index: 999999;
    max-width: 480px;
    width: calc(100% - 40px);
    display: none;
    box-sizing: border-box;
}

.florazo-custom-datepicker.active {
    display: block;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.florazo-datepicker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    display: none;
}

.florazo-datepicker-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Header */
.florazo-datepicker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E8E8E8;
}

.florazo-datepicker-title {
    font-size: 18px;
    font-weight: 700;
    color: #2D2D2D;
    text-transform: uppercase;
}

.florazo-datepicker-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F0F0F0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #5A5A5A;
    font-size: 20px;
    line-height: 1;
}

.florazo-datepicker-close:hover {
    background: #E8E8E8;
    color: #2D2D2D;
}

/* Month Navigation */
.florazo-datepicker-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.florazo-datepicker-month {
    font-size: 16px;
    font-weight: 700;
    color: #2D2D2D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.florazo-datepicker-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F8F9FA;
    border: 2px solid #E8E8E8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #5A5A5A;
    font-size: 18px;
    font-weight: 700;
}

.florazo-datepicker-nav-btn:hover {
    background: #5FAF6F;
    border-color: #5FAF6F;
    color: #FFFFFF;
    transform: scale(1.1);
}

.florazo-datepicker-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.florazo-datepicker-nav-btn:disabled:hover {
    background: #F8F9FA;
    border-color: #E8E8E8;
    color: #5A5A5A;
}

/* Calendar Grid */
.florazo-datepicker-calendar {
    width: 100%;
}

.florazo-datepicker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.florazo-datepicker-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    padding: 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.florazo-datepicker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 5px;
}

.florazo-datepicker-day {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid transparent;
    background: #F0F9F3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #2D2D2D;
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
    padding: 0;
    max-width: 50px;
    max-height: 50px;
    margin: 0 auto;
}

.florazo-datepicker-day:hover {
    background: #E8F5E9;
    border-color: #5FAF6F;
    transform: scale(1.05);
}

.florazo-datepicker-day.disabled {
    opacity: 0.25;
    cursor: not-allowed;
    color: #CCC;
    background: #FAFAFA;
}

.florazo-datepicker-day.disabled:hover {
    background: #FAFAFA;
    border-color: transparent;
    transform: none;
}

.florazo-datepicker-day.other-month {
    opacity: 0.15;
    cursor: not-allowed;
    color: #DDD;
    background: #FAFAFA;
}

.florazo-datepicker-day.other-month:hover {
    background: #FAFAFA;
    border-color: transparent;
    transform: none;
}

.florazo-datepicker-day.selected {
    background: #5FAF6F;
    border-color: #5FAF6F;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(95, 175, 111, 0.3);
}

.florazo-datepicker-day.today {
    border-color: #5FAF6F;
    font-weight: 700;
}

.florazo-datepicker-day.today::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #5FAF6F;
}

.florazo-datepicker-day.selected.today::after {
    background: #FFFFFF;
}

.florazo-datepicker-day.today.disabled::after {
    background: #CCC;
}

/* Footer */
.florazo-datepicker-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #E8E8E8;
    display: flex;
    gap: 12px;
}

.florazo-datepicker-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.florazo-datepicker-btn-cancel {
    background: #F0F0F0;
    color: #5A5A5A;
}

.florazo-datepicker-btn-cancel:hover {
    background: #E0E0E0;
}

.florazo-datepicker-btn-confirm {
    background: #5FAF6F;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(95, 175, 111, 0.3);
}

.florazo-datepicker-btn-confirm:hover {
    background: #4A9A5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(95, 175, 111, 0.4);
}

.florazo-datepicker-btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .florazo-custom-datepicker {
        padding: 20px;
        max-width: calc(100% - 30px);
    }
    
    .florazo-datepicker-title {
        font-size: 15px;
    }
    
    .florazo-datepicker-month {
        font-size: 14px;
    }
    
    .florazo-datepicker-day {
        font-size: 13px;
        max-width: 40px;
        max-height: 40px;
    }
    
    .florazo-datepicker-weekday {
        font-size: 10px;
        padding: 8px 0;
    }
    
    .florazo-datepicker-days {
        gap: 5px;
    }
    
    .florazo-datepicker-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

