/* ================================================
   Custom Dropdown Styles
   ================================================ */

.custom-dropdown-container {
    background: #2D3748;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.custom-dropdown-container:hover {
    background: #353F54;
    border-color: #4A5568;
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1A202C;
    /* Darker background for menu */
    border: 1px solid #4A5568;
    border-radius: 8px;
    margin-top: 8px;
    z-index: 50;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-dropdown-menu.drop-up {
    animation: fadeInDropUp 0.2s ease-out;
}

@keyframes fadeInDropUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ratio-option {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #E2E8F0;
    transition: background 0.2s;
    border: 1px solid transparent;
    /* Prevent layout shift on hover border */
    margin-bottom: 2px;
}

.ratio-option:hover {
    background: #2D3748;
}

.ratio-option.selected {
    background: rgba(210, 248, 0, 0.1);
    /* D2F800 with opacity */
    border-color: rgba(210, 248, 0, 0.3);
}

.ratio-preview {
    transition: all 0.2s ease;
}

/* Custom Scrollbar for dropdown */
.custom-dropdown-menu div::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-menu div::-webkit-scrollbar-track {
    background: #1A202C;
}

.custom-dropdown-menu div::-webkit-scrollbar-thumb {
    background: #4A5568;
    border-radius: 3px;
}

.custom-dropdown-menu div::-webkit-scrollbar-thumb:hover {
    background: #718096;
}