
html,
body {
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
}

/* ---------- LOAD ---------- */

/* ---------- APP ----------- */
.app {
    display: flex;
    height: 100vh;
    width: 100%;
    background: rgba(var(--secundary-color));
    transition: .2s linear;
}

.app.disabled {
    pointer-events: none;
}

/* ---------- ALERT ---------- */
.background-alert {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    position: absolute;
    height: 100vh;
    width: 100vw;
    opacity: 0;
    pointer-events: none;
    background: var(--background-float);
    transition: opacity .2s linear;
    overflow: hidden;
    z-index: 100;
    cursor: default;
}

.background-alert.active {
    opacity: 1;
    pointer-events: all;
}

.alert {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    margin: 0;
    margin-top: 30px;
    height: fit-content;
    width: 400px;
    padding: 0;
    transition: .1s ease-out;
    transform: scale(.9);
    background: rgba(var(--main-color));
    box-shadow: var(--box-shadow-popup);
    opacity: 0;
    pointer-events: none;
    cursor: default;
}

.alert.active {
    margin-top: 40;
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 40px;
    padding-bottom: 20px;
    font-size: 1.2rem;
    color: var(--secundary-title-text);
    text-align: center;
}

.alert-content span {
    font-size: 1rem;
    color: var(--text-smooth);
    margin-top: 10px;
}

.alert-content i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-title-text);
}

.alert-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 40px;
}

.alert-footer .btn {
    flex: 1;
    border-radius: 0;
    border: none;
    color: var(--text-smooth);
    background: rgba(var(--main-color));
    padding: 10px 20px;
    color: #fff;
    border-radius: .3rem;
}

.alert-footer [name="alert_confirm"] {
    background: rgba(var(--red-color), 1);
}

.alert-footer [name="alert_refuse"] {
    background: rgba(var(--secundary-color));
    color: var(--secundary-title-text);
    margin-right: 10px;
}

/* ------------ SIDEBAR ------------ */
.background-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: var(--background-float);
    transition: opacity .2s linear;
    opacity: 0;
    pointer-events: none;
    z-index: 52;
}
.background-sidebar.active {
    opacity: 1;
}

.app .sidebar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    display: flex;
    flex-direction: column;
    width: 280px;
    background: rgba(var(--primary-color));
    color: rgba(var(--main-color));
    border-right: var(--border);
    font-size: 0.9rem;
    overflow: hidden;
    overflow-y: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: .4s;
    transition-timing-function: cubic-bezier(.25,.8,.25,1);
    cursor: default;
}
.app .sidebar:hover {
    scrollbar-color: inherit;
}

.app .sidebar::-webkit-scrollbar-thumb {
    background: transparent;
}
.app .sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(var(--border-color), .5);
    border: 1px solid rgba(var(--border-color), 1);
}

.app[show-sidebar="true"] .sidebar {
    transform: translateX(0);
}

/* ---------- SIDEBAR-HEADER ---------- */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.3rem;
    color: var(--icon-color);
    padding: 10px 20px;
    margin-bottom: 20px;
}

.sidebar-header .logo-page {
    display: flex;
    align-items: center;
}

.sidebar-header img {
    height: 30px;
    width: 30px;
}

.sidebar-options {
    display: flex;
    align-items: center;
}

.sidebar-options .options-item {
    position: relative;
    margin-left: 5px;
    padding: 5px;
    cursor: pointer;
}

.sidebar-options .options-item i {
    font-size: 1.2rem;
}

.background-sidebar-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 49;
    overflow: hidden;
}

.background-sidebar-popup.active {
    display: block;
}

.sidebar-popup {
    position: absolute;
    top: 25px;
    right: 0;
    border-radius: 5px;
    color: var(--light-text);
    min-width: 200px;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    background: rgba(var(--modal-background-color));
    box-shadow: var(--box-shadow-popup);
    padding: 5px 0;
    transition: .1s ease-in;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
}

.sidebar-popup.active {
    opacity: 1;
    pointer-events: all;
    top: 35px;
}

.sidebar-popup .popup-item {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    font-size: 0.9rem;
    cursor: pointer;
}

