/* Reset and base styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(120deg, #000000 0%, #022333 100%);
    color: #f4f8fb;
    min-height: 100vh;
    letter-spacing: 0.01em;
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
    background: transparent;
}

/* Sidebar: compact, sticky, clear nav */
.sidebar {
    width: 210px;
    background: rgba(25, 58, 90, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    box-shadow: 2px 0 16px rgba(0,0,0,0.10);
    border-right: 1.5px solid rgba(94,198,250,0.10);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.6em;
    font-weight: bold;
    color: #5ec6fa;
    padding: 28px 0 18px 0;
    justify-content: center;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(94,198,250,0.10);
}

.logo-icon {
    margin-right: 10px;
    font-size: 1.1em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 0 0 0;
}

.sidebar-nav a {
    color: #e0e8f0;
    text-decoration: none;
    font-size: 1.08em;
    padding: 10px 32px;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s, padding-left 0.18s;
    position: relative;
    font-weight: 500;
    margin: 0 8px;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: linear-gradient(90deg, #5ec6fa33 0%, #2b5c88 100%);
    color: #5ec6fa;
    padding-left: 40px;
}

.sidebar-footer {
    margin-top: auto;
    text-align: center;
    color: #7ea9d6;
    font-size: 0.98em;
    padding: 18px 0 18px 0;
    opacity: 0.85;
    border-top: 1px solid rgba(94,198,250,0.10);
}

/* Main section */
.main-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    min-width: 0;
}

/* Topbar: sticky, simple */
.topbar {
    height: 56px;
    background: rgba(20,34,58,0.97);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-bottom: 1.5px solid rgba(94,198,250,0.07);
    position: sticky;
    top: 0;
    z-index: 9;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.08em;
    color: #5ec6fa;
    font-weight: 500;
}

.user-avatar {
    font-size: 1.1em;
}

/* Main content: more space, better contrast */
.main-content {
    flex: 1;
    padding: 36px 40px 36px 40px;
    overflow-y: auto;
    position: relative;
    z-index: 0;
    background: rgba(20,34,58,0.92);
    border-radius: 18px;
    margin: 24px 0 24px 0;
    box-shadow: 0 4px 32px rgba(30,46,77,0.10);
}

/* Headings */
h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #5ec6fa;
    font-weight: 700;
    letter-spacing: 0.02em;
}

h2 {
    color: #e0e8f0;
    margin-top: 32px;
    font-size: 1.3em;
    font-weight: 600;
}

