:root {
    --spotify-green: #1db954;
    --spotify-black: #000000;
    --spotify-dark: #121212;
    --spotify-gray: #232323;
    --spotify-white: #ffffff;
    --spotify-red: #ff0000;
}

body {
    font-family: "Montserrat", serif;
    margin: 0;
    background-color: var(--spotify-black);
    color: var(--spotify-white);
    overflow: hidden;
}

.main{
    display: flex;
    height: 100vh;
    padding: 0.5rem;
}

.sidebar{
    background-color: var(--spotify-black);
    width: 340px;
    border-radius: 1rem; /* 1rem = 16px*/
    margin-right: 0.5rem;
    height: 489px;
}

.main-content{
    background-color: var(--spotify-dark);
    flex: 1; /*It covers the remaining space in screen*/
    overflow: auto;  /*If needed it gives side scroll bar*/
    border-radius: 1rem;
    padding: 0 1.5rem 0 1.5rem;
    height: 630px;
}

.music-player{
    background-color: var(--spotify-black);
    position: fixed;
    bottom: 0px;
    width: 100%;
    height: 78px;
}

a{
    text-decoration: none;
    color: var(--spotify-white);
}

.nav{
    background-color: var(--spotify-dark);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.nav-option{
    display: flex;
    align-items: center;
    padding: 12px 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #b3b3b3;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-option:hover{
    color: var(--spotify-white);
}

.nav-option.active{
    color: var(--spotify-white);
}

.nav-option i{
    font-size: 24px;
    margin-right: 16px;
}

.nav-option a{
    color: inherit;
    text-decoration: none;
}

.library{
    background-color: var(--spotify-dark);
    border-radius: 8px;
    flex: 1;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
}

.library-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    margin-bottom: 16px;
}

.library-header .lib-option{
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #b3b3b3;
}

.library-header .lib-option:hover{
    color: var(--spotify-white);
}

.library-header .lib-option i{
    font-size: 24px;
    margin-right: 12px;
}

.library-actions i{
    font-size: 16px;
    color: #b3b3b3;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.library-actions i:hover{
    color: var(--spotify-white);
    background-color: rgba(255, 255, 255, 0.1);
}