.sidebar-popup .popup-item:hover {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-popup .popup-item i {
    height: auto;
    width: auto;
    margin: 0;
    margin-right: 10px;
    color: var(--icon-color);
    padding: 0;
    padding-bottom: 3px;
    font-size: 1rem;
}

.sidebar-popup .popup-item i:hover {
    color: currentColor;
}

.sidebar-popup .popup-item-user {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sidebar-popup .popup-item-profile {
    position: relative;
    height: 100px;
    width: 100px;
}

.user-profile-img {
    object-fit: cover;
}

.sidebar-popup .popup-item-profile .user-profile-img {
    margin: 0;
    height: 100px;
    width: 100px;
    border-radius: 50%;
    padding: 0;
}

.sidebar-popup .popup-item-profile i {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100px;
    font-size: 3rem;
    background: rgba(0, 0, 0, 0.322);
    color: rgba(255, 255, 255, 0.582) !important;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    cursor: pointer;
}

.sidebar-popup .popup-item-profile i:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.322);
}

.sidebar-popup .account-info {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.9rem;
    border-bottom: var(--border);
}

.sidebar-popup .account-info,
.sidebar-popup .account-info-img {
    cursor: default;
}

.sidebar-popup .account-info:hover,
.sidebar-popup .account-info-img:hover {
    background: transparent;
}

.sidebar-popup .account-info p {
    font-size: 0.85rem;
    font-weight: 500;
}


/* ---------- SIDEBAR-CONTENT ---------- */
.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ---------- SIDEBAR-USER-INFO ---------- */
.sidebar-user-info {
    display: flex;
    width: 100%;
    padding: 10px 20px;
}

.sidebar-user-info .user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sidebar-user-info .user-info-img {
    position: relative;
}

.sidebar-user-info .user-info-img img {
    margin: 0;
    height: 100px;
    width: 100px;
    border-radius: 50%;
}

.user-info-img i {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100px;
    font-size: 3rem;
    background: rgba(0, 0, 0, .5);
    color: rgba(255, 255, 255, .5);
    border-radius: 50%;
    opacity: 0;
    transition: .2s ease-in-out;
    cursor: pointer;
}

.user-info-img:hover i {
    opacity: 1;
}

.sidebar-user-info .user-info-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    font-weight: 500;
    color: var(--title-color);
    font-size: 0.9rem;
}

.sidebar-user-info .user-info-name .user-title {
    font-size: 0.8rem;
    color: #777c86;
    font-weight: 500;
}

/* ---------- SIDEBAR-FOOTER ---------- */
.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}
.sidebar-footer span {
    font-weight: 500;
}

/* ---------- SIDEBAR-NAV ---------- */
.sidebar-nav {
    flex: 1;
    padding: 10px;
}

.sidebar-separator {
    margin-bottom: 20px;
}

.sidebar-separator-title {
    padding: 10px 20px;
    font-size: 0.8rem;
    color: #777c86;
    font-weight: bold;
}

.sidebar-separator-title h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: rgba(var(--accent-color), 1);
}

.sidebar-nav .sidebar-item {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    border-radius: 5px;
    font-weight: 500;
    margin-bottom: 5px;
    padding: 12px 20px;
    white-space: nowrap;
    color: var(--text-smooth);
    cursor: pointer;
}

.sidebar  .sidebar-label {
    font-family: 'Heebo', sans-serif;
    display: none;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    background: #fff;
    color: #444;
    padding: 10px;
    border-radius: 5px;
    font-weight: normal;
    box-shadow: var(--box-shadow-popup);
    font-size: 1rem;
}

.sidebar .sidebar-label-detail {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    height: 30px;
    width: 15px;
    background: #fff;
    border-radius: 50%;
    z-index: -1;
}

.sidebar-item:hover {
    background: rgba(155, 166, 196, 0.048);
}

.sidebar-item.active {
    background: rgba(155, 166, 196, 0.11);
    color: var(--title-color);
    cursor: default;
}

.sidebar-item i {
    margin-right: 20px;
    padding-bottom: 3px;
    width: 15px;
}

/* ------------ CONTENT (PAGES) ------------ */
.app .content.pages {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: .4s;
    transition-timing-function: cubic-bezier(.25,.8,.25,1);
}

.pages.disabled {
    pointer-events: none;
}

