/* Modern Date Picker Styles */

.date-picker-wrapper {
    position: relative;
    width: 100%;
}

.date-picker-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.3s ease;
}

.date-picker-input:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}

.date-picker-input::placeholder {
    color: #94a3b8;
}

.date-picker-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 320px;
    display: none;
    animation: fadeInDown 0.3s ease;
}

.date-picker-popup.active {
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.date-picker-month-year {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    text-transform: capitalize;
}

.date-picker-month-year-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-picker-month-select,
.date-picker-year-select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 120px;
}

.date-picker-month-select:hover,
.date-picker-year-select:hover {
    border-color: #ff6600;
}

.date-picker-month-select:focus,
.date-picker-year-select:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.date-picker-nav-btn {
    background: #f8f9fa;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #64748b;
}

.date-picker-nav-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

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

.date-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.date-picker-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    padding: 8px 0;
}

.date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.date-picker-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease;
    position: relative;
}

.date-picker-day:hover:not(.disabled):not(.selected) {
    background: #f1f5f9;
    color: #1e293b;
}

.date-picker-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.date-picker-day.other-month {
    color: #cbd5e1;
}

.date-picker-day.today {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
}

.date-picker-day.selected {
    background: #ff6600;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.date-picker-day.selected:hover {
    background: #ff8533;
}

.date-picker-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.date-picker-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.date-picker-btn-clear {
    background: #f1f5f9;
    color: #64748b;
}

.date-picker-btn-clear:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.date-picker-btn-apply {
    background: #ff6600;
    color: #ffffff;
}

.date-picker-btn-apply:hover {
    background: #ff8533;
}

.date-picker-btn-apply:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 480px) {
    .date-picker-popup {
        min-width: 280px;
        padding: 15px;
    }
    
    .date-picker-day {
        font-size: 12px;
    }
    
    .date-picker-month-year {
        font-size: 16px;
    }
}

