* {
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
    color: inherit;
    font-family: DM Sans, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--content-bg);
}


/* variables */
:root {
    --version: "v.1.0.0-alpha"; /* - aplpa - beta - rc / major . minor . patch*/

    --border: #d8dae0;
    --color-text: #494949;
    --color-light-gray: #C0C0C0;
    --color-subtext: #6D7081;

    --login-padding: 1.5rem;

    --content-bg: #f4f5ff;
    --content-title: 1.7rem;
    --content-width: 1110px;

    --sidebar-hover-bg: #dadce0;
    --sidebar-active-bg: #F1ECFF;
    --sidebar-active-text: #5025D1;
    --sidebar-text-color: #1D1E20;
    --sidebar-logout-bg: #f8d7da;
    --sidebar-logout-color: #721c24;
    --sidebar-animation: all .1s cubic-bezier(.7, 0, .3, 1);
    --sidebar-padding: 12px;
    --sidebar-btn-padding: 12px;
    --sidebar-width: 260px;
    --sidebar-font: 14px;
    --sidebar-font-weight: 400;

    --border-radius: 0.75rem;
    --border-radius-btn: .45rem;
    --shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;


    --animation-primary: all .5s cubic-bezier(.7, 0, .3, 1);
    --animation-fast: all .3s cubic-bezier(.7, 0, .3, 1);
    --animation-smooth: all .7s cubic-bezier(.7, 0, .3, 1);
    --animation-slow: all .9s cubic-bezier(.7, 0, .3, 1);

}

/* hide scrollbar */
::-webkit-scrollbar {
    width: 0;
    
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hidden {
    display: none;
}

button {
    all: unset;
    cursor: pointer;
}

.flex {
    display: flex;
    gap: 1rem;
}

.flex-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wrapper {
    display: flex;
}

.subtext {
    color: var(--color-subtext);
}

.role {
    font-size: .6rem;
    text-transform: uppercase;
    padding: 2px 8px;
    width: fit-content;
    border-radius: var(--border-radius-btn);
}

.r-1 { /*ADMIN*/
    border: 2px solid #f1aeb5;
    background-color: #f8d7da;
    color: #842029;
}
.r-2 { /*FAMILY*/
    border: 2px solid #b2dfbc;
    background-color: #dff5e4;
    color: #1f6930;
}
.r-3 { /*GIRLFRIEND*/
    border: 2px solid #f5b7d1;
    background-color: #fde2ee;
    color: #8a2c53;
}
.r-4 { /*BESTFRIEND*/
    border: 2px solid #ffe69c;
    background-color: #fff8d6;
    color: #997404;
}
.r-5 { /*FRIEND*/
    border: 2px solid #a6d5fa;
    background-color: #d9ecff;
    color: #0b4f75;
}

/* 
    SIDEBAR 
*/

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    color: var(--sidebar-text-color);
    padding: var(--sidebar-padding);
    width: var(--sidebar-width);
    background-color: #fff;
    height: 100dvh;
    border-right: 1px solid var(--border);
}

.sidebar button, .dropdown button {
    padding: var(--sidebar-btn-padding);
    font-size: var(--sidebar-font);
    font-weight: var(--sidebar-font-weight);
    border-radius: var(--border-radius);
    transition: var(--sidebar-animation);
    width: 88%;
    touch-action: manipulation;
    display: flex;
    align-items: center;
}

.sidebar button:not(.sidebar-active, .logout-btn):hover {
    background-color: var(--sidebar-hover-bg);
    color: var(--sidebar-hover-text);
}

.dropdown button {
    color: var(--color-text);
}

.sidebar i {
    margin-right: 8px;
}

.sidebar hr {
    margin: 12px;
    height: 1px;
    border: none;
    background-color: var(--border);
}

.sidebar-active {
    background-color: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
}

.sidebar-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    
    &.rotated {
        transform: rotate(180deg);
    }
}