/* PAGES HEADER */
.pages-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    width: 100%;
    background: rgba(var(--main-color));
    padding: 0 20px;
    margin: 0;
    border-radius: 0;
    border-bottom: var(--border);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.103);
    transition: .2s;
    font-size: 1.2rem;
    color: var(--icon-color);
    z-index: 1;
}

.pages-header i,
.flag-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.pages-header i:hover,
.flag-item:hover {
    background: var(--background-icon-color);
}

.modern-app-nav {
    display: none;
    align-items: center;
}
.modern-app-logo {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    color: var(--primary-title-text);
    margin-right: 2rem;
    width: 127px;
    white-space: nowrap;
    transition: .4s;
    transition-timing-function: ease;
    transition-timing-function: cubic-bezier(.25,.8,.25,1);
    cursor: default;
}
.modern-app-logo img {
    height: 35px;
    width: 35px;
    margin-right: 5px;
}
.modern-app-logo h3 {
    padding-bottom: 1px;
}

.modern-app-logo span {
    position: absolute;
    bottom: -5px;
    left: 45px;
}
.content.pages[pages-header-top="false"] .modern-app-logo span {
    left: 70px;
    opacity: 0;
}

.modern-app-nav-item {
    position: relative;

}
.modern-app-nav-icon {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: .3rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secundary-title-text);
    cursor: pointer;
}
.modern-app-nav-icon.active,
.modern-app-nav-icon:hover {
    background: rgba(var(--secundary-color));
}
.modern-app-nav-icon i {
    height: auto;
    width: auto;
    color: var(--icon-color);
    font-size: 1.2rem;
    padding-bottom: 2px;
    margin-right: 10px;
}
.modern-app-layout {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    height: 100vh;
    width: 100%;
    z-index: 49;
}
.modern-app-layout.active {
    display: block;
}

.modern-app-popup {
    position: absolute;
    top: 40px;
    left: 0;
    min-width: auto;
    border-radius: .3rem;
    margin: 0;
    padding: 10px 0;
    box-shadow: var(--box-shadow-popup);
    background: rgba(var(--modal-background-color));
    opacity: 0;
    pointer-events: none;
    overflow: visible;
    transition: .1s ease-in;
    z-index: 50;
}
.modern-app-popup.active {
    top: 50px;
    opacity: 1;
    pointer-events: all;
}
.modern-app-popup-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 13px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secundary-title-text);
    white-space: nowrap;
    cursor: pointer;
}
.modern-app-popup-item:hover {
    background: rgba(var(--secundary-color));
}
.modern-app-popup-item.active {
    color: rgba(var(--accent-color), 1);
}
.modern-app-popup-item.icon-drop-water::before,
.modern-app-popup-item.icon-drop-water::after {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.modern-app-popup-item i {
    color: var(--icon-color);
}

.modern-app-popup-item-icon {
    display: flex;
    align-items: center;
}

.modern-app-popup-item i {
    height: auto;
    width: auto;
    font-size: 1.2rem;
    padding-bottom: 2px;
    margin-right: 10px;
}
.modern-app-popup-item.active i {
    color: rgba(var(--accent-color), 1);
}

.modern-app-popup-item .more {
    margin: 0;
    margin-left: 10px;
    color: var(--icon-color);
}

.modern-app-popup-item .modern-app-popup {
    top: -20px;
    left: 180px;
    opacity: 0;
    pointer-events: none;
}
.modern-app-popup-item.show {
    background: rgba(var(--secundary-color));
}
.modern-app-popup-item.show .modern-app-popup {
    opacity: 1;
    top: -10px;
    pointer-events: all;
}

.modern-app-popup-item.active .modern-app-popup-item i {
    color: var(--icon-color);
}
.modern-app-popup-item.active .modern-app-popup-item.active i {
    color: rgba(var(--accent-color), 1);
}

/* ------------ PAGES-NAV ------------ */
.app .pages-nav {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pages-nav-item {
    position: relative;
    margin-left: 10px;
}

.flag-item img {
    width: 25px;
    box-shadow: 0 1px 3px #00000045;
    border-radius: 0.1rem;
}

.user-profile-thin {
    position: relative;
    display: none;
}

.profile-thin-info {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.profile-thin-info i {
    height: auto;
    width: auto;
    font-size: 0.95rem;
    color: var(--light-text);
    cursor: default;
}

.profile-thin-info i:hover {
    background: rgba(var(--main-color));
}

.user-profile-thin .sidebar-popup {
    left: auto;
    right: 0px;
}

.app .user-profile-thin img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 6px;
}
.app .user-profile-thin img:hover {
    background: rgba(var(--secundary-color));
}

.app .nav-item-notify {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    background: rgb(var(--yellow-color));
    color: #fff;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.app .nav-item-notify.active {
    opacity: 1;
}

/* ------------ BACKGROUND-PAGES-NAV-POPUP ------------ */
.background-pages-nav-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 49;
    overflow: hidden;
}

.background-pages-nav-popup.active {
    display: block;
}

.pages-nav-popup {
    display: flex;
    position: absolute;
    top: 20px;
    right: -10px;
    flex-direction: column;
    background: rgba(var(--modal-background-color));
    box-shadow: var(--box-shadow-popup);
    min-width: 400px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: .1s ease-in;
    cursor: default;
    z-index: 50;
}

.pages-nav-popup.active {
    opacity: 1;
    pointer-events: all;
    top: 30px;
}

.pages-nav-popup.disabled {
    pointer-events: none;
}

/* ------------ FLAG-POPUP ------------ */
.background-flag-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 49;
    cursor: default;
    overflow: hidden;
}

