.custom-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 12px;
    justify-self: center;
    align-self: center;
    margin-top: 15px;
}

.custom-dropdown-toggle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    user-select: none;
    transition: background 0.18s ease, transform 0.18s ease;
    margin: 0;
    font-family: Roboto, sans-serif;
    font-size: 16pt;
    font-weight: 400;
    color: var(--dark-green);
}

.custom-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
}

.custom-dropdown-toggle h3 {
    margin: 0;
    font-family: Roboto, sans-serif;
    font-size: 16pt;
    font-weight: 400;
    color: var(--dark-green);
}

.custom-dropdown-menu {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    padding: 0 0 10px 0;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
    z-index: 1000;
    height: max-content;
    max-height: 300px;
    overflow-y: scroll;
}

.custom-dropdown-menu-search {
    width: 90%;
    margin: auto;
    border-radius: var(--common-border-radius);
    border: 1px solid var(--middle-green);
    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.75);
    font-size: 18pt;
    font-weight: 400;
    color: var(--middle-green);
    padding: 10px;
}

.custom-dropdown:hover .custom-dropdown-menu,
.custom-dropdown:focus-within .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.custom-dropdown-option {
    margin: 0;
    padding: 14px 22px;
    font-family: Roboto, sans-serif;
    font-size: 14pt;
    color: var(--dark-green);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.custom-dropdown-option:hover {
    background: rgba(120, 160, 120, 0.12);
    color: var(--middle-green);
}

.custom-dropdown.dropdown-closed .custom-dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(10px) !important;
}
