/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0a0a0a;
    --bg-card: #18181a;
    --bg-sidebar: #121212;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent-red: #e53935;
    --accent-red-glow: rgba(229, 57, 53, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    padding-bottom: 100px;
    /* Space for the fixed bottom player */
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Sidebar Styling */
.sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid #27272a;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 20px;
}

@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #27272a;
    color: var(--text-main);
}

/* Bottom Player */
.persistent-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(24, 24, 26, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid #333;
    z-index: 2000;
    padding: 8px 16px;
    display: grid;
    gap: 4px;
    grid-template-columns: 60px 1fr auto;
    grid-template-areas: "art info controls" "progress progress progress";
}

.persistent-player .art {
    grid-area: art;
}

.persistent-player .info {
    grid-area: info;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.persistent-player .controls {
    grid-area: controls;
    display: flex;
    align-items: center;
    gap: 12px;
}

.persistent-player .progress-container {
    grid-area: progress;
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.persistent-player .progress-bar {
    height: 100%;
    background: var(--accent-red);
    width: 0%;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
}

.control-btn.play-btn-main {
    background: var(--accent-red);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text Highlights & Accents */
.text-accent {
    color: var(--accent-red);
}

.border-accent {
    border-bottom: 2px solid var(--accent-red);
}

.bg-accent-glow {
    background: var(--accent-red-glow);
}

/* Cards & Layouts */
.music-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.music-card:hover {
    transform: translateY(-4px);
}

.track-row {
    display: grid;
    grid-template-columns: 40px 50px 1fr 80px auto;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    gap: 12px;
}

.track-row.active {
    background: rgba(229, 57, 53, 0.1);
    border-left: 3px solid var(--accent-red);
}

@media (max-width: 768px) {
    .track-row {
        grid-template-columns: 30px 40px 1fr auto;
    }

    .track-row .album-col {
        display: none;
    }
}

/* Admin Stats */
.stat-card {
    background: var(--bg-card);
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 16px;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #22c55e;
    font-size: 0.8rem;
}

.stat-graph-svg {
    stroke: var(--accent-red);
    stroke-width: 2;
    fill: none;
    width: 100%;
    height: 40px;
}

/* Mobile Navbar Hamburger */
.menu-toggle {
    display: block;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}