* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
  }
  
  .spotify-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #000;
    color: #fff;
    height: 60px;
    border-bottom: 1px solid #282828;
  }
  
  .nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .logo {
    width: 30px;
    height: 30px;
  }
  
  .search-bar {
    background-color: #282828;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    color: #fff;
    font-size: 14px;
    width: 300px;
    outline: none;
  }
  
  .search-bar::placeholder {
    color: #b3b3b3;
  }
  
  .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .nav-link {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
  }
  
  .nav-link:hover {
    color: #fff;
  }
  
  .divider {
    width: 1px;
    height: 20px;
    background-color: #b3b3b3;
  }
  
  .login-button {
    background-color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .login-button:hover {
    background-color: #e5e5e5;
  }
  
.sidebar {
    width: 300px;
    background: #000000;
    position: fixed;
    left: 0;
    bottom: 0;
    padding: 10px;
}

.sidebar-nav {
    background: #111111;
    border-radius: 10px;
    padding: 20px 10px;
    margin-bottom: 10px;
}

.sidebar-nav .logo {
    width: 120px;
}
img {
    max-width: 100%;
    height: auto;
}

.sidebar-nav .logo img {
    width: 100%;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li {
    padding: 10px 20px;
}

.sidebar-nav ul li a:hover {
    color: #fff;
}

.sidebar-nav ul li a {
    text-decoration: none;
    color: #b3b3b3;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-nav ul li a i {
    font-size: 20px;
    margin-right: 10px;
}


.library::after {
    content: '*';
    float: right;
    text-align: center;
    background: #1f1e1e;
    padding: 5px;
    border-radius: 50%;
    font-size: 15px;
}

.create-playlist {
    background: #5f5d5d;
    padding: 30px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.sidebar-scroll {
    height: 120px;
    overflow-y: auto;
}

.sidebar-scroll::-webkit-scrollbar {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: transparent;
    width: 10px;
}

.sidebar-scroll:hover::-webkit-scrollbar-thumb {
    background: #ccc;
    width: 5px;
}

.create-playlist h4 {
    color: #fff;
    font-size: 15px;
}

.create-playlist p {
    color: #fff;
    font-size: 12px;
    margin: 12px 0;
}

.create-playlist button {
    padding: 8px 15px;
    border: 0;
    outline: 0;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.privacy ul li a {
    text-decoration: none;
    color: #817c7c;
    font-size: 10px;
    font-weight: 600;
    margin: 0 3px;
}

.privacy ul li a:hover {
    text-decoration: underline;
    color: #f9f7f7;
}

.privacy ul {
    list-style: none;
    margin-top: 5px;
}

.privacy ul li {
    padding: 0 3px;
    padding-bottom: 3px;
}

.eng-btn {
    padding: 3px 5px;
}

.eng-btn button {
    padding: 3px 5px;
    background: transparent;
    border: 0;
    outline: none;
    color: #e8e4e4;
    border: 1px solid #817c7c;
    border-radius: 20px;
    margin: 5px 0;
}

.eng-btn button:hover {
    padding: 3px 5px;
    border: 1px solid #fff;
}

.main-section {
    margin-left: 300px;
    background: #2a2a2a;
    height: 100vh;
    overflow-y: auto;
    margin-bottom: 68px;
}
.main-section::-webkit-scrollbar{
    background: transparent;
}
.main-section::-webkit-scrollbar-thumb{
    background: transparent;
    width: 10px;
}
.main-section:hover::-webkit-scrollbar-thumb{
    background: #ccc;
    width: 5px;
}


.main-section .top-nav {
    padding: 10px 20px;
    background: #111111;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-section .top-nav button {
    background: transparent;
    border: 0;
    outline: 0;
}

.main-section .top-nav .prev-btn button i {
    color: #fff;
    font-size: 22px;
    margin-right: 20px;
}

.top-nav .login-btn .sign-up {
    color: #838181;
    font-size: 16px;
    font-weight: 600;
    margin-right: 25px;
}

.top-nav .login-btn .sign-up:hover {
    color: #ffffff;
}

.top-nav .login-btn .logIn {
    color: #838181;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    padding: 10px 15px;
    border-radius: 20px;
}

.top-nav .login-btn .logIn:hover {
    background: #b5b2b2;
}

.spotify-playlist {
    padding: 10px 20px;
}

.spotify-playlist h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
}

.spotify-playlist .card {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}


.spotify-playlist .card .item {
    width: 160px;
    min-width: 180px;
    background-color: #3f403f88;
    border-radius: 6px;
    cursor: pointer;
    padding: 15px;
}

.spotify-playlist .card .item:hover {
    background-color: #201f1f;
}

.spotify-playlist .card .item img {
    width: 100%;
    border-radius: 2px;
    margin-bottom: 4px;
}

.spotify-playlist .item h4 {
    color: #fff;
}

.spotify-playlist .item p {
    color: #5e5e5e;
    font-size: 12px;
    margin-top: 8px;
}

.spotify-playlist .item p:hover {
    text-decoration: underline;
}

.spotify-playlist .play-btn {
    position: relative;
}

.spotify-playlist .play-btn i {
    position: absolute;
    background-color: #1db954;
    border-radius: 50%;
    padding: 10px;
    right: 8px;
    top: -40px;
    opacity: 0;
    transform: 0.3s ease all;
}

.spotify-playlist .card .item:hover .play-btn i {
    opacity: 1;
    transform: translateY(-20px)
}

.footer-section {
    padding: 20px 40px;
}

.footer-section .footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.footer-section .footer .footer-links {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.footer-section .footer .footer-links .footer-column {
    margin: 0 12px;
}

.footer-section .footer .footer-links div {
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-section .footer .footer-links ul li {
    list-style: none;
    margin: 6px 0;
}

.footer-section .footer .footer-links ul li a {
    text-decoration: none;
    color: #969393;
    font-size: 14px;
    cursor: pointer;
}

.footer-section .footer .footer-links ul li a:hover {
    text-decoration: underline;
    color: #fff;
}

.footer .social-links i {
    color: #fff;
    background:#353434;
    padding: 12px;
    border-radius: 50%;
    margin: 0px 5px;
    cursor: pointer;
}
.footer .social-links i:hover {
    background:#5d5b5b;
}
hr{
    margin: 20px 40px;
    border: 0;
    outline: 0;
    border: 1px solid #4b4a4a;
    margin-top: 40px;

}
.copyright{
    padding: 0px 40px;
    color: #969393;
    font-size: 15px;
    margin-bottom: 30px;
}
.preview{
    display: flex;
    justify-content: space-between;
    background: linear-gradient(to right, #ae2B96, #5096f5);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 25px;
}
.preview h4{
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}
.preview p{
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}
.preview button{
    padding: 12px 30px;
    border: 0;
    outline: 0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #000;

}

/* For devices smaller than 768px (tablets and smaller) */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    .main-section {
        margin-left: 200px;
        padding: 10px;
    }
    .spotify-playlist .card {
        flex-wrap: wrap;
    }
    .spotify-playlist .card .item {
        width: 45%;
        margin-bottom: 20px;
    }
    .top-nav .login-btn .logIn {
        padding: 8px 10px;
    }
    .footer-section {
        padding: 10px 20px;
    }
}

/* For devices smaller than 480px (mobile) */
@media (max-width: 480px) {
    .sidebar {
        position: fixed;
        left: -100%;
        transition: left 0.3s ease;
    }
    .sidebar.active {
        left: 0;
    }
    .main-section {
        margin-left: 0;
        padding: 10px;
    }
    .spotify-playlist .card .item {
        width: 100%;
    }
    .top-nav .prev-btn button i {
        font-size: 18px;
        margin-right: 10px;
    }
    .top-nav .login-btn {
        display: flex;
        flex-direction: column;
    }
    .top-nav .login-btn .logIn {
        padding: 6px 8px;
        font-size: 14px;
    }
}
.hamburger {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        transition: 0.3s;
    }
    .sidebar.active {
        left: 0;
    }
    .main-section {
        margin-left: 0;
    }
    
}
body {
    font-size: 16px; /* Base size */
}/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

/* SIDEBAR */
.sidebar {
    width: 300px;
    background: #000;
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    padding: 20px;
}

.sidebar-nav {
    background: #111;
    border-radius: 10px;
    padding: 20px 10px;
    margin-bottom: 10px;
}

.sidebar-nav .logo img {
    width: 100%;
    max-width: 120px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li {
    padding: 10px 20px;
}

.sidebar-nav ul li a {
    text-decoration: none;
    color: #b3b3b3;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-nav ul li a:hover {
    color: #fff;
}

.sidebar-nav ul li a i {
    font-size: 20px;
    margin-right: 10px;
}

.library::after {
    content: '*';
    float: right;
    text-align: center;
    background: #1f1e1e;
    padding: 5px;
    border-radius: 50%;
    font-size: 15px;
}

/* CREATE PLAYLIST */

.popular-artists {
    padding: 20px;
}

.popular-artists h2 {
    font-size: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color:#fff;
}

.popular-artists h2 a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.artist-list {
    display: flex;
    gap: 40px;
    overflow-x: auto;
}

.artist {
    text-align: center;
    flex: 0 0 auto;
    width: 120px;
}

.artist img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 50px;
    border: 2px solid #282828;
}

.artist .name {
    font-size: 16px;
    font-weight: bold;
    color:#fff;
}

.artist .role {
    font-size: 14px;
    color: #fff;
}
.artist img:hover {
    border-color: #1DB954;
}
.create-playlist {
    background: #5f5d5d;
    padding: 30px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.create-playlist h4, .create-playlist p {
    color: #fff;
}

.create-playlist button {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* SCROLLBAR STYLING */
.sidebar-scroll, .main-section {
    overflow-y: auto;
}

.sidebar-scroll::-webkit-scrollbar, .main-section::-webkit-scrollbar {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb, .main-section::-webkit-scrollbar-thumb {
    background: transparent;
}

.sidebar-scroll:hover::-webkit-scrollbar-thumb, .main-section:hover::-webkit-scrollbar-thumb {
    background: #ccc;
    width: 5px;
}

/* MAIN SECTION */
.main-section {
    margin-left: 300px;
    background: #2a2a2a;
    top:0px;
    height: 100vh;
    padding: 10px;
}

/* TOP NAVIGATION */
.main-section .top-nav {
    padding: 10px 20px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-section .top-nav button {
    background: transparent;
    border: none;
    outline: none;
}

.top-nav .login-btn {
    display: flex;
    align-items: center;
}

.top-nav .login-btn .sign-up {
    color: #838181;
    font-size: 16px;
    font-weight: 600;
    margin-right: 25px;
}

.top-nav .login-btn .sign-up:hover {
    color: #fff;
}

.top-nav .login-btn .logIn {
    color: #838181;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    padding: 10px 15px;
    border-radius: 20px;
}

.top-nav .login-btn .logIn:hover {
    background: #b5b2b2;
}

/* SPOTIFY PLAYLIST */
.spotify-playlist {
    padding: 10px 20px;
}

.spotify-playlist h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
}

.spotify-playlist .card {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.spotify-playlist .card .item {
    background-color: #3f403f88;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
}

.spotify-playlist .card .item:hover {
    background-color: #201f1f;
}

.spotify-playlist .card .item img {
    width: 100%;
    border-radius: 2px;
    margin-bottom: 4px;
}

.spotify-playlist .item h4 {
    color: #fff;
}

.spotify-playlist .item p {
    color: #5e5e5e;
    font-size: 12px;
    margin-top: 8px;
}

.spotify-playlist .item p:hover {
    text-decoration: underline;
}

/* FOOTER */
.footer-section {
    padding: 20px 40px;
}

.footer-section .footer {
    display: flex;
    justify-content: space-between;
}

.footer-section .footer .footer-links {
    display: flex;
    gap: 50px;
}

.footer-section .footer .footer-links ul li a {
    text-decoration: none;
    color: #969393;
    font-size: 14px;
}

.footer-section .footer .footer-links ul li a:hover {
    text-decoration: underline;
    color: #fff;
}

/* HAMBURGER MENU FOR MOBILE */
.hamburger {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* MEDIA QUERIES */

/*For tablets and smaller screens*/

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .main-section {
        margin-left: 200px;
    }

    .spotify-playlist .card .item {
        width: 45%;
    }

    .hamburger {
        display: block;
    }

    .sidebar.active {
        left: 0;
    }
    body {
        font-size: 14px;
    }
}

/* For mobile screens */
@media (max-width: 480px) {
    .sidebar {
        left: -100%;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .main-section {
        margin-left: 0;
    }

    .spotify-playlist .card .item {
        width: 100%;
    }

    .top-nav .login-btn {
        flex-direction: column;
    }

    .footer-section {
        display: none;
    }
    body {
        font-size: 12px;
    }
    .footer-section {
        display: none;
    }
}


/* For tablets and smaller screens */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    .top-nav {
        margin-left: 200px;
      }

    .main-section {
        margin-left: 200px;
    }

    .spotify-playlist .card .item {
        width: 45%;
    }

    .hamburger {
        display: block;
    }

    .sidebar.active {
        left: 0;
    }

    /* Move the top navbar inside the sidebar */
    .spotify-navbar {
        display: none; /* Hide top navbar */
    }

    /* Show the sidebar on mobile */
    .sidebar.active .spotify-navbar {
        display: flex; /* Show top navbar inside sidebar */
        flex-direction: column; /* Stack navbar elements */
        padding: 20px;
    }
}

/* For mobile screens */
@media (max-width: 480px) {
    .sidebar {
        left: -100%;
        transition: left 0.3s ease;
    }
    
    .top-nav {
        margin-left: 180px;
      }

    .sidebar.active {
        left: 0;
    }

    .main-section {
        margin-left: 0;
    }

    .spotify-playlist .card .item {
        width: 100%;
    }

    .top-nav .login-btn {
        flex-direction: column;
    }

    /* Hide footer for small screens */
    .footer-section {
        display: none;
    }
}