.dropdown {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.dropdown.show {
    max-height: 500px;
    opacity: 1;
}

.dropdown button {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown.show button {
    opacity: 1;
}

.logout-btn {
    margin-top: auto;
    margin-bottom: 1rem;
}

.logout-btn:hover {
    color: var(--sidebar-logout-color);
    background-color: var(--sidebar-logout-bg);
}

.icon, .icon-c{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    margin-right: 6px;
}

.profile {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: default;
    padding: var(--sidebar-padding);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.img {
    height: 42px;
    width: 42px;
    border-radius: 100%;
}

.username {
    font-weight: 600;
    margin-bottom: 3px;
}

.info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-light-gray);
    position: relative;
}
.version:after {
    content: var(--version);
}

/*
    FLOATING LABLE INPUT FEILD
*/
.floating-label {
    position: relative;
    width: 100%;
}
  
.floating-label input {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    background-color: var(--lable-bg);
    border: 1px solid var(--border-c);
    border-radius: var(--border-radius-btn);
    outline:none;
    transition: var(--animation-fast);
}

.floating-label input:focus {
    border-color: var(--lable-c-active-txt);
}
  
.floating-label label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--lable-c-inactive-txt);
    pointer-events: none;
    background: var(--lable-bg);
    padding: 0 4px;
    transition: var(--animation-fast);
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    font-size: 13px;
}

.floating-label input:focus + label {
    color: var(--lable-c-active-txt);
}

.floating-label.error input {
    border-color: var(--lable-c-error-txt)!important;
}
  
.floating-label.error .label-text {
    display: none;
}
  
.floating-label.error .error-text {
    display: inline;
    color: var(--lable-c-error-txt);
}
  
.error-text {
    display: none;
  }
  
.floating-label label {
    transition: 0.2s ease all;
}

/*
    CONTENT
*/
.content-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.content {
    max-width: var(--content-width);
    color: var(--color-text);
    width: 100%;
    padding: 7rem 2rem 3rem;
}

.content hr {
    margin: 1rem 0 1rem -1.5rem;
    height: 1px;
    width: calc(100% + 3rem);
    border: none;
    background-color: var(--border);
}

.title {
    font-weight: 300;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.title span {
    font-weight: 600;
}

h2 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.box{
    border: var(--border) 1px solid;
    border-radius: var(--border-radius);
    background-color: #fff;
    width: 100%;
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    cursor: default;
}

.age {
    margin: 0 0 1rem;
    font-size: 5rem;
    font-weight: 600;
}

.age sub {
    font-size: 2.2rem;
    display: inline-block;
    transform: translateY(-3rem);
    margin-left: 7px;
}

.set-bday {
    border: 1px dashed var(--border);
}

.icon-c {
    width: auto;
    height: auto;
}

.img-c {
    height: 64px;
    width: 64px;
    border-radius: 50%;
    background-color: #5025D1;
}

.full-name {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    margin-bottom: .3rem;
}

.acc-btn {
    width: 100%;
    display: flex;
    margin-left: -1.5rem;
    padding: 1rem 1.5rem;
    width: 100%;
    font-size: .9rem;
    border-top: 1px solid var(--border);
}

.acc-btn:hover {
    background-color: var(--sidebar-active-bg);
}

.acc-btn:first-of-type {
    margin-top: 1rem;
}

.acc-btn:last-of-type {
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.acc-btn p, .acc-btn span {
    flex: 1 1 50%;
}

.login-history {
    width: 100%;
    border-collapse: collapse;
}

.login-history thead th {
    text-align: left;
    padding-bottom: .5rem;
}

.login-history td {
    padding: 10px 0;
    font-size: .9rem;
    color: var(--color-subtext);
}

.disable-btn {
    border: 2px solid #f5c6cb;
    background-color: #f8d7da;
    color: #721c24;
    float: right;
    border-radius: var(--border-radius-btn);
    transition: var(--animation-fast);
    padding: .5rem 1.5rem;
}
.disable-btn:hover {
    background-color: #f5c6cb;
}


@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        left: 0;
        top: 0;
        transform: translateX(-260px);
        z-index: 1;
    }
    .sidebar-active {
        transform: translateX(0);
        transition: var(--animation-primary);
    }
}