/* Top Bar Container */
.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Search Container */
.search-container {
    flex: 1;
    margin-right: 1rem;
}

/* Language Container */
.language-container {
    flex-shrink: 0;
}

/* Parent Container */
.position-relative {
    position: relative;
}

/* Search Results Overlay */
#search-results-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1050;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Search Bar */
#search-input {
    border-radius: 25px;
    padding-left: 40px; /* For search icon */
    padding-right: 40px; /* For clear icon */
    font-size: 1rem;
    width: 100%;
}

/* Search Icon */
#search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
}

/* Clear Icon */
#clear-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
    display: none; /* Initially hidden */
}

/* Search Result Item */
.search-result {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    transition: transform 0.2s, background-color 0.2s;
    font-size: 0.9rem;
    cursor: pointer;
}

.search-result:hover {
    background-color: #f7f7f7;
}

/* Cover Image */
.search-result img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 10px;
}

/* Result Text */
.search-result .result-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.search-result .result-text .title {
    font-weight: bold;
    font-size: 0.95rem;
}

.search-result .result-text .artist {
    font-size: 0.85rem;
    color: #666;
}

.search-result .result-text .duration {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

#queue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#queue-list .list-group-item {
    cursor: grab;
    transition: background-color 0.2s ease;
}

#queue-list .list-group-item:hover {
    background-color: #f8f9fa;
}

#queue-list .list-group-item {
    cursor: grab;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#queue-list .list-group-item:active {
    cursor: grabbing;
    transform: scale(1.02);
    background-color: #f1f1f1;
}

#queue-list .list-group-item.dragging {
    opacity: 0.5;
}

.list-group-item .btn {
    margin-left: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.list-group-item .btn:hover {
    transform: scale(1.1);
}

.play-btn {
    background-color: #007bff;
    color: white;
}

.sing-btn {
    background-color: #007bff;
    color: white;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
}

.card {
    border: none;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.img-thumbnail {
    border: none;
}

/* Audio Player Styles */
.audio-player {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: #282828;
    padding: 16px;
    transition: bottom 0.3s ease-in-out;
    z-index: 2001;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.audio-player.visible {
    bottom: 0;
}

.audio-player-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.song-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.player-cover {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    margin-right: 16px;
}

.player-text {
    min-width: 0;
}

.player-title {
    color: #fff;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    color: #b3b3b3;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 2;
    justify-content: center;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.play-pause {
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: #000;
}

.play-pause:hover {
    background-color: #fff;
    transform: scale(1.05);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: #4d4d4d;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #1db954;
    border-radius: 2px;
    width: 0%;
}

#current-time, #duration {
    color: #b3b3b3;
    font-size: 0.8em;
    min-width: 45px;
}

.volume-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #b3b3b3;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-control label {
    font-size: 0.8em;
    min-width: 80px;
}

#volume-slider, #vocal-volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: #4d4d4d;
    border-radius: 2px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb, #vocal-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb, #vocal-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.hide-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 8px;
    margin-left: 16px;
    transition: color 0.2s;
}

.hide-btn:hover {
    color: #fff;
}

/* Dashboard Overlay Styles */
.dashboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.dashboard-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.dashboard-overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2001;
}

.dashboard-inner-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Reuse dashboard styles for the overlay */
.dashboard-overlay .background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.dashboard-overlay .background-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    -webkit-filter: blur(10px);
}

.dashboard-overlay .background-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.dashboard-overlay .container {
    position: relative;
    z-index: 1;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
    max-width: 1200px;
    width: 100%;
}

.dashboard-overlay .lyrics-line {
    font-size: 2rem;
    opacity: 0.5;
    text-align: center;
    transition: opacity 0.3s, font-size 0.3s;
    position: relative;
}

.dashboard-overlay .lyrics-line.active {
    font-size: 2.5rem;
    font-weight: bold;
    opacity: 1;
}

.dashboard-overlay .lyrics-container {
    height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.dashboard-overlay .lyrics-container .lyrics-wrapper {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    transition: transform 0.5s ease;
}

.dashboard-overlay .d-flex img.img-fluid {
    border-radius: 50%;
    object-fit: cover;
}

.dashboard-overlay .artist-name {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
}

.dashboard-overlay .artist-name a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.dashboard-overlay .artist-name a:hover {
    color: #1DB954;
}

.dashboard-overlay .track-name {
    font-size: 1.2rem;
    color: #B3B3B3;
    margin-top: 0.5rem;
}

