/* ============================= */
/* 🔹 드롭다운 스타일 */
/* ============================= */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-display {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    user-select: none;
    transition: none;
}

.dropdown-display:hover {
}

.dropdown-display:focus,
.custom-dropdown.active .dropdown-display {
    outline: none;
}

.dropdown-icon {
    font-size: 0.875rem;
    color: #666;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.dropdown-text {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    font-size: 0.875rem;
    color: #666;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

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

.dropdown-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 997;
    max-height: 18.75rem;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
}

.custom-dropdown.active .dropdown-options {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
    pointer-events: auto;
}

.dropdown-option {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #111;
    cursor: pointer;
    transition: background-color 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-option:hover {
    background-color: #f5f5f5;
}

.dropdown-option.selected {
    background-color: rgba(65, 105, 225, 0.1);
    color: #4169E1;
    font-weight: 500;
}

.dropdown-option-count {
    font-size: 0.8125rem;
    color: #999;
    margin-left: 0.5rem;
}

.dropdown-option.selected .dropdown-option-count {
    color: #4169E1;
}

/* 반응형 */
@media (max-width: 768px) {
    .dropdown-display {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .dropdown-option {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
}