.library-filter{
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-btn{
    background: var(--spotify-gray);
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--spotify-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover{
    background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active{
    background: var(--spotify-white);
    color: var(--spotify-black);
}

.playlist-item{
    display: flex;
    align-items: center;
    padding: 8px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.playlist-item:hover{
    background-color: rgba(255, 255, 255, 0.1);
}

.playlist-cover{
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #450af5, #c4efd9);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.playlist-cover i{
    color: var(--spotify-white);
    font-size: 20px;
}

.playlist-info{
    flex: 1;
}

.playlist-name{
    font-size: 14px;
    font-weight: 600;
    color: var(--spotify-white);
    margin: 0 0 4px 0;
}

.playlist-meta{
    font-size: 12px;
    color: #b3b3b3;
    margin: 0;
}

.options{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lib-option img{
    width: 1.25rem;
    height: 1.25rem;
}

.icons{
    font-size: 1.25rem;
    display: flex;
}

.icons i{
    opacity: 0.7;
    margin-right: 1rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icons i:hover{
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.box{
    height: 8rem;
    background-color: var(--spotify-gray);
    border-radius: 0.75rem;
    margin: 0.5rem 0  1.75rem 0;
    padding: 0.5rem 1rem;
}

.box-p1{
    font-size: 1rem;
    font-weight: 500;
}

.box-p2{
    font-size: 0.75rem;
    opacity: 0.9;
}

.badge{
    background-color: var(--spotify-white);
    border: none;
    border-radius: 100px;
    padding: 0.25rem 1rem;
    font-weight: 700;
    margin-top: 0.5rem;
    height: 2rem;
    width: fit-content;
    cursor: pointer;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-badge{
    background-color: var(--spotify-black);
    color: var(--spotify-white);
}

.sticky-nav{
    position: sticky;
    display: flex;
    top: 0;
    background-color: var(--spotify-dark);
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 1rem 0; 
    z-index: 1;
}

.sticky-nav-icons{
    margin-left: 0.75rem;
}

.sticky-nav-options{
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-item{
    margin-right: 1rem;
}

@media (max-width: 1000px) {
    .hide{
        display: none;
    }
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .main {
        flex-direction: column;
        padding: 0.25rem;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .main-content {
        height: auto;
        padding: 0 1rem;
    }
    
    .music-player {
        position: relative;
        margin-top: 1rem;
    }
    
    .card {
        width: 120px;
        margin-left: 0.5rem;
        padding: 0.75rem;
    }
    
    .cards-container {
        gap: 0.5rem;
    }
    
    .player-control-icon {
        height: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sticky-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .card {
        width: 100px;
        margin-left: 0.25rem;
        padding: 0.5rem;
    }
    
    .card-title {
        font-size: 0.8rem;
    }
    
    .card-info {
        font-size: 0.7rem;
    }
}

.card{
    background-color: var(--spotify-gray);
    width: 150px;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.cards-container{
    display: flex;
    flex-wrap: wrap;
}

.card-img{
    width: 100%;
    border-radius: 0.5rem;
}

.card-title{
    font-weight: 600;
}

.card-info{
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer{
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line{
    width: 90%;
    height: 40%;
    border-top: 1px solid rgb(255, 255, 255);
    opacity: 0.4;
}

.music-player{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.album{
    width: 25%;
    display: flex;
    /* justify-content: center; */
    /* flex-wrap: wrap; */
    align-items: center;
    padding-left: 0.5rem;
}

.curr-album-playing{
    height: 4rem;
    border-radius: 0.5rem;
}

.curr-song-name{
    font-weight: 500;
    font-size: 0.9rem;
}

.curr-song-artist{
    font-size: 0.7rem;
}

.album-album-artist-name{
    padding-left: 0.9rem;
    line-height: 0.5rem;
}

.icon-album{
    padding-left: 1rem;
    font-size: 1.1rem;
}

.download-icon{
    padding-left: 0.5rem;
}

.heart-icon{
    transition: color 0.5s
}

.heart-icon:hover{
    color: var(--spotify-red);
}

.player{
    width: 50%;
    
}

.controls{
    width: 25%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    cursor: default;
}

.volume{
    width: 35%;
    appearance: none;
    background-color: transparent;
    cursor: pointer;
}

.volume::-webkit-slider-runnable-track{
    background-color: #ddd;
    border-radius: 100px;
    height: 0.2rem;
    
}

.volume::-webkit-slider-thumb {
    appearance: none;
    height: 1rem;
    width: 1rem;
    background-color: #277443;
    border-radius: 50%;
    margin-top: -6px;
}

.player-control{
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-control-icon{
    height: 1rem;
    margin-left: 1.75rem;
    opacity: 0.7;
}

.player-control-icon:hover{
    opacity: 1;
}

.playback-bar{
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-bar{
    width: 70%;
    appearance: none;
    background-color: transparent;
    cursor: pointer;
}

.progress-bar::-webkit-slider-runnable-track{
    background-color: #ddd;
    border-radius: 100px;
    height: 0.2rem;
}

.progress-bar::-webkit-slider-thumb {
    appearance: none;
    height: 1rem;
    width: 1rem;
    background-color: #1bd760;
    border-radius: 50%;
    margin-top: -6px;
}

.space-btwn-playback{
    height: 0.4rem;
}

/* Focus styles is in here */
[role="button"]:focus,
button:focus,
input:focus {
    outline: 2px solid var(--spotify-green);
    outline-offset: 2px;
}

/* Hover effects there */
[role="button"]:hover,
.player-control-icon:hover {
    opacity: 1;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.card:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
