/* Dropdown Container */
.dropdown-container {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Main Dropdown */
.dropdown {
    display: flex;
    gap: 1rem;
    position: relative;
    background-color: rgba(var(--nav-bg-rgb), 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 2rem;
    border-radius: var(--radius-xxl);
    border: 1px solid var(--border-color);
}

.dropdown-toggle {
    padding: 10px 16px;
    width: 100px;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-xxl);
    user-select: none;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background-color: var(--input-border);
}

.arrow {
    border: solid var(--text-color);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: auto;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(var(--nav-bg-rgb), 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--secondary-text);
    border-radius: var(--radius-md);
    margin-top: 10px;
    min-width: 200px;
    z-index: 100;
    transform: translateZ(0); /* Force hardware acceleration */
}

.dropdown-menu.show {
    display: block;
}

.theme-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-item:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

/* Special case: first child */
.theme-item:first-child:hover {
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

/* Special case: last child */
.theme-item:last-child:hover {
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
}

.theme-ball {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

/* Theme ball colors remain the same as before */
.ball-dark {
    background: linear-gradient(45deg, #121212, #bb86fc);
}
.ball-light {
    background: linear-gradient(45deg, #ffffff, #f3f4f6);
}
.ball-nebula {
    background: linear-gradient(45deg, #7c3aed, #38bdf8);
}
.ball-cyberpunk {
    background: linear-gradient(45deg, #ff007a, #00e5ff);
}
.ball-purple {
    background: linear-gradient(45deg, #7c3aed, #a78bfa);
}
.ball-solarized {
    background: linear-gradient(45deg, #268bd2, #b58900);
}
.ball-ocean {
    background: linear-gradient(45deg, #0284c7, #06b6d4);
}
.ball-catppuccin {
    background: linear-gradient(45deg, #1e1e2e, #89b4fa);
}
.ball-evergreen {
    background: linear-gradient(45deg, #064e3b, #10b981);
}
.ball-vintage {
    background: linear-gradient(45deg, #4c1d95, #9333ea);
}
.ball-aurora {
    background: linear-gradient(45deg, #0f172a, #7dd3fc);
}
.ball-system {
    background: repeating-linear-gradient(45deg, #aaa, #ccc 5px);
}
