/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    margin-bottom: 16px;
}

.custom-dropdown-button {
    width: 100%;
    text-align: left;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    transition: all 0.2s ease;
}

.custom-dropdown-button.empty {
    color: #6B7280;
}

.custom-dropdown-button.open {
    box-shadow: 4px 0px 0px #000, -4px 0px 0px #000, 0px -4px 0px #000 !important;
    border-bottom: none !important;
    padding-bottom: calc(0.75rem + 4px);
}

.custom-dropdown-panel {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    right: 0;
    background: white;
    border: 4px solid #000;
    border-top: none;
    box-shadow: 8px 8px 0px #000;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease;
    opacity: 0;
}

.custom-dropdown-panel.open {
    max-height: 350px;
    overflow: visible;
    opacity: 1;
}

.custom-dropdown-search {
    padding: 12px;
    border-bottom: 3px solid #000;
    background: white;
}

.custom-dropdown-search input {
    border: 2px solid #000 !important;
    box-shadow: 3px 3px 0px #000 !important;
    padding: 8px 12px !important;
    font-weight: 700;
    transition: all 0.2s ease;
}

.custom-dropdown-search input:focus {
    outline: none;
    box-shadow: 4px 4px 0px #000 !important;
    border-color: #4F46E5 !important;
}

.custom-dropdown-list {
    max-height: 240px;
    overflow-y: auto;
    background: white;
}

.custom-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 2px solid #e5e7eb;
    transition: all 0.15s ease;
    font-weight: 700;
    background: white;
}

.custom-dropdown-item:hover {
    background: #FEF08A;
    transform: translateX(4px);
}

.custom-dropdown-item:active {
    background: #FDE047;
}

.custom-dropdown-item:last-child {
    border-bottom: none;
}

.custom-dropdown-item.selected {
    background: #DBEAFE;
    border-left: 6px solid #3B82F6;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-weight: 900;
    font-size: 16px;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.custom-dropdown + input,
.custom-dropdown + .grid {
    margin-top: 12px;
}
