﻿input[type=search] {
    padding-left: 2rem;
    background-position: .5rem center;
    background-image: url(../Images/download.svg);
    background-repeat: no-repeat;
    background-size: 1em;
}

.cui-input_stroked {
    border: 2px solid #c8d5d7;
}

.cui-input {
    position: relative;
    vertical-align: middle;
    box-sizing: border-box;
    width: 100%;
    padding: .5rem .85rem;
    background-color: #fff;
    background-clip: padding-box;
    /*   border: 2px solid rgba(0, 0, 0, 0); */
    border-radius: .25rem;
    outline: none;
    color: #626464;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.cui-autocomplete-parent {
    position: relative; /* Makes the autocomplete-results position relative to this container */
    width: 50%; /* Ensures the container is the same width as the input */
    margin: 0 auto; /* Centers the parent container */
}

#autocomplete-results {
    position: absolute; /* Position it directly below the input box */
    top: 100%; /* Align the top of the results to the bottom of the input box */
    left: 0; /* Align the left side with the input */
    width: 100%; /* Match the width of the input box */
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 0 0 4px 4px; /* Smooth edges at the bottom */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Adds a shadow for better visibility */
}

button, input, optgroup, select, textarea {
    font-family: inherit;
}

*, *:before, *:after {
    box-sizing: border-box;
}

.District {
    display: block; /* Make the link a block element */
    text-align: center; /* Center-align text */
    color: black; /* Text color */
    text-decoration: none; /* Remove underlines */
    font-size: 16px; /* Font size */
    font-weight: bold; /* Bold text */
    padding: 5px; /* Space inside the button */
    margin: -8px auto; /* Add spacing between items and center-align */
    width: 50%; /* Set a fixed width for uniformity */
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 8px; /* Rounded corners */
    background-color: #f8f9fa; /* Light gray background */
    transition: all 0.3s ease; /* Smooth transition for hover effect */
}

    /* Hover effect for district links */
    .District:hover {
        background-color: #e9ecef; /* Slightly darker background on hover */
        border-color: #007bff; /* Highlight border with blue */
        color: #007bff; /* Change text color to blue */
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Subtle shadow effect */
    }

    /* Focused link (clicked or tab-focused) */
    .District:focus {
        outline: none; /* Remove the default browser outline */
        border-color: #007bff; /* Highlight border */
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.75); /* Stronger shadow */
    }


.list-group-item {
    background-color: #ffffff;
    border: 1px solid #ddd;
}

    .list-group-item h5 {
        color: #0275d8;
    }

    .list-group-item p {
        color: #666;
    }

.badge {
    background-color: #f0ad4e;
    color: #ffffff;
}

.text-secondary {
    color: #6c757d !important;
}

.tabs-container {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-wrap: wrap; /* Allow wrapping of tabs on smaller screens */
}

.tab {
    flex: 1;
    border: 1px solid #00a651;
    border-radius: 8px;
    border-top: 5px solid #00a651;
    padding: 10px;
    margin: 0 10px;
    text-align: center;
    background-color: white;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

    .tab:hover {
        background-color: white;
        transform: scale(1.02);
    }

    .tab h3 {
        color: black;
        font-size: 1em;
        text-decoration: none;
    }

    .tab p {
        color: #333;
        font-size: 0.9em;
        margin-bottom: 15px;
        text-decoration: none;
    }

/* Give the "Other Roles" tab more width */
.dropdown-tab {
    display: inline-block;
    width: 100%; /* Ensure the dropdown tab fills the width */
    position: relative; /* Add relative position to manage z-index */
    z-index: 9999; /* Ensure this container is on top of other content */
}

    .dropdown-tab select {
        padding: 8px;
        width: 70%; /* Make the select element take up full width */
        border-radius: 4px;
        border: 1px solid #ccc;
    }

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .tabs-container {
        flex-direction: column; /* Stack the tabs vertically on small screens */
        align-items: stretch; /* Make the tabs fill the width */
    }

    .tab {
        margin: 10px 0; /* Adjust margins for stacked tabs */
        flex: none; /* Remove flex behavior so each tab has equal width */
    }

    /*.dropdown-tab select {
        width: 100%;*/ /* Make the select element take up full width */
    /*}*/
}
/* Limit dropdown width and ensure it stays within bounds */
/* Parent container to prevent overflow */
.dropdown-container {
    position: relative; /* Ensure dropdown aligns within its container */
    width: 100%; /* Full container width */
    overflow: hidden; /* Prevent dropdown options from overflowing */
}

/* Dropdown styling for general use */
#dropdown {
    width: 100%; /* Full width */
    padding: 12px;
    font-size: 1em;
    border-radius: 15px;
    border: 1px solid #ccc;
    background-color: white;
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box; /* Include padding in width */
    margin: 0 auto;
    position: relative;
    z-index: 1000; /* Ensure dropdown appears above other elements */
}

    /* Dropdown options */
    #dropdown option {
        white-space: nowrap; /* Prevent text wrapping */
        overflow: hidden; /* Hide overflowing text */
        text-overflow: ellipsis; /* Show ellipsis for truncated text */
    }

/* Mobile-specific adjustments for screens up to 480px */
@media (max-width: 480px) {
    select#dropdown {
        width: 100%; /* Full width for mobile */
        font-size: 0.9em; /* Adjust font size for smaller screens */
        padding: 10px; /* Adjust padding for touch devices */
        border-radius: 10px; /* Reduce border radius */
        overflow: hidden; /* Prevent dropdown from spilling */
        overflow-y: auto; /* Enable vertical scrolling */
        max-height: 150px; /* Limit dropdown height */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
    }
}
.custom-dropdown {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin-bottom: 20px;
}

.selected-option {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
    text-align: left;
    font-family: verdana, geneva, sans-serif;
    position: relative;
    display: flex;
    align-items: center;
}

.arrow {
    font-size: 16px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 99999; /* Ensure the options are above other content */
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
}

.option {
    padding: 10px;
    cursor: pointer;
    font-family: verdana, geneva, sans-serif;
}

    .option:hover {
        background-color: #f1f1f1;
    }

@media (max-width: 480px) {
    .selected-option {
        font-size: 14px;
        width: 100%;
    }

    .options {
        width: 100%;
        max-width: 100%;
    }

    .option {
        font-size: 14px;
    }

    .arrow {
        font-size: 14px;
    }
}

@media (min-width: 481px) {
    .options {
        min-width: 200px;
        width: auto;
        max-width: 400px;
    }

    .arrow {
        font-size: 18px;
    }
}