/* General Body Styles */
body {
    font-family: 'Roboto';
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    line-height: 1.6;
    padding-bottom: 100px; /* Space for the player */
}

.container {
    width: 90%;
    margin: auto;
    overflow: hidden;
    max-width: 1200px;
}

/* Header and Navigation */
header {
    background: #1f1f1f;
    border-bottom: 1px solid #333;
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    color: #1DB954;
    font-size: 3rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar-nav li {
    margin-left: 20px;
}

.navbar-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar-nav a:hover {
    color: #1DB954;
}

/* Main Content */
main {
    padding: 2rem 0;
}

h1 {
    color: #1DB954;
}

/* Footer */
footer {
    background: #1f1f1f;
    color: #aaa;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid #333;
}

/* Forms */
.filter-form {
    background: #1f1f1f;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}
.filter-form .form-row {
    display: flex;
    gap: 15px;
    align-items: center;
}
.filter-form input[type="text"],
.filter-form select {
    flex-grow: 1;
    margin-bottom: 0;
    background-color: #282828;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.9rem;
}
.filter-form .btn {
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #333;
    background: #282828;
    color: #e0e0e0;
}

.btn {
    display: inline-block;
    background: #1DB954;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn:hover {
    background: #1ed760;
    transform: scale(1.05);
}

.btn i {
    margin-right: 5px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background-color: #181818;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #282828;
}
td.actions-cell {
    width: 1%;
    white-space: nowrap;
}

th {
    background-color: transparent;
    color: #b3b3b3;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

tr:hover {
    background-color: #2a2a2a;
}

td {
    color: #fff;
}

/* Pagination Styles */
.pagination {
    margin-top: 2rem;
    text-align: center;
}

.pagination a {
    color: #e0e0e0;
    padding: 4px 8px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #333;
    margin: 0 4px;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #1DB954;
    color: white;
    border: 1px solid #1DB954;
}

.pagination a:hover:not(.active) {
    background-color: #282828;
}

.pagination span {
    padding: 8px 16px;
    margin: 0 4px;
    color: #555;
}

/* Player Styles */
#player-bar {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    height: 80px;
    background: #181818;
    color: #fff;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.4);
    z-index: 9999;
    box-sizing: border-box;
}
#player-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}
#cover-art {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}
#player-meta > div {
    overflow: hidden;
}
#track-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#track-artist {
    font-size: 13px;
    color: #b3b3b3;
}
#player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}
.btn-control {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}
.btn-control:hover {
    color: #fff;
}
.btn-control.play-main {
    font-size: 22px;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1DB954;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-control.play-main:hover {
    transform: scale(1.1);
}
#waveform-container {
    flex-grow: 4;
    padding: 0 10px;
    min-width: 0;
}
.player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b3b3b3;
}
#player-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: #4d4d4d;
    outline: none;
    border-radius: 2px;
}
#player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
}
#player-volume-slider::-webkit-slider-thumb:hover {
    background: #1DB954;
}
#player-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
}