@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700;800;900&display=swap');

:root {
    --gray: #d7d7d7;
    --purple: #4e65ff;
    --green-blue: #92effd;
    --white: #fff;
}

.navigation * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* .container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, var(--purple), var(--green-blue));
} */

.navigation {
    position: fixed;
    top: 2px;
    right: 0px;
    width: 100px;
    height: 36px;
    display: flex;
    justify-content: space-between;
    border-radius: 5px;
    background: #171717;
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: height 0.5s, width 0.5s;
    transition-delay: 0s, 0s;
    z-index: 1000;
}

.navigation .user-box {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: 0.5s;
    transition-delay: 0.5s;
}

.navigation .user-box .username {
    font-size: 1.2rem;
    white-space: nowrap;
    color: var(--gray);
}

.navigation .user-box .image-box {
    position: relative;
    min-width: 36px;
    height: 36px;
    background: #171717;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #171717;

}

.navigation .user-box .image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navigation .menu-toggle {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.navigation .menu-toggle::before {
    content: "";
    position: absolute;
    width: 32px;
    height: 2px;
    background: var(--gray);
    transform: translateY(-10px);
    box-shadow: 0 10px var(--gray);
    transition: 0.5s;
}

.navigation .menu-toggle::after {
    content: "";
    position: absolute;
    width: 32px;
    height: 2px;
    background: var(--gray);
    transform: translateY(10px);
    transition: 0.5s;
}

.menu {
    position: absolute;
    width: 100%;
    height: calc(100% - 60px);
    margin-top: 36px;
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.menu li {
    list-style: none;
}

.menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 1rem;
    text-decoration: none;
    color: var(--gray);
}

.menu li a ion-icon {
    font-size: 1.5rem;
}

.menu li a:hover {
    color: var(--purple);
}

.navigation.active .menu-toggle::before {
    transform: translateY(0px) rotate(45deg);
    box-shadow: none;
}

.navigation.active .menu-toggle::after {
    transform: translateY(0px) rotate(-45deg);
}

.navigation.active {
    width: 300px;
    height: 200px;
    transition: width 0.5s, height 0.5s;
    transition-delay: 0s, 0s;
}

.navigation.active .user-box {
    width: calc(100% - 60px);
    transition-delay: 0s;
}

.user-box>.username {
    margin-left: 10px;
    margin-bottom: 0px;
}