/* Sidebar */

.sidebar {
    width: 95px;
    height: 100vh;
    background: linear-gradient(0deg, #000000, #131A26);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    transition: width 0.3s ease;
    overflow: hidden;
}

.sidebar:hover {
    width: 250px;
}


/* Logo */

.logo img {
    width: 60px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.sidebar:hover .logo img {
    transform: scale(1.25);
}

.sidebar:hover .create-track {
    opacity: 1;
    visibility: visible;
}


/* Sidebar Links */

.nav-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 30px;
    /* Centers icons horizontally */
}

.nav-links a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centers icons horizontally */
    gap: 10px;
    padding: 15px;
    width: 100%;
    border-radius: 6px;
    transition: background 0.3s ease;
    text-align: center;
}


/* Icon Styling */

.nav-links a i {
    font-size: 22px;
    min-width: 40px;
    text-align: center;
}


/* Hide text labels initially */

.nav-links a span {
    display: none;
}


/* Show text labels on hover */

.sidebar:hover .nav-links a {
    justify-content: flex-start;
    margin-left: 115px;
}

.sidebar:hover .nav-links a span {
    display: inline;
}


/* Hover Effect */

.nav-links a:hover {
    scale: 1.05;
}


/* Footer Section */

.footer {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .footer {
    opacity: 1;
}


/* User Info */

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    justify-content: center;
    margin-bottom: 30px;
}

.user-info span {
    display: none;
}

.sidebar:hover .user-info span {
    display: inline;
}


/* User Info */

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    justify-content: center;
}

.user-info span {
    display: none;
}

.sidebar:hover .user-info span {
    display: inline;
}

.logout {
    margin-top: auto;
    margin-bottom: 0px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 10px;
}

#logout-button {
    background: #fe841c;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

#logout-button:hover {
    background: #e67300;
    transform: scale(1.05);
}

#logout-button i {
    font-size: 18px;
}

/* Initially hide the logout button text */
#logout-button span {
    display: none;
}

/* Show the text when sidebar is expanded */
.sidebar:hover #logout-button span {
    display: inline;
}

/* Adjust button width when sidebar is collapsed/expanded */
.sidebar:not(:hover) #logout-button {
    width: 45px;
    padding: 10px;
}

.sidebar:hover #logout-button {
    width: 80%;
    padding: 10px 20px;
}