/* Base nice-select styling */
.nice-select {
    position: relative;
    display: block;
    width: 100%; /* Ensure the select occupies full width */
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

    .nice-select:after {
        content: '';
        position: absolute;
        top: 50%;
        right: 10px; /* Ensure icon is always on the right */
        width: 8px;
        height: 8px;
        border-right: 2px solid #666;
        border-bottom: 2px solid #666;
        transform: rotate(45deg) translateY(-50%);
        transition: transform 0.2s ease;
    }

    /* Rotate arrow icon when dropdown is open */
    .nice-select.open:after {
        transform: rotate(-135deg) translateY(-50%);
    }

    /* Hover and focus styles */
    .nice-select:hover,
    .nice-select:focus {
        border-color: #bbb;
        box-shadow: 0px 4px 8px rgba(99, 179, 237, 0.8);
    }

    /* Disabled styling */
    .nice-select.disabled {
        border-color: #ededed;
        color: #999;
        pointer-events: none;
    }

        .nice-select.disabled:after {
            border-color: #cccccc;
        }

    /* Dropdown list styles */
    .nice-select .list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%; /* Full-width dropdown */
        background-color: #fff;
        border: 1px solid #dbdbdb;
        border-radius: 4px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 10;
        margin: 0;
        padding: 0;
        max-height: 250px; /* Optional: Limit dropdown height */
        overflow-y: auto; /* Enable scrolling for large lists */
        opacity: 0;
        pointer-events: none;
        transform: scale(0.9) translateY(-10px);
        transition: all 0.2s ease;
    }

    /* Show dropdown list when open */
    .nice-select.open .list {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1) translateY(0);
    }

    /* Dropdown option styling */
    .nice-select .option {
        padding: 10px 15px;
        font-size: 14px;
        color: #333;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .nice-select .option:hover {
            background-color: #f6f6f6;
        }

        .nice-select .option.selected {
            font-weight: bold;
            background-color: #e6e6e6;
        }

        .nice-select .option.disabled {
            color: #999;
            cursor: not-allowed;
        }

    /* Wide select */
    .nice-select.wide {
        width: 100%;
    }

    /* Right-aligned dropdown */
    .nice-select.right .list {
        left: auto;
        right: 0;
    }