.background-flag-popup.active {
    display: block;
}

.pages-flag-popup {
    display: flex;
    position: absolute;
    top: 20px;
    right: -10px;
    flex-direction: column;
    background: rgba(var(--modal-background-color));
    box-shadow: var(--box-shadow-popup);
    font-size: 0.9rem;
    min-width: 150px;
    padding: 0;
    border-radius: 10px;
    padding: 5px 0;
    opacity: 0;
    pointer-events: none;
    transition: .1s ease-in;
    cursor: default;
    z-index: 50;
}
.pages-flag-popup.active {
    opacity: 1;
    pointer-events: all;
    top: 30px;
}

.pages-flag-popup.card-template {
    border-radius: 0.3rem;
}

.flag-popup-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--light-text);
    font-weight: 500;
    cursor: pointer;
}
.flag-popup-item:hover {
    background: rgba(0, 0, 0, 0.07);
}

.flag-popup-item img {
    margin-right: 10px;
    box-shadow: none;
}

.pages-flag-popup.active {
    display: flex;
}

.pages-flag-popup.disabled {
    pointer-events: none;
}

/* ------------ NOTE-POPUP ------------ */
.pages-nav-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(var(--accent-color), 1);
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
}

.pages-nav-popup-header [name="btn_close_notes"] {
    display: none;
    margin-right: 5px;
    font-size: 0.9rem;
    padding-bottom: 3px;
}

.pages-nav-popup .nav-popup-header-title {
    display: flex;
    align-items: center;
}

.pages-nav-popup-header h3 {
    font-weight: 500;
    font-size: 1.1rem;
}

.pages-nav-popup .pages-nav-popup-header i:hover {
    background: rgba(0, 0, 0, 0.1);
}

.pages-nav-popup .nav-popup-header-buttons {
    display: flex;
    align-items: center;
}

[name="btn_get_notes"] {
    transition: transform .3s ease-in-out;
}
[name="btn_get_notes"][data="all"] {
    transform: rotate(180deg);
}

[name="btn_new_note"] {
    transition: transform .3s ease-in-out;
}
[name="btn_new_note"].active {
    transform: rotate(135deg);
}

/* ------------ NOTE-POPUP-CONTENT ------------ */

.pages-nav-popup-body {
    flex: 1;
    position: relative;
}


.pages-nav-popup-content {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.nav-popup-header-tabs {
    position: absolute;
    top: -1.1rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
    padding: 0 .5rem;
    width: 100%;
    z-index: 2;
}

.nav-popup-header-tabs-item {
    padding: 0rem 15px;
    padding-bottom: 0;
    font-size: .75em;
    background-color: rgb(var(--accent-color), 1);
    color: #fff;
    border-radius: .5rem .5rem 0 0;
    cursor: pointer;
}

.nav-popup-header-tabs-item.active {
    background-color: rgb(var(--main-color), 1);
    color: rgb(var(--primary-title-text));
}

.note-screen.active .note-screen-title {
    opacity: 1;
    pointer-events: all;
}

.note-screen-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    color: var(--light-text);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease-in;
    z-index: 2;
}

