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

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

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(#ff0000, #00092c);
    transition: 0.5s;
}

.darkMode{
    background: linear-gradient(180deg,#03001C, #301E67);
}

.box{
    position: relative;
    width: 500px;
    padding: 30px;
    background: rgba(41, 40, 40, 0.568);
    border-radius: 20px 0;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.562);
    transition: 0.05s;
}

.darkMode .box{
    background: #03001C;
    box-shadow: 0 10px 10px rgba(255, 255, 255, 0.178);
}

.profile{
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile .imgBx{
    position: relative;
    width: 50px;
    height: 50px;
    background: #f00;
    border-radius: 50%;
    border: 2px solid #fff;
}

.profile .imgBx img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile .text{
    font-weight: 500;
    color: #fff;
    line-height: 1.2em;
    transition: 0.5s;
}

.darkMode .profile .text{
    color: #ddd;
}

.profile .text span{
    font-weight: 400;
    font-size: 0.85em;
    color: #fff;
    transition: 0.5s;
}

.darkMode .profile .text span{
    color: #aaa;
}

.menu{
    position: relative;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(161, 161, 161, 0.116);
    transition: 0.5s;
}

.darkMode .menu{
    border-top: 1px solid rgba(216, 210, 210, 0.151);
}

.menu li{
    list-style: none;
    margin: 8px 0;
}

.menu li label{
    position: relative;
    display: flex;
    justify-content: space-between;
}

.menu li label span{
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    cursor: pointer;
    color: #fff;
    transition: 0.5s;
}

.darkMode .menu li label span{
    color: #aaa;
}

.menu li label span ion-icon{
    margin-right: 10px;
}

.menu li label .action{
    position: relative;
}

.menu li label .action input{
    appearance: none;
}

.menu li label .action i{
    position: relative;
    width: 30px;
    height: 15px;
    background: #ff0000;
    border-radius: 15px;
    transition: 0.5s;
}

.darkMode .menu li label .action i{
    background: #B6EADA;
}

.menu li label .action input:checked ~ i{
    background: #2aa0ff;
    transition: 0.5s;
}

.menu li label .action i::before{
    content: '';
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: 0.5s;
}

.menu li label .action input:checked ~ i::before{
    left: calc(100% - 12.5px)
}