/* =====================================================
   CUSTOM DROPDOWN — Modern
===================================================== */

.custom-select {
    position: relative;
    width: 100%;
    min-width: 140px;
    z-index: 20;
    font-family: inherit;
}

.custom-select.open { z-index: 1000; }

/* -------- TRIGGER -------- */
.custom-select-trigger {
    width: 100%;
    height: 36px;
    padding: 0 10px 0 12px;
    border: 1px solid #d0dbe2;
    border-radius: 8px;
    background: #ffffff;
    color: #012531;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.custom-select-trigger:hover {
    border-color: #961652;
    background: #fdfafc;
}

.custom-select.open .custom-select-trigger {
    border-color: #961652;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(150, 22, 82, 0.10);
}

.custom-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.custom-select-value.placeholder { color: #9fb8c4; }

.custom-select-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a8a94;
    transition: transform 0.2s ease, color 0.15s ease;
}

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

.custom-select-arrow svg { display: block; }

/* -------- MENU -------- */
.custom-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    min-width: 100%;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #d0dbe2;
    border-radius: 10px;
    box-shadow: 0 12px 32px -8px rgba(1, 37, 49, 0.18),
                0 4px 10px -4px rgba(1, 37, 49, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
}

.custom-select.open .custom-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* -------- OPTION -------- */
.custom-select-option {
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #012531;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.12s ease, color 0.12s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-option:hover {
    background: #f5eef2;
    color: #961652;
}

.custom-select-option.active {
    background: #961652;
    color: #ffffff;
    font-weight: 600;
}

.custom-select-option.active:hover { background: #7a1042; }

/* -------- SCROLLBAR -------- */
.custom-select-menu::-webkit-scrollbar { width: 6px; }
.custom-select-menu::-webkit-scrollbar-track { background: transparent; }
.custom-select-menu::-webkit-scrollbar-thumb {
    background: #d0dbe2;
    border-radius: 10px;
}
.custom-select-menu::-webkit-scrollbar-thumb:hover { background: #961652; }

/* -------- VARIANTS -------- */
.custom-select.small .custom-select-trigger { height: 32px; font-size: 11px; }
.custom-select.large .custom-select-trigger { height: 40px; font-size: 13px; }

/* -------- DARK (di dalam card gelap) -------- */
.custom-select.dark .custom-select-trigger {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.custom-select.dark .custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.30);
}
.custom-select.dark.open .custom-select-trigger {
    background: rgba(255, 255, 255, 0.10);
    border-color: #961652;
}
.custom-select.dark .custom-select-arrow { color: rgba(255, 255, 255, 0.6); }
.custom-select.dark.open .custom-select-arrow { color: #e4bc36; }