.note-screen textarea {
    font-family: 'Heebo', sans-serif;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    font-size: 0.9rem;
    resize: none;
    background: rgba(var(--modal-background-color));
    color: var(--text-smooth);
    border: none;
    width: 100%;
    height: 100%;
    padding: 20px;
    padding-top: 40px;
    transition: transform .3s ease-in-out;
    z-index: 1;
}

.note-screen.active textarea {
    transform: translateY(0);
}

.note-screen button {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(-350%);
    color: var(--light-text);
    font-size: 1rem;
    border: var(--border);
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
    z-index: 1;
}

.note-screen.active button {
    transform: translateX(50%);
}

.note-list {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
    background: rgba(var(--main-color));
    cursor: auto;
}

.note-list-item {
    position: relative;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-bottom: var(--border);
    background: rgba(var(--main-color));
    color: var(--text-smooth);
}
.note-list-item:hover {
    color: var(--light-text);
}

.note-list-item i {
    position: absolute;
    right: 10px;
    top: 0;
    color: rgba(var(--red-color), 1);
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
}

.note-list-item:hover i {
    background: transparent;
    opacity: 1;
    pointer-events: all;
}

.note-title {
    font-weight: 500;
    font-size: 1rem;
}

.note-description {
    padding: 5px 0;
}

.note-footer {
    font-size: 0.6rem;
    text-transform: full-width;
    font-style: italic;
    font-weight: 500;
    opacity: 0.5;
}

.note-list .empty-message {
    flex: 1;
    background: rgba(var(--modal-background-color));
}

.note-list .empty-message i {
    background: var(--background-icon-color);
    color: var(--icon-color);
    padding: 30px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    pointer-events: none;
}

.note-list .empty-message i:hover {
    background: rgba(var(--secundary-color));
}

.note-list .empty-message h3 {
    margin: 10px 0;
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 500;
}

.note-list .empty-message span {
    text-align: center;
    color: var(--text-smooth);
    font-size: .9rem;
}

/* ------------ PAGES-BTN ------------ */
.app .pages-btn {
    display: flex;
    height: 100%;
}

.app .pages-btn-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(var(--accent-color), 1);
    font-weight: bold;
    padding-left: 10px;
}

.app .pages-btn-item i {
    height: auto;
    width: auto;
    margin-right: 5px;
}

.app .pages-btn-item i:hover {
    background: none;
}

.app .pages-btn-item [name="label"] {
    font-size: 1rem;
    padding-top: 3px;
    text-transform: uppercase;
}

/* ----------PAGES-SEARCH ----------*/
.pages-search {
    position: absolute;
    display: flex;
    align-items: center;
    font-size: 1rem;
    padding: 10px 20px;
    top: 0;
    transform: translateY(-100%);
    left: 0;
    background: rgba(var(--main-color));
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 1;
}

.pages-search.active {
    transform: translateY(0);
}

.pages-search input {
    flex: 1;
    border: none;
    font-size: 0.9rem;
    padding: 0 10px;
    height: 100%;
    color: var(--light-text);
}
.pages-search input::placeholder {
    color: #a6b2c4;
}

.pages-search-result {
    position: absolute;
    display: none;
    flex-direction: column;
    top: 65px;
    left: 0;
    font-size: 0.9rem;
    background: rgb(var(--main-color), .9);
    backdrop-filter: blur(.5rem);
    max-height: 500px;
    padding: 0 10px;
    margin: 0;
    min-width: 100%;
    border-top: var(--border);
    border-bottom: var(--border);
    transition: .2s;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    border-radius: 0 0 .5rem .5rem;
}
.pages-search-result.active {
    display: flex;
}

.pages-search-result h3 {
    margin: 20px 0;
    padding: 0 20px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: .9rem;
}

.pages-search-result-item {
    padding: 10px;
    margin: 0 10px;
    font-size: .875rem;
    border-radius: .3rem;
    margin-bottom: 10px;
    cursor: pointer;
}
.pages-search-result-item:hover {
    background: rgba(var(--secundary-color), .9);
}

