/**
 * Custom styles for index2.php only
 * Scrollable chat and playlist sections with fixed heights
 */

/* Language dropdown dark theme styling */
#language-select {
    background-color: rgba(30, 30, 46, 0.9) !important;
    border: 2px solid white !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 40px !important;
}

#language-select option {
    background-color: #1e1e2e !important;
    color: white !important;
    padding: 10px !important;
    font-weight: 500 !important;
}

#language-select option:hover {
    background-color: #3b82f6 !important;
}

#language-select:focus {
    outline: none !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3) !important;
}

/* Chat section scrollable area - REDUCED HEIGHT */
.chating__running {
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.chating__running .chating__runbox {
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
}

/* Chat scrollbar styling */
.chating__running::-webkit-scrollbar {
    width: 6px;
}

.chating__running::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.chating__running::-webkit-scrollbar-thumb {
    background: #343E56;
    border-radius: 10px;
}

.chating__running::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

/* Playlist container scrollable */
.playlist-container {
    max-height: 400px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Playlist scrollbar styling */
.playlist-container::-webkit-scrollbar {
    width: 6px;
}

.playlist-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.playlist-container::-webkit-scrollbar-thumb {
    background: #343E56;
    border-radius: 10px;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

/* Ensure playlist items don't overflow */
#playlist-items-v2 {
    width: 100%;
}

/* Mobile responsive adjustments */
@media (max-width: 991px) {
    .chating__running {
        max-height: 250px !important;
    }
    
    .playlist-container {
        max-height: 350px !important;
    }
}