.brand-gradient {
    background: linear-gradient(90deg, #5ec6fa 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons: clearer, more contrast */
.btn-primary {
    display: inline-block;
    background: linear-gradient(90deg, #5ec6fa 0%, #3498db 100%);
    color: #193a5a;
    font-weight: bold;
    padding: 10px 28px;
    border-radius: 24px;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 12px rgba(94,198,250,0.13);
    font-size: 1em;
    border: none;
    cursor: pointer;
    outline: none;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #3498db 0%, #5ec6fa 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(94,198,250,0.18);
}

.btn-primary.large {
    font-size: 1.12em;
    padding: 14px 36px;
}

/* Hero section: more compact, clear */
.stylish-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 32px;
    min-height: 220px;
    box-shadow: 0 8px 36px rgba(30,46,77,0.13);
    background: transparent;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #1e2e4d 60%, #193a5a 100%);
    opacity: 0.97;
    z-index: 0;
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    padding: 32px 24px 32px 24px;
}

.hero-text {
    max-width: 400px;
}

.hero-section h1 {
    font-size: 2em;
    color: #5ec6fa;
    margin-bottom: 12px;
    font-weight: 800;
}

.hero-section p {
    color: #b3d6f2;
    font-size: 1.08em;
    margin-bottom: 18px;
    font-weight: 400;
}

.hero-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.hero-img-lg {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 40px rgba(94,198,250,0.18);
    border: 3px solid #5ec6fa33;
    background: #1e2e4d;
    transition: transform 0.18s;
}

.hero-img-lg.shadow-pop:hover {
    transform: scale(1.04) rotate(-2deg);
    box-shadow: 0 16px 64px rgba(94,198,250,0.25);
}

/* Cards: more spacing, clarity */
.featured {
    margin-top: 28px;
}

.playlist-card {
    display: flex;
    align-items: center;
    background: rgba(34,58,94,0.96);
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 16px;
    box-shadow: 0 4px 24px rgba(30,46,77,0.10);
    gap: 18px;
}

.stylish-card {
    backdrop-filter: blur(2px);
    border: 1.5px solid #5ec6fa22;
}

.playlist-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 24px rgba(94,198,250,0.14);
    border: 2px solid #5ec6fa22;
}

.playlist-info h3 {
    margin: 0 0 6px 0;
    color: #5ec6fa;
    font-size: 1.1em;
    font-weight: 700;
}

.playlist-info p {
    margin: 0 0 10px 0;
    color: #b3d6f2;
    font-size: 1em;
}

/* Track grid: more compact, clear */
.top-tracks {
    margin-top: 36px;
}

.top-tracks h2 {
    margin-bottom: 14px;
    color: #5ec6fa;
    font-size: 1.15em;
}

.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.stylish-grid .track-card {
    background: rgba(34,58,94,0.96);
    border-radius: 10px;
    padding: 14px 10px 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 16px rgba(30,46,77,0.10);
    transition: transform 0.18s, box-shadow 0.18s;
    border: 1.5px solid #5ec6fa22;
    position: relative;
    overflow: hidden;
}

.track-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 48px rgba(94,198,250,0.22);
    border-color: #5ec6fa55;
}

.track-card img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
    box-shadow: 0 2px 12px rgba(94,198,250,0.13);
    border: 1.5px solid #5ec6fa22;
}

.track-title {
    display: block;
    font-weight: bold;
    color: #5ec6fa;
    font-size: 1em;
    margin-bottom: 2px;
    letter-spacing: 0.01em;
}

.track-artist {
    display: block;
    color: #b3d6f2;
    font-size: 0.95em;
    opacity: 0.92;
}

/* Scrollbar styling for main content */
.main-content::-webkit-scrollbar {
    width: 8px;
}
.main-content::-webkit-scrollbar-thumb {
    background: #223a5e;
    border-radius: 4px;
}

/* Responsive Design: improved for mobile */
@media (max-width: 1100px) {
    .main-content {
        padding: 18px 4vw;
        margin: 12px 0 12px 0;
    }
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 18px 2vw;
    }
    .hero-img-wrap {
        min-width: 0;
    }
    .sidebar {
        width: 60px;
        min-width: 60px;
        align-items: center;
        padding: 0;
    }
    .logo {
        font-size: 1em;
        padding: 18px 0 10px 0;
        justify-content: center;
    }
    .sidebar-nav a {
        font-size: 0.95em;
        padding: 8px 10px;
        margin: 0 2px;
        text-align: center;
    }
}

@media (max-width: 800px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        flex-direction: row;
        width: 100%;
        height: 54px;
        min-width: 0;
        padding: 0;
        align-items: center;
        border-right: none;
        border-bottom: 1.5px solid rgba(94,198,250,0.08);
        position: static;
        box-shadow: none;
    }
    .logo {
        font-size: 1em;
        padding: 0 10px;
        flex: 1;
        border-bottom: none;
    }
    .sidebar-nav {
        flex-direction: row;
        gap: 4px;
        padding: 0 4px;
    }
    .sidebar-footer {
        display: none;
    }
    .main-section {
        min-width: 0;
    }
    .main-content {
        margin: 0;
        border-radius: 0;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 8px 1vw;
    }
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 1vw;
    }
    .hero-img-lg {
        width: 80px;
        height: 80px;
    }
    .playlist-card {
        flex-direction: column;
        gap: 8px;
        padding: 8px 2px;
    }
    .playlist-img {
        width: 50px;
        height: 50px;
    }
    .track-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