.pages-search-result .not-found {
    padding: 20px;
    width: 100%;
}
.pages-search-result .looking {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.pages-search-result .looking i {
    height: auto;
    width: auto;
    cursor: default;
}
.pages-search-result .looking i:hover {
    background: transparent;
}

/* PAGES CONTENT */
.pages-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ---------- CONTENT ----------*/
.content .screen {
    display: none;
    background: transparent;
    font-size: 0.8rem;
    cursor: default;
}

.screen.active {
    display: flex;
}

.screen.disabled {
    pointer-events: none;
}

.content.pages[pages-header-top="false"] .pages-header {
    position: absolute;
    background: rgba(var(--main-color), .9);
    backdrop-filter: blur(.5rem);
    z-index: 2;
}
.content.pages[pages-header-top="false"] .pages-header:hover {
    background: rgba(var(--main-color), 1);
}

/* ---------- BACKGROUND-FLOAT ----------*/
.background-float {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-float);
    transition: .2s linear;
    opacity: 0;
    pointer-events: none;
    z-index: 99;
}

.background-float.active {
    opacity: 1;
    pointer-events: all;
}

.background-float .card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 450px;
    /* max-width: 600px; */
    background: rgba(var(--modal-background-color));
    box-shadow: var(--box-shadow-popup);
    border-radius: 10px;
    pointer-events: all;
    padding: 10px;
    margin: 0px;
    font-size: 0.9rem;
    transform: scale(.9);
    transition: .2s ease-in-out;
    cursor: default;
    opacity: 0;
    z-index: 100;
}
.background-float.active .card {
    opacity: 1;
    transform: scale(1);
}

.background-float .card.invalid input[name="name"] {
    padding-bottom: 9px;
    border-bottom: 2px solid rgba(var(--red-color), 1) !important;
}

.background-float .card.invalid .buttons .btn {
    pointer-events: none;
    opacity: .5;
}

.background-float .float-error {
    color: rgb(var(--red-color));
    font-size: .875rem;
}

/* HEADER */
.background-float .card-float-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    font-size: 1rem;
    color: var(--primary-title-text);
}

.background-float .card-float-header h1 {
    font-weight: 500;
    font-size: 1.2rem;
}

.background-float .card-float-header [name="background_float_close"] {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    font-size: 1.2rem;
    padding: 10px;
    cursor: pointer;
    color: rgb(var(--accent-color));
}

.background-float .card-float-header [name="background_float_close"]:hover {
    background: rgba(var(--secundary-color));
}

/* CONTENT */
.background-float .card-float-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.background-float .float-item {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    padding: 10px 20px;
    margin-bottom: 5px;
    color: var(--light-text);
}

.background-float .float-item.disabled {
    opacity: .5;
    pointer-events: none;
}

.background-float .float-item label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
}
.background-float .float-item label i {
    margin-right: 10px;
    color: var(--icon-color);
}

.background-float .float-item input::placeholder {
    color: var(--icon-color);
}

.background-float .float-item input,
.background-float .float-item select {
    width: 100%;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-smooth);
    padding: 10px 0px;
    border: none;
    border-bottom: var(--border);
    background: rgba(var(--modal-background-color));
}

.background-float .float-item input:focus,
.background-float .float-item select:focus {
    padding-bottom: 9px;
    border-bottom: 2px solid rgba(var(--accent-color), 1);
}

.background-float input[type="color"] {
	-webkit-appearance: transparent;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 3rem;
	border: none;
    opacity: 0;
    cursor: pointer;
}
.background-float input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}
.background-float input[type="color"]::-webkit-color-swatch {
    border-radius: 15px;
	border: none;
}

.background-float .float-list {
    display: flex;
    align-items: center;
}
.background-float .float-list a {
    position: relative;
    border-radius: 3rem;
    padding: 5px 20px;
    background: rgba(var(--secundary-color));
    cursor: pointer;
}
.background-float .float-list a:hover {
    background: rgba(var(--accent-color));
    border-color: transparent;
    color: #fff;
}

.background-float .float-list-item {
    margin-right: 10px;
}
.background-float .float-list-item:hover {
    opacity: .8;
}

