/* Shared Custom Dropdown Component Styles */

.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-wrapper select {
    display: none !important;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 16px;
    height: 36px;
    color: #1f1f1f;
    background: #ffffff;
    cursor: pointer;
    border: none;
    border-radius: 32px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.05);
    gap: 8px;
}

.dark .custom-select-trigger {
    background: #252525;
    color: #e3e3e3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.custom-select-trigger:hover {
    background: #f8f9fa;
}

.dark .custom-select-trigger:hover,
.dark .open .custom-select-trigger {
    background: #343538;
}

.custom-select.open .custom-select-trigger {
    border-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #f8f9fa;
}

.dark .custom-select.open .custom-select-trigger {
    background: #282a2c;
}

.custom-select-trigger .arrow {
    display: flex;
    align-items: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #444746 !important;
    margin: 0;
}

.dark .custom-select-trigger .arrow {
    color: #c4c7c5 !important;
}

.custom-select.open .custom-select-trigger .arrow {
    transform: rotate(180deg);
}

.custom-options {
    position: fixed;
    display: block;
    width: auto;
    max-width: calc(100vw - 32px);
    border: none;
    background: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.95);
    transform-origin: top;
    border-radius: 0 0 20px 20px;
    z-index: 2500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.custom-options.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.custom-options.open-top {
    transform: translateY(8px) scale(0.95);
    transform-origin: bottom;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.custom-options.open-top.show {
    transform: translateY(0) scale(1);
}

.custom-select.align-right .custom-options {
    left: auto;
    right: 0;
}

.custom-options-inner {
    max-height: 70vh;
    overflow-y: auto;
    padding: 4px 8px;
}

.dark .custom-options {
    background: #282a2c;
}

.custom-group-label {
    padding: 5px 20px 0 7px;
    font-size: 14px;
    font-weight: 600;
    color: #5f6368;
    letter-spacing: 0.2px;
}

.dark .custom-group-label {
    color: #787878;
}

.custom-option {
    position: relative;
    display: block;
    padding: 4px 12px;
    margin: 2px 0;
    font-size: 13px;
    font-weight: 400;
    color: #1f1f1f;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 24px;
    white-space: nowrap;
}

.dark .custom-option {
    color: #e3e3e3;
}

.custom-option.selected {
    background: #e8f0fe;
    color: #1a73e8;
}

.dark .custom-option.selected {
    background: #323232;
    color: white;
}

.custom-option:hover {
    background: #f1f3f4;
}

.dark .custom-option:hover {
    background: #3c4043;
}

/* Custom Select Open Top Support */
.custom-select.open-top .custom-select-trigger {
    border-radius: 20px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.current-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}
