/* app.css */

/* Base Styles */
body {
    background-color: #121212;
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
}

/* Background Colors */
.bg-black {
    background-color: #0f0f0f !important;
}

/* Navigation Links */
.nav-link {
    color: #b3b3b3 !important;
}

    .nav-link.active,
    .nav-link:hover {
        background-color: #282828 !important;
        color: #FFFFFF !important;
    }

/* Table & Song List */
.table-dark {
    background-color: #181818 !important;
    color: #FFFFFF !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(29, 185, 84, 0.2) !important;
}

.current-song {
    background-color: rgba(28, 184, 84, 0.4) !important;
    border-left: 4px solid #1DA954;
}

.song-table td:first-child {
    position: relative; /* For play button positioning */
    padding-left: 2.5rem; /* Space for play button */
}

/* Indicators & Colors */
.playing-indicator {
    color: #1DB954;
    font-size: 1.5rem;
}

.text-custom-green {
    color: #1DA954 !important;
}

/* Buttons */
.btn-link {
    text-decoration: none;
    color: #b3b3b3 !important;
}

    .btn-link:hover {
        color: #FFFFFF !important;
    }

/* Icons */
.bi {
    font-size: 1.5rem;
}

/* Sidebar */
.main-content {
    height: 65vh; /* Mobile default */
}

/* Desktop sidebar height */
@media (min-width: 768px) {
    .main-content {
        height: 90vh;
    }
}

/* Sidebar */
.sidebar {
    padding-top: 20px;
    border-right: 1px solid #1DA954;
    height: 35vh; /* Mobile default */
    overflow-y: auto;
}

/* Desktop sidebar height */
@media (min-width: 768px) {
    .sidebar {
        height: 90vh;
    }
}

/* Album Art */
.album-art {
    width: 50px;
    height: 50px;
}

    .album-art img,
    .album-art div {
        width: 100%;
        height: 100%;
    }

/* Input Group & Form Controls */
.input-group-text {
    background-color: #282828;
    border: 0;
    color: #b3b3b3;
}

.form-control {
    background-color: #282828;
    color: #FFFFFF;
    border: 0;
}

    .form-control::placeholder {
        color: #b3b3b3;
    }

    .form-control:focus {
        background-color: #2e2e2e;
        color: #FFFFFF;
        border-color: #1DA954;
        box-shadow: none;
    }

/* Audio Player */
.audio-player-rounded {
    border: 2px solid #1DA954;
    border-radius: 8px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background-color: #2e2e2e;
    border-radius: 20px;
    border: 3px solid #121212;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .vh-100 {
        height: auto !important;
    }
    /* Uncomment the following if you want the fixed footer to become static on mobile */
    /* .fixed-bottom {
        position: static !important;
    } */
}

/* Progress Bar (Animated) */
.progress-bar-animated {
    width: 0;
    animation: progress-animation 2s linear infinite;
}

@keyframes progress-animation {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Play Button Styles */
.play-button {
    color: #1DB954 !important;
    background-color: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0.25rem 0.5rem;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none; /* Hidden by default */
}

.song-row:hover .play-button,
.current-song .play-button {
    display: inline-block;
}

.play-button:hover {
    color: #1ED760 !important;
}

/* Fixed Footer */
.fixed-bottom {
    border-top: 1px dotted #1DA954;
    z-index: 1030;
}

/* Selected Directory */
.selected-directory {
    /*    background-color: rgba(29, 185, 84, 0.2) !important;*/
    border-left: 4px solid #1DA954 !important;
    border-radius: 4px;
    padding: 8px !important;
}

    .selected-directory .nav-link {
        color: #FFFFFF !important;
    }

        .selected-directory .nav-link strong {
            color: #1DA954 !important;
        }

/* Dropdown Styling */
.dropdown-menu-dark {
    background-color: #343a40;
}

    .dropdown-menu-dark .dropdown-item {
        color: #FFFFFF;
    }

        .dropdown-menu-dark .dropdown-item:hover {
            background-color: #495057;
        }

.dropdown-toggle-custom {
    background: none !important;
    border: none !important;
    color: #b3b3b3 !important;
}

.dropdown-menu-dark .dropdown-item i {
    margin-right: 8px;
}

.blazored-toast {
    background-color: #1DB954 !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    font-family: 'Montserrat', sans-serif !important;
}

    .blazored-toast .blazored-toast-title {
        font-weight: 600 !important;
        color: #FFFFFF !important;
    }

    .blazored-toast .blazored-toast-message {
        color: #FFFFFF !important;
    }

.blazored-toast-success {
    background-color: #1DB954 !important;
}

.blazored-toast-error {
    background-color: #E22134 !important;
}

.blazored-toast-info {
    background-color: #3B82F6 !important;
}

.blazored-toast-warning {
    background-color: #F59E0B !important;
}