.background-float .float-list-item i {
    color: var(--icon-color);
    font-size: 1rem;
}

.background-float .float-list-item.selected {
    cursor: default;
}
.background-float .float-list-item.selected:hover {
    opacity: 1;
}

.background-float .float-separator {
    height: 40px;
    width: 1px;
    background: rgba(var(--border-color));
    margin: 0 20px;
}

.background-float .icon-selected {
    position: relative;
    background: rgba(var(--border-color));
}
.background-float .remove-icon-selected {
    position: absolute;
    background: rgba(var(--main-color), .8);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    transition: opacity .15s ease-in-out;
    border-radius: 5rem;
    color: rgba(var(--red-color)) !important;
    cursor: pointer;
}
.background-float .remove-icon-selected:hover {
    opacity: 1;
}

.background-float .color-selected {
    position: relative;
    flex-shrink: 0;
    transition: .15s;
}

.background-float .color-selected::after {
    content: '\2714';
    transform: scale(1.5);
    transition: transform .15s;
    transform: scale(0);
}
.background-float .color-selected.selected::after {
    transform: scale(1.5);
}

.background-float .icon-selected.selected::after {
    opacity: .7;
}

/* FOOTER */
.background-float .card-float-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 20px;
}

.background-float .card-float-footer .buttons {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.background-float .buttons.disabled {
    opacity: .5;
    pointer-events: none;
}


.background-float .card-float-footer .btn {
    font-size: 0.9rem;
    border-radius: 3rem;
    padding: 10px 40px;
}

.background-float .card-float-footer .btn-secundary {
    margin-right: 10px;
}

/* FLOAT POPUPS */
.float-icons-list {
    background: rgba(var(--main-color), .9);
    backdrop-filter: blur(.5rem);
    max-height: 350px;
    overflow: hidden;
    overflow-y: auto;
}

.float-icons-list h3 {
    font-size: 1rem;
    padding-bottom: 20px;
    color: var(--primary-title-text);
    font-weight: 500;
}

.float-icons-list ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 5px;
}
.float-icons-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5rem;
    color: var(--icon-color);
    height: 40px;
    width: 40px;
    cursor: pointer;
}
.float-icons-list li:hover {
    background: rgba(var(--secundary-color));
}

/* REDIRECT SCREEN */
.redirect-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background: rgb(var(--secundary-color));
    color: var(--primary-title-text);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    opacity: 0;
    cursor: default;
    font-size: 1rem;
}
.redirect-screen.visible {
    opacity: 1;
}
.redirect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    min-width: 400px;
}

.redirect-logo {
    height: 50px;
    width: 50px;
    margin-bottom: 30px;
}

.redirect-title {
    font-size: 2em;
    color: var(--primary-title-text);
    font-weight: bold;
}

.redirect-description {
    font-size: .95em;
}
.redirect-separator {
    font-size: .8em;
}

.redirect-link {
    color: var(--light-text);
    font-weight: normal;
    margin-top: 30px;
    font-size: .875em;
}
.redirect-screen .sync-link {
    text-decoration: none;
    outline: none;
    cursor: pointer;
}

/* USER PHOTO MODAL */

.modal-user-photo {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    color: var(--text-smooth);
}

.modal-user-photo-portrait {
    background: linear-gradient(45deg, red, rgb(255, 145, 0), rgb(255, 218, 8), rgb(30, 209, 54), rgb(0, 183, 255), rgb(198, 41, 219), rgb(255, 123, 215));
    height: 15rem;
    width: 15rem;
    border-radius: 50%;
    padding: .2rem;
    margin-bottom: 40px;
}

.modal-user-photo img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-user-photo-drop {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    border: 5px dashed rgb(var(--border-color));
    background: rgb(var(--secundary-color));
    color: var(--icon-color);
    border-radius: .3rem;
    padding: 40px;
}

.modal-user-photo-drop h3 {
    color: var(--primary-title-text);
    font-weight: normal;
    font-size: 1.4rem;
    margin-left: 10px;
}

.modal-user-photo-separator {
    display: flex;
    align-items: center;
    margin: 10px 0;
    margin-bottom: 15px;
    width: 50%;
}
.modal-user-photo-separator-item {
    flex: 1;
    height: 1px;
    background: rgb(var(--border-color));
}

