html {
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

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

:root {
    /* Colors */
    --primary-color: #4c7cff;
    --hover-primary-color: #3e64ca;
    --panel-color: #fff;
    --text-color: #000;
    --black-light-color: #707070;
    --border-color: #e6e5e5;
    --toggle-color: #ddd;
    --box1-color: #B8B8FF;
    --box2-color: #F8F7FF;
    --box3-color: #FFEEDD;
    --box4-color: #E7D1FC;
    --box5-color: #d1fcfa;
    --box6-color: #d1fcdd;
    --title-icon-color: #fff;

    /* Transition */
    --tran-05: all 0.5s ease;
    --tran-03: all 0.3s ease;
    --tran-03: all 0.2s ease;
}

body {
    min-height: 100vh;
}

body.dark {
    --primary-color: #3A3B3C;
    --hover-primary-color: #272829;
    --panel-color: #242526;
    --text-color: #CCC;
    --black-light-color: #CCC;
    --border-color: #4D4C4C;
    --toggle-color: #FFF;
    --box1-color: #3A3B3C;
    --box2-color: #3A3B3C;
    --box3-color: #3A3B3C;
    --box4-color: #3A3B3C;
    --box5-color: #3A3B3C;
    --box6-color: #3A3B3C;
    --title-icon-color: #CCC;
}

/*=============================================
Pantalla de carga
=============================================*/
.loadCentrado {
    background-color: #fff;
    height: 100%;
    width: 100%;
    position: fixed;
    -webkit-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
    z-index: 10000;
    top: 0;
    display: none;
}

.loadCentrado img {
    height: 10rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    -webkit-animation: girar 1.5s linear infinite;
    -o-animation: girar 1.5s linear infinite;
    animation: girar 1.5s linear infinite;
}

.hiddenLoad {
    overflow: hidden;
}

@keyframes girar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/*=============================================
Modal
=============================================*/
.contenedor_modal {
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: -1;
}

.contenedor_modal button {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    padding: 14px 22px;
    border: none;
    background: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
}

.contenedor_modal button:hover {
    background-color: var(--hover-primary-color);
    transition: .3s ease-in;
}

.contenedor_modal button.show-modal,
.modal-box {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.contenedor_modal.active {
    z-index: 100000;
}

.contenedor_modal.active .show-modal {
    display: none;
}

.overlay-modal {
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
}

.contenedor_modal.active .overlay-modal {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 380px;
    width: 100%;
    padding: 30px 20px;
    border-radius: 24px;
    background-color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%) scale(1.2);
}

.contenedor_modal.active .modal-box {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.modal-box i {
    font-size: 70px;
    color: var(--primary-color);
}

.modal-box h2 {
    margin-top: 20px;
    font-size: 25px;
    font-weight: 500;
    color: #333;
}

.modal-box h3 {
    font-size: 19px;
    font-weight: 400;
    color: #000;
    text-align: center;
    padding: .7rem;
}

.modal-box p {
    font-size: 15px;
    font-weight: 400;
    color: #000;
    text-align: center;
}

.modal-box p a {
    color: #000;
    text-decoration: none;
    text-transform: 600;
    font-weight: bold;
}

.modal-box .buttons {
    margin-top: 25px;
}

.modal-box button {
    font-size: 17px;
    padding: 6px 12px;
    margin: 0 10px;
}

/*=============================================
Table
=============================================*/
.title-sin-data {
    font-weight: 400;
    color: var(--black-light-color);
}

table {
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    width: 100%;
    table-layout: fixed;
}

table tr {
    background-color: var(--panel-color);
    color: var(--black-light-color);
    padding: .35em;
    transition: var(--tran-05);
}

table tbody tr {
    border-bottom: 2 solid #CCC;
}

table th,
table td {
    padding: .625em;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

table td {
    vertical-align: baseline;
}

table th {
    font-size: .85em;
    letter-spacing: .1em;
    text-transform: uppercase;
}

table .title-column {
    font-size: 1rem;
    font-weight: bold;
}

table .status-active {
    background-color: #49e055;
    color: #fff;
    padding: 0.2rem 1rem;
    cursor: pointer;
}

table .status-in-process {
    background-color: #fffc5d;
    color: #fff;
    padding: 0.2rem 1rem;
    cursor: pointer;
}

table .status-inactive {
    background-color: #FF5555;
    color: #fff;
    padding: 0.2rem .7rem;
    cursor: pointer;
}

table .actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

table .actions span i {
    cursor: pointer;
    font-size: 1.2rem;
}

/*=============================================
Form
=============================================*/
.contenedor-form {
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.contenedor-form form {
    display: flex;
    flex-direction: column;
}

.form-input-field {
    position: relative;
    border-bottom: 2px solid var(--black-light-color);
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    transition: var(--tran-05);
}

.form-input-field label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: var(--black-light-color);
    font-size: 16px;
    pointer-events: none;
    transition: var(--tran-05);
}

.form-input-field textarea {
    min-height: 80px;
    resize: vertical;
}

textarea[readonly] {
    cursor: not-allowed;
}

.form-input-field input,
.form-input-field textarea {
    width: 100%;
    height: 40px;
    margin-top: 1rem;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--black-light-color);
    transition: var(--tran-05);
}

.form-input-field input:focus~label,
.form-input-field input:valid~label,
.form-input-field textarea:focus~label,
.form-input-field textarea:valid~label,
.form-input-field textarea:not(:placeholder-shown)~label {
    font-size: 0.8rem;
    top: 10px;
    transform: translateY(-120%);
}

.format-buttons {
    display: flex;
    justify-content: left;
}

.format-buttons .bold-button,
.format-buttons .url-button,
.format-buttons .emoji-button {
    background-color: #303030;
    border-radius: 0;
}

.format-buttons .bold-button,
.format-buttons .url-button {
    color: #fff;
}

.format-buttons .emoji-button.smile {
    color: #FFFB00;
}

.format-buttons .emoji-button.check {
    color: #00E943;
}

.format-buttons .emoji-button.heart {
    color: #FF0000;
}

.format-buttons .emoji-button.money {
    color: #00E943;
}

.contenedor-form a {
    color: #efefef;
    text-decoration: none;
}

.contenedor-form a:hover {
    text-decoration: underline;
}

.contenedor-form form button {
    background: var(--primary-color);
    color: var(--title-icon-color);
    font-weight: 600;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 16px;
    border: 2px solid transparent;
    transition: 0.3s ease;
    margin-top: 15px;
    align-self: center;
}

.contenedor-form form button:hover {
    background-color: var(--hover-primary-color);
    transition: .3s ease-in;
}

.selection {
    margin-bottom: 1rem;
    border: 1px solid var(--black-light-color);
    overflow: hidden;
    width: 100%;
    position: relative;
    transition: var(--tran-05);
}

.selection select {
    background: transparent;
    border: none;
    font-size: 14px;
    height: 30px;
    padding: 5px 15px;
    width: 100%;
    color: var(--black-light-color);
    transition: var(--tran-05);
    cursor: pointer;
}

.selection select:focus {
    outline: none;
}

.selection::after {
    content: "\025be";
    display: table-cell;
    padding-top: 7px;
    text-align: center;
    width: 30px;
    height: 30px;
    background-color: #d9d9d9;
    position: absolute;
    top: 0;
    right: 0px;
    pointer-events: none;
    transition: var(--tran-05);
}

@media (min-width: 768px) {

    .contenedor-form form {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .form-input-field {
        flex: 0 0 calc(50% - 15px);
        margin: 15px 0;
    }

    .contenedor-form form button {
        width: 100%;
        margin-top: 15px;
    }
}

/*=============================================
Custom Scroll Bar
=============================================*/
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b3cc1;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    padding: 10px 14px;
    background-color: var(--panel-color);
    border-right: 1px solid var(--border-color);
    transition: var(--tran-05);
}

nav.close {
    width: 73px;
}

nav .logo-name {
    display: flex;
    align-items: center;
}

nav .logo-image {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 0.5rem;
}

nav .logo-image img {
    width: 70px;
    object-fit: cover;
    border-radius: 50%;
}

nav .logo-name .logo_name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 14px;
    transition: var(--tran-05);
}

nav.close .logo_name {
    opacity: 0;
    pointer-events: none;
}

nav .menu-items {
    margin-top: 40px;
    height: calc(100% - 90px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-items li {
    list-style: none;
}

.menu-items li a {
    display: flex;
    align-items: center;
    height: 50px;
    text-decoration: none;
    position: relative;
}

.nav-links li a:hover:before {
    content: "";
    position: absolute;
    left: -7px;
    height: 5px;
    width: 5px;
    border-radius: 50%;
    transition: .3s ease-in;
    background-color: var(--primary-color);
}

body.dark li a:hover:before {
    background-color: var(--text-color);
}

.menu-items li a i {
    font-size: 17px;
    min-width: 45px;
    margin-bottom: 5px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black-light-color);
}

.menu-items li a .link-name {
    font-size: 18px;
    font-weight: 400;
    color: var(--black-light-color);
    transition: var(--tran-05);
}

nav.close li a .link-name {
    opacity: 0;
    pointer-events: none;
}

.nav-links li a:hover i,
.nav-links li a:hover .link-name {
    transition: .3s ease-in;
    color: var(--primary-color);
}

body.dark .nav-links li a:hover i,
body.dark .nav-links li a:hover .link-name {
    color: var(--text-color);
}

.menu-items .logout-mode {
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.menu-items .logout-mode .logout:hover a i,
.menu-items .logout-mode .logout:hover a span {
    color: #ff4848;
    transition: .3s ease-in;
}

.menu-items .mode {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.menu-items .mode-toggle {
    position: absolute;
    right: 14px;
    height: 50px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mode-toggle .switch {
    position: relative;
    display: inline-block;
    height: 22px;
    width: 40px;
    border-radius: 25px;
    background-color: var(--toggle-color);
}

.switch:before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 15px;
    width: 15px;
    background-color: var(--panel-color);
    border-radius: 50%;
    transition: var(--tran-03);
}

body.dark .switch:before {
    left: 20px;
}

.dashboard {
    position: relative;
    left: 250px;
    background-color: var(--panel-color);
    min-height: 100vh;
    width: calc(100% - 250px);
    padding: 10px 14px;
    transition: var(--tran-05);
}

nav.close~.dashboard {
    left: 73px;
    width: calc(100% - 73px);
}

.dashboard .top {
    position: fixed;
    top: 0;
    left: 250px;
    display: flex;
    width: calc(100% - 250px);
    justify-content: space-between;
    align-items: center;
    padding: 20px 14px;
    background-color: var(--panel-color);
    transition: var(--tran-05);
    z-index: 10;
}

nav.close~.dashboard .top {
    left: 73px;
    width: calc(100% - 73px);
}

.dashboard .top .sidebar-toggle {
    font-size: 26px;
    color: var(--text-color);
    cursor: pointer;
}

.search-box {
    position: relative;
    height: 45px;
    max-width: 600px;
    width: 100%;
    margin: 0 30px 20px;
}

.search-box input {
    border: 1px solid var(--border-color);
    background-color: var(--panel-color);
    padding: 0 25px 0 50px;
    border-radius: 5px;
    height: 100%;
    width: 100%;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 400;
    outline: none;
}

.search-box i {
    position: absolute;
    left: 15px;
    font-size: 22px;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    color: var(--black-light-color);
}

.top img {
    width: 40px;
    border-radius: 50%;
}

.dashboard .dash-content {
    padding-top: 50px;
}

.dash-content .title {
    display: flex;
    align-items: center;
    margin: 60px 0 30px 0;
}

.title #list,
.title #create,
.title #pending,
.title #pending-payment,
.title #responses,
.title #sync,
.title #trial-period {
    cursor: pointer;
}

.title #list:hover,
.title #create:hover,
.title #pending:hover,
.title #pending-payment:hover,
.title #responses:hover,
.title #sync:hover,
.title #trial-period:hover {
    background-color: var(--hover-primary-color);
    transition: .3s ease-in;
}

.dash-content .title i {
    position: relative;
    height: 35px;
    width: 35px;
    background-color: var(--primary-color);
    border-radius: 6px;
    color: var(--title-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 5px;
}

.dash-content .title .text {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color);
    margin-left: 7px;
}

.dash-content .boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.dash-content .boxes .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    padding: 15px 20px;
    background-color: var(--box1-color);
    transition: var(--tran-05);
}

.boxes .box i {
    font-size: 25px;
    color: var(--text-color);
}

.boxes .box .text {
    white-space: nowrap;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 0 10px;
    color: var(--text-color);
}

.boxes .box .number {
    font-size: 40px;
    font-weight: 500;
    color: var(--text-color);
}

.boxes .box.box2 {
    background-color: var(--box2-color);
}

.boxes .box.box3 {
    background-color: var(--box3-color);
}

.boxes .box.box4 {
    background-color: var(--box4-color);
}

.boxes .box.box5 {
    background-color: var(--box5-color);
}

.boxes .box.box6 {
    background-color: var(--box6-color);
}

@media (max-width: 1300px) {
    table {
        border: 0;
    }

    table caption {
        font-size: 1.3em;
    }

    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
    }

    table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: right;
    }

    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    table td:last-child {
        border-bottom: 0;
    }

    table .actions {
        gap: 1rem;
    }

    .search-box {
        position: relative;
        height: 45px;
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 1000px) {
    nav {
        width: 73px;
    }

    nav.close {
        width: 250px;
    }

    nav .logo_name {
        opacity: 0;
        pointer-events: none;
    }

    nav.close .logo_name {
        opacity: 1;
        pointer-events: auto;
    }

    nav li a .link-name {
        opacity: 0;
        pointer-events: none;
    }

    nav.close li a .link-name {
        opacity: 1;
        pointer-events: auto;
    }

    nav~.dashboard {
        left: 73px;
        width: calc(100% - 73px);
    }

    nav.close~.dashboard {
        left: 250px;
        width: calc(100% - 250px);
    }

    nav~.dashboard .top {
        left: 73px;
        width: calc(100% - 73px);
    }

    nav.close~.dashboard .top {
        left: 250px;
        width: calc(100% - 250px);
    }
}

@media (max-width: 780px) {
    .dash-content .boxes {
        grid-template-columns: repeat(1, 1fr);
    }

    .dash-content .boxes .box {
        margin-top: 15px;
    }
}

@media (max-width: 490px) {
    nav {
        width: 0px;
    }

    nav.close {
        width: 73px;
    }

    nav .logo_name {
        opacity: 0;
        pointer-events: none;
    }

    nav.close .logo_name {
        opacity: 0;
        pointer-events: none;
    }

    nav li a .link-name {
        opacity: 0;
        pointer-events: none;
    }

    nav.close li a .link-name {
        opacity: 0;
        pointer-events: none;
    }

    nav~.dashboard {
        left: 0;
        width: 100%;
    }

    nav.close~.dashboard {
        left: 73px;
        width: calc(100% - 73px);
    }

    nav~.dashboard .top {
        left: 0;
        width: 100%;
    }

    nav.close~.dashboard .top {
        left: 0;
        width: 100%;
    }

    .format-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}