/* Generic Dropdown Styles */
.dropdown-select {
    position: relative;
    width: 100%;
    border: 2px solid #007BFF;
    border-radius: 5px;
    background-color: #E1E8EE;
    cursor: pointer;
    margin-bottom: 12px;
    height: 50px;
    transition: all 0.2s ease;
}

.dropdown-select:hover {
    background-color: #D0DDEE;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

/* Selected Display */
.dropdown-selected {
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #333;
    font-size: 16px;
    height: 100%;
    transition: all 0.2s ease;
    gap: 12px;
}

/* Dropdown Container */
.dropdown-items {
    position: absolute;
    top: 100%;
    left: -2px;
    right: -2px;
    z-index: 99;
    border: 2px solid #007BFF;
    border-top: none;
    background: #E1E8EE;
    display: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

/* Scrollbar Styles */
.dropdown-items::-webkit-scrollbar {
    width: 8px;
}

.dropdown-items::-webkit-scrollbar-track {
    background: #E1E8EE;
    border-bottom-right-radius: 5px;
}

.dropdown-items::-webkit-scrollbar-thumb {
    background-color: #007BFF;
    border-radius: 20px;
    border: 2px solid #E1E8EE;
}

.dropdown-items::-webkit-scrollbar-thumb:hover {
    background-color: #0056b3;
}

/* Individual Options */
.dropdown-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    font-size: 16px;
    height: 50px;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
    gap: 12px;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: #D0DDEE;
}

/* Dropdown Arrow */
.dropdown-arrow {
    margin-left: auto;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #007BFF;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* Play/Pause Button (only used in voice dropdown) */
.voice-play-pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    z-index: 2;
}

.voice-play-pause::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #007BFF;
}

.voice-play-pause.play::before {
    clip-path: path('M 20,12 C 20,12.5 19.8,13 19.5,13.3 L 4,21 C 3.3,21.4 2.5,21.2 2.2,20.5 C 2.1,20.3 2,20.2 2,20 L 2,4 C 2,3.2 2.6,2.6 3.4,2.6 C 3.6,2.6 3.8,2.7 4,2.8 L 19.5,10.7 C 19.8,11 20,11.5 20,12');
}

.voice-play-pause.pause::before {
    clip-path: path('M 6,4 C 6,4 8,4 8,4 C 9,4 10,5 10,6 L 10,18 C 10,19 9,20 8,20 L 6,20 C 5,20 4,19 4,18 L 4,6 C 4,5 5,4 6,4 Z M 14,4 C 14,4 16,4 16,4 C 17,4 18,5 18,6 L 18,18 C 18,19 17,20 16,20 L 14,20 C 13,20 12,19 12,18 L 12,6 C 12,5 13,4 14,4 Z');
}

/* Firefox scrollbar styles */
.dropdown-items {
    scrollbar-width: thin;
    scrollbar-color: #007BFF #E1E8EE;
}

.voice-info-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    margin-left: 8px;
}

.voice-name {
    font-size: 16px;
    white-space: nowrap;
}

.descriptor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.descriptor-tag {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    background-color: rgba(0, 123, 255, 0.1);  /* Light blue with opacity */
    color: #333;                            /* Solid blue text */
    white-space: nowrap;
    font-weight: 500;
}

.dropdown-option {
    padding: 8px 15px;
    height: auto;
    min-height: 50px;
    display: flex;
    align-items: center;
}

/* Update selected display styles */
.dropdown-selected {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 100%;
}

.dropdown-selected .descriptor-tags {
    margin-right: 24px; /* Space for dropdown arrow */
    flex-wrap: nowrap;
    overflow: hidden;
}