.modal-user-photo-actions {
    display: flex;
}

.modal-user-photo-actions > :first-child {
    margin-right: 10px;
}

.modal-user-photo-actions .btn {
    display: flex;
    align-items: center;
    color: rgba(var(--accent-color));
}

.modal-user-photo-actions .btn i {
    margin-right: 10px;
}

/* MODAL EXPIRED TIME */

.modal-expired-time {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--text-smooth));
    font-size: 1.1rem;
    background-color: rgb(var(--secundary-color));
    text-align: center;
    z-index: 9999;
}

.modal-expired-time .alert-icon {
    color: var(--background-alert);
    font-size: 2rem;
}

.card-expired-time {
    max-width: 600px;
    background-color: rgb(var(--main-color), .5);
    backdrop-filter: blur(1rem);
    padding: 60px 20px;
    z-index: 1;
}

.title-expired-time {
    font-weight: 500;
    color: rgb(var(--primary-title-text));
    font-size: 2.4rem;
}

.message-expired-time {
    margin: 1.5rem 0;
}

.link-expired-time {
    width: 100%;
    text-decoration: none;
    font-size: .875rem;
}

.badge {
    display: inline-block;
    background-color: gray;
    color: #fff;
    font-size: .6rem;
    padding: 2px 4px;
    border-radius: 3px;
}

.bg-red {
    background-color: rgb(var(--red-color));
}

.bg-green {
    background-color: rgb(var(--green-color));
}

.bg-blue {
    background-color: rgb(var(--blue-color));
}

.bg-yellow {
    background-color: rgb(var(--yellow-color));
}

.bg-purple {
    background-color: rgb(var(--purple-color));
}

.bg-orange {
    background-color: rgb(var(--orange-color));
}

.bg-pink {
    background-color: rgb(var(--pink-color));
}


@media (max-width: 1000px) {

    .app .sidebar {
        border-right: none;
        z-index: 53;
    }

    .sidebar-nav {
        padding: 0 20px;
    }

    .sidebar-item {
        border-radius: 20px;
    }
}

@media (max-width: 700px) {

    .alert {
        position: absolute;
        bottom: 10px;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    .alert.active {
        bottom: 0;
        margin-top: 0;
    }

    .app {
        overflow: hidden;
    }

    .app .pages-header {
        box-shadow: none;
        padding: 0 10px;
    }

    .app .pages-nav-item {
        margin: 0px;
    }

    .pages-nav-popup {
        position: fixed;
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        border-radius: 0;
        min-width: auto;
        margin: 0;
    }
    .pages-nav-popup.active {
        top: 0;
    }

    .pages-nav-popup-header {
        padding: 10px 5px;
    }

    .pages-nav-popup-header [name="btn_close_notes"] {
        display: flex;
    }

    .pages-nav-popup .note-list {
        min-height: 100%;
        max-height: auto;
    }

    .pages-search {
        width: 100%;
    }

    .pages-flag-popup {
        right: -50%;
        transform: translateX(50%);
    }

    /* ---------- BACKGROUND FLOAT ----------*/

    .background-float .card {
        top: 0;
        display: flex;
        flex-direction: column;
        height: 100vh;
        min-width: 100%;
        padding: 10px;
        border-radius: 0;
        overflow: hidden;
        overflow-y: auto;
    }

    .background-float form {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .background-float .card-float-content {
        flex: 1;
    }

    .background-float .float-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .background-float .float-list a {
        margin-top: 10px;
    }

    /* ---------- REDIRECT SCREEN ----------*/
    .redirect-container {
        min-width: 100vw;
        background: transparent;
        box-shadow: none;
    }

    /* ---------- USER PHOTO MODAL ----------*/

    .modal-user-photo {
        height: max-content;
    }

    .modal-user-photo-drop,
    .modal-user-photo-separator {
        display: none;
    }

    .modal-user-photo-actions {
        flex-direction: column;
    }

    .modal-user-photo-actions > :first-child {
        margin-bottom: 10px;
        margin-right: 0;
    }

    /* PAGES SEARCH RESULT */

    .pages-search-result {
        max-height: 100vh;
    }

}