.smart-date-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.smart-date-select {
    max-width: 200px;
    background-color: #ffffff;
}

.smart-date-select .MuiOutlinedInput-input {
    padding: 10px 14px !important;
    font-size: 14px;
}

.selected-date-display {
    padding: 8px 14px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
    max-width: 350px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Date Picker Modal Styles */
.custom-date-picker-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1400;
    padding: 30px;
    padding-top: 30px !important;
    border-radius: 8px;
    width: 390px;
    height: auto;
    max-height: 100vh;
    min-height: 65vh;
    overflow-y: hidden;
    background-color: white;
    border: 2px solid #545454;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

/* Ensure date picker styles are properly scoped */
.custom-date-picker-modal .rdrCalendarWrapper {
    border: solid 1px #8b8b8b;  
    box-shadow: none;
    padding-top: 30px;
}

.custom-date-picker-modal .action-buttons-date-picker {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.custom-date-picker-modal .button {
    padding: 8px 20px;
    background-color: #007bff;
    color: white;
    height: 30px !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.custom-date-picker-modal .button:hover {
    background-color: #0056b3;
}

.custom-date-picker-modal .btn2 {
    padding: 8px 20px;
    height: 30px !important;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.custom-date-picker-modal .btn2:hover {
    background-color: #5a6268;
}

/* Responsive styles */
@media (max-width: 768px) {
    .smart-date-selector-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .smart-date-select {
        max-width: 100%;
        width: 100%;
    }

    .selected-date-display {
        width: 100%;
        text-overflow: clip;
        white-space: normal;
    }

    .custom-date-picker-modal {
        width: 90%;
        max-width: 500px;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .custom-date-picker-modal {
        width: 95%;
        max-width: 100%;
        padding: 15px;
    }

    .custom-date-picker-modal .rdrCalendarWrapper {
        transform: scale(0.85);
        transform-origin: top left;
    }
}