/* sound-generator.css */
.sound-player-container {
    background: rgba(250, 206, 118, 0.1);
    border: 1px solid rgba(250, 206, 118, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.player-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    text-align: center;
}
.player-title {
    font-family: var(--heading-font, "Raleway", sans-serif);
    color: #f46d57;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}
.player-frequency {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 0;
}
.player-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.control-btn {
    background-color: #f46d57;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}
.control-btn:hover {
    background-color: #face76;
    transform: scale(1.05);
}
.control-btn.playing {
    background-color: #738e69;
}
/* Player settings layout */
.player-settings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.brainwave-selector {
    text-align: center;
}
.brainwave-selector label {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

/* Dropdown container positioning */
.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 500;
    text-align: left;
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: #f46d57;
}
.dropdown-toggle:focus {
    border-color: #f46d57;
    box-shadow: 0 0 0 0.25rem rgba(244, 109, 87, 0.25);
    color: #ffffff;
}

/* Enhanced dropdown menu styling with center alignment */
.dropdown-menu {
    background-color: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(250, 206, 118, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    min-width: 200px;
    backdrop-filter: blur(10px);
    margin-top: 0.5rem;
    position: absolute;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 100%;
}

.dropdown-item {
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(244, 109, 87, 0.2);
    color: #face76;
}

.dropdown-item.active {
    background-color: rgba(244, 109, 87, 0.3);
    color: #face76;
    font-weight: 500;
    position: relative;
}

.dropdown-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #f46d57;
    border-radius: 3px 0 0 3px;
}

/* Dropdown arrow styling */
.dropdown-toggle::after {
    border-top: 0.3em solid #ffffff;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.dropdown-toggle.show::after {
    transform: rotate(180deg);
}

/* Sliders container */
.sliders-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.slider-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}
.slider-group label {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.volume-value {
    font-weight: 500;
    color: #face76;
    margin-top: 0.5rem;
}

/* Horizontal volume slider styling */
.volume-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f46d57;
    cursor: pointer;
    margin-top: -4px;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f46d57;
    cursor: pointer;
    border: none;
}

/* Visualizer styling */
.visualizer {
    height: 50px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    margin-bottom: 1.5rem;
    padding: 0 10px;
}
.visualizer-bar {
    flex: 1;
    min-width: 3px;
    background: linear-gradient(to top, #f46d57, #738e69, #face76);
    border-radius: 3px;
    transition: height 0.1s ease;
    min-height: 3px;
}
/* Status indicator styling */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #f46d57;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .sound-player-container {
        padding: 15px;
    }
    
    .player-title {
        font-size: 1.1rem;
    }
    
    .player-frequency {
        font-size: 0.8rem;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .slider-group {
        max-width: 250px;
    }
    
    .visualizer {
        height: 40px;
    }
    
    .dropdown-menu {
        min-width: 180px;
    }
}