/*
 * Name: styles
 * Description: En este archivo definimos todo (o casi todo) el apartado visual de la plataforma.
 * Author: Emanuel Alderete
*/

/* Reseteo sencillo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
}

/* Definiciones generales */
:root {
    --primary-color: #9b252e;
    --dark-color: #393939;
    --dark-gray-color: #505050;
    --gray-color: #808080;
    --light-gray-color: #cacaca;
    --light-color: #ffffff;
    --transition: 350ms;
    --light-shadows: #00000038;
    --dark-shadows: #00000078;
}

html {
    font-size: 16px;
}

#body,
#events-body,
#error-body,
#single-main,
#form-body {
    color: var(--dark-gray-color);
    font-family: 'Nunito';
    h1, h2, h3, h4, h5, h6 {
        font-weight: 800;
    }
}

.disabled {
    background-color: rgb(from var(--light-gray-color) r g b / 15%) !important;
    color: var(--gray-color) !important;
    cursor: not-allowed !important;
    border-color: var(--light-gray-color) !important;
    box-shadow: none !important;
    a {
        pointer-events: none !important;
        color: var(--gray-color) !important;
        cursor: not-allowed !important;
    }
}

.nav-link.disabled {
    cursor: not-allowed !important;
}

/* Módulos reutilizables */

.buttons-center,
.buttons-left,
.buttons-right {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 1.45rem 0;
}

.buttons-center {
    justify-content: center;
}

.buttons-left {
    justify-content: flex-start;
}

.buttons-right {
    justify-content: flex-end;
}

.buttons {
    color: var(--light-color);
    padding: 0.5rem 2rem;
    border-radius: 99px 99px 99px 15px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
    transition: var(--transition);
    &:hover {
        background-color: var(--light-color);
        color: var(--primary-color);
        box-shadow: 0 0 10px var(--primary-color);
    }
}

.overlay {
    width: 100%;
    height: 100%;
}

.half-separator {
    width: 70%;
    height: 1px;
    background-color: var(--light-gray-color);
    margin: 1rem auto;
}

.title-non-content {
    color: var(--gray-color);
    font-style: italic;
    text-align: center;
    margin: 3rem 0;
}

.status-badge-active,
.status-badge-oncourse,
.status-badge-preparing,
.status-badge-finished,
.status-badge-completed,
.status-badge-canceled {
    &::before {
        content: '';
        width: 10px;
        height: 10px;
        display: inline-block;
        border-radius: 99px;
        margin-right: 0.4rem;
    }
}

.status-badge-preparing {
    &::before {
        background-color: var(--gray-color);
    }
}

.status-badge-oncourse {
    &::before {
        background-color: #ffa621;
        animation: breathing 800ms infinite alternate;
    }
}

@keyframes breathing {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.status-badge-active {
    &::before {
        background-color: #1c91df;
    }
}

.status-badge-finished {
    &::before {
        background-color: #fff021;
    }
}

.status-badge-completed {
    &::before {
        background-color: #21ffa2;
    }
}

.status-badge-canceled {
    &::before {
        background-color: #cc1717;
    }
}

.msg-toast {
    width: max-content;
    margin: 2rem auto 2rem;
}

#live-toast {
    position: fixed;
    z-index: 10;
    bottom: 1rem;
    right: 1rem;
    .toast-body {
        font-size: 1.1em;
    }
}

/* Efectos */
.hide-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(20%);
    pointer-events: none;
}

.font-thin {
    font-weight: 300 !important;
}

.light-gray-text {
    color: color-mix(in srgb, var(--light-gray-color) 70%, var(--gray-color) 30%);
}

/* ================================= */
/*         Página de login           */
/* ================================= */

#login-page {
    width: 100%;
    height: 100svh;
    .login-page__box:first-child {
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        .overlay {
            background-color: var(--light-shadows);
            padding: 1.5rem;
        }
    }
    .login-page__box {
        width: 50%;
    }
    .login-page__box:last-child {
        padding: 1.5rem 3rem;
        background-color: var(--light-color);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        box-shadow: -4px 0 25px var(--light-shadows);
        .login-page__logo {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 1rem 0 3rem;
            img {
                width: 200px;
            }
        }
        .login-page__content {
            width: 100%;
            .login-page__form {
                width: 100%;
                max-width: 400px;
                margin: 2rem auto;
                .login-page__input {
                    width: 100%;
                    padding: 0.5rem;
                    border: 1px solid var(--light-gray-color);
                    margin: 0.4rem 0;
                    border-radius: 8px;
                    &:focus {
                        outline: 4px solid #E71A0048;
                    }
                }
            }
            .invalid-login-text {
                color: var(--primary-color);
            }
        }
    }
}

/* ================================= */
/*        Dashboard principal        */
/* ================================= */

/* Advertencia: Vista móvil no disponible */
.mobile-warning {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10;
    top: 0;
    left: 0;
    padding: 2rem;
    background-color: var(--light-gray-color);
    .mobile-warning__inner {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        flex-wrap: wrap-reverse;
        border-radius: 20px;
        background-color: var(--light-color);
        border: 1px solid var(--gray-color);
        padding: 2rem;
        .mobile-warning__content {
            width: 50%;
            padding: 1rem;
        }
        img {
            width: 100%;
            max-width: 250px;
            height: 100%;
            object-fit: contain;
        }
    }
}

#events-body, #single-body, #error-body {
    overflow: hidden;
}

#events-body, #single-body, #error-body, #form-body {
    /* Header del dashboard */
    .header {
        background-color: var(--light-color);
        width: 100%;
        padding: 0.5rem 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .header__inner {
            .header__brand {
                width: 100px;
                display: flex;
                align-items: center;
                justify-content: flex-start;
                padding: 0 1rem;
                img {
                    width: 100%;
                    max-width: 100px;
                    height: 100%;
                    object-fit: contain;
                }
            }
            .user-menu {
                position: fixed;
                z-index: 6;
                width: 250px;
                padding: 0.7rem 0.5rem;
                background-color: var(--light-color);
                border-radius: 10px;
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                justify-content: flex-start;
                border: 1px solid var(--light-gray-color);
                top: 0.2rem;
                right: 0.5rem;
                transition: var(--transition);
                .user-menu__username {
                    width: calc(100% - 45px);
                    margin-left: 0.3rem;
                    display: -webkit-box;
                    overflow: hidden;
                    -webkit-line-clamp: 2;
                    line-clamp: 2;
                    -webkit-box-orient: vertical;
                    text-overflow: ellipsis;
                }
                ul {
                    list-style: none;
                    margin: 0;
                    padding: 0;
                    width: 100%;
                    li {
                        width: 100%;
                        margin: 0.4rem 0;
                        border-radius: 10px;
                        padding: 0.4rem;
                        cursor: pointer;
                        &:hover {
                            background-color: rgb(from var(--primary-color) r g b / 10%);
                            a {
                                color: var(--primary-color);
                            }
                        }
                        .user-menu__item {
                            background-color: transparent;
                            border: none;
                            width: 100%;
                            display: flex;
                            align-items: center;
                            justify-content: flex-start;
                            text-decoration: none;
                            color: var(--dark-color);
                        }
                    }
                }
                .app-version {
                    color: var(--light-gray-color);
                    padding-left: 0.5rem;
                    font-size: 0.8em;
                }
            }
        }
        .header__inner:last-child {
            display: flex;
            align-items: center;
            justify-content: space-between;
            .header__greeting {
                margin-right: 2rem;
                margin-bottom: 0;
            }
            .header__user-profile {
                display: flex;
                position: relative;
                z-index: 7;
                align-items: center;
                justify-content: center;
                background-color: transparent;
                border-radius: 99px;
                border: none;
                overflow: hidden;
                width: 40px;
                height: 40px;
                img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }
            }
        }
    }
}

#single-body {
    overflow: auto !important;
    #single-header {
        position: sticky;
        top: 0;
        box-shadow: 0 2px 5px var(--light-shadows);
        z-index: 10;
    }
    #single-main {
        .event-card {
            .event-card__title {
                -webkit-line-clamp: 2;
                line-clamp: 2;
            }
            .event-card__actions {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                flex-wrap: wrap;
                width: 40%;
                .event-card__button {
                    border-radius: 99px;
                    background-color: transparent;
                    width: 50px;
                    height: 50px;
                    color: var(--primary-color);
                    font-size: 1.2em;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin: 0.5rem;
                    border: none;
                    transition: var(--transition);
                    text-decoration: none;
                    &:hover {
                        background-color: var(--primary-color);
                        color: var(--light-color);
                    }
                }
            }
        }
    }
}

/* Cuerpo del dashboard */
#events-main {
    width: 100%;
    background-color: var(--light-color);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 1rem 0.5rem;
    .main__sidebar {
        background-color: var(--light-color);
        width: 100%;
        max-width: 200px;
        padding: 0.5rem 0.5rem 0.5rem 0;
        height: calc(100svh - 70px);
        .main__nav {
            width: 100%;
            .nav-link {
                width: 100%;
                text-align: start;
                background-color: transparent;
                color: var(--dark-color);
                padding: 1rem;
                margin: 0.2rem 0;
                border-radius: 15px 15px 15px 0;
                .fa-solid {
                    margin-right: 0.7rem;
                }
            }
            .nav-link:hover:not(.active) {
                background-color: rgb(from var(--primary-color) r g b / 10%);
            }
            .nav-link.active {
                background-color: rgb(from var(--primary-color) r g b / 15%);
                color: var(--primary-color);
            }
            .nav-link:last-child {
                position: absolute;
                max-width: 192px;
                bottom: 1rem;
            }
        }
    }
    .main__content {
        background-color: rgb(from var(--light-gray-color) r g b / 15%);
        border-radius: 25px;
        width: calc(100% - 200px);
        padding: 1rem;
        height: calc(100svh - 70px);
        .tab-content {
            height: 100%;
            .tab-pane {
                height: 100%;
                &:focus {
                    outline: none !important;
                }
            }
        }
    }
}

/* Tabla de home */
#v-pills-home {
    overflow-y: auto;
    border-radius: 15px;
    .tabpanel__body {
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: 20px;
        .tabpanel__inner {
            padding: 1.5rem;
            background-color: var(--light-color);
            border-radius: 25px;
            margin-top: 2.5rem;
            width: 100%;
        }
    }
}

#fullCalendar {
    .fc-col-header-cell {
        background-color: rgb(from var(--primary-color) r g b / 15%);
        border-color: var(--light-color);
        a {
            text-decoration: none;
            color: var(--dark-gray-color);
            text-transform: capitalize;
        }
    }
    .fc-daygrid-day-top {
        a {
            text-decoration: none;
            color: var(--dark-gray-color);
            text-transform: capitalize;
        }
    }
}

/* Tabla de eventos */
#v-pills-events {
    .tabpanel__header {
        padding: 0.5rem;
        .buttons-right {
            margin: 0;
        }
    }
    .tabpanel__body {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        .tabpanel__active-events {
            width: calc(70% - 10px);
        }
        /*.tabpanel__ended-events {
            width: calc(30% - 10px);
        }
        .tabpanel__inner::-webkit-scrollbar {
            width: 10px;
            height: 10px;
            border-radius: 0 10px 10px 0;
        }*/
        .tabpanel__inner {
            background-color: var(--light-color);
            border-radius: 20px;
            border: 1px solid rgb(from var(--light-gray-color) r g b / 50%);
            padding: 0 0 1rem;
            height: calc(100vh - 200px);
            overflow-y: auto;
            position: relative;
            width: 100%;
            .tabpanel__inner-header {
                background-color: var(--light-color);
                padding: 0 1rem;
                display: flex;
                align-items: center;
                width: 100%;
                height: 57px;
                position: sticky;
                top: 0;
                left: 0;
                border-bottom: 1px solid var(--light-gray-color);
            }
            .tabpanel__inner-content {
                padding: 1rem;
            }
        }
    }
}

/* Cards de eventos */
.event-card {
    width: 100%;
    background-color: var(--light-color);
    border-radius: 20px;
    padding: 1rem;
    margin: 0.5rem 0;
    box-shadow: 0 2px 5px var(--light-shadows);
    transition: var(--transition);
    border: 1px solid var(--light-gray-color);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    &:hover {
        box-shadow: 0 5px 10px var(--light-shadows);
        border: 1px solid var(--primary-color);
    }
    &:hover .event-card__info .event-card__title {
        color: var(--primary-color);
    }
    .event-card__info {
        width: 55%;
        padding-right: 0.4rem;
        .event-card__title {
            margin: 0 0 0.4rem;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .event-card__customer {
            padding: 0.1rem 0.5rem;
            border-radius: 99px;
            border: 1px solid var(--gray-color);
        }
        .event-card__creation {
            color: var(--gray-color);
            margin: 0.4rem 0 1rem;
        }
    }
    .event-card__date {
        width: 20%;
        padding: 0 0.4rem;
    }
    .event-card__people {
        width: 20%;
        padding: 0 0.4rem;
    }
    .event-card__actions {
        padding-left: 0.4rem;
        width: 5%;
        .event-card__menu-button {
            border-radius: 99px;
            width: 34px;
            height: 34px;
            background-color: transparent;
            border: 1px solid var(--light-color);
            &:hover {
                border: 1px solid var(--gray-color);
            }
        }
    }
}

.event-card-redux {
    width: 100%;
    color: var(--dark-gray-color);
    /* background: linear-gradient(135deg, rgba(0, 1, 36, 0.096) 0%, rgba(0,1,36,0) 8%, rgba(0,1,36,0) 57%, rgba(231,26,0,0.3561799719887955) 81%); */
    border-radius: 15px;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    box-shadow: 0 2px 5px var(--light-shadows);
    transition: background 0.4s ease-in-out, box-shadow 0.4s ease-in-out, border 0.4s ease-in-out;
    border: 1px solid var(--light-gray-color);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    &:hover {
        box-shadow: 0 5px 10px var(--light-shadows);
        border: 1px solid rgb(from var(--primary-color) r g b / 50%);
        /* background: linear-gradient(135deg, rgba(0, 1, 36, 0.096) 0%, rgba(0,1,36,0) 19%, rgba(0,1,36,0) 72%, rgba(231,26,0,0.3561799719887955) 100%); */
    }
    &:hover .event-card-redux__title {
        color: var(--primary-color);
    }
    .event-card-redux__info {
        width: 70%;
        padding-right: 0.4rem;
        .event-card-redux__title {
            margin: 0 0 0.4rem;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: var(--transition);
        }
        .event-card-redux__customer {
            padding: 0.1rem 0.5rem;
            border-radius: 99px;
            border: 1px solid var(--dark-gray-color);
            margin-bottom: 0.6rem;
            display: inline-block;
        }
        h6 {
            color: var(--dark-gray-color);
            margin-bottom: 0.2rem;
        }
        p {
            margin-bottom: 0 !important;
            color: var(--dark-gray-color);
        }
    }
    .event-card-redux__people {
        p {
            text-align: end;
            margin-bottom: 0;
        }
    }
}

/* Cards de eventos (inactivos) */
.ended-card {
    border: 1px solid var(--light-gray-color);
    border-radius: 15px;
    box-shadow: 0 2px 5px var(--light-shadows);
    padding: 0.7rem;
    transition: var(--transition);
    margin: 0.5rem 0;
    .ended-card__header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        .ended-card__title {
            display: -webkit-box;
            width: calc(100% - 20px);
            margin: 0;
            line-clamp: 1;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            transition: var(--transition);
        }
        .ended-card__inline-status {
            width: 15px;
            transition: var(--transition);
            opacity: 1;
            &::before {
                transition: var(--transition);
                width: 10px;
                height: 10px;
                overflow: hidden;
                padding-right: 10px;
            }
        }
    }
    .ended-card__info {
        width: 100%;
        display: flex;
        height: 0px;
        padding: 0;
        opacity: 0;
        align-items: center;
        justify-content: space-between;
        overflow: hidden;
        transition: var(--transition);
    }
    &:hover .ended-card__info {
        height: max-content;
        padding-top: 0.5rem;
        opacity: 1;
    }
    &:hover .ended-card__title {
        width: 100%;
        color: var(--primary-color);
    }
    &:hover .ended-card__inline-status {
        width: 0px;
        opacity: 0;
        &::before {
            padding-right: 0px;
            width: 0px;
        }
    }
    &:hover {
        border: 1px solid var(--primary-color);
    }
}

/* Formulario creación de eventos */
#form-new-event {
    .form-field {
        position: relative;
    }
    .form-options {
        position: absolute;
        width: 100%;
        z-index: 5;
        padding: 0.5rem;
        background-color: var(--light-color);
        border: 1px solid var(--light-gray-color);
        border-radius: 10px;
        box-shadow: 3px 3px 5px var(--light-shadows);
        list-style: none;
        margin: 0;
        display: none;
        .form-options__item {
            padding: 0.5rem;
            display: block;
            color: var(--dark-gray-color);
            text-decoration: none;
            cursor: pointer;
        }
    }
    #field-customer:focus-within .form-options {
        display: block;
    }
}

/* ================================= */
/*          Página: Eventos          */
/* ================================= */

#single-main {
    width: 100%;
    padding: 1rem 2rem;
    background-color: rgb(from var(--light-gray-color) r g b / 15%);
    .main__content {
        width: 100%;
        max-width: 1300px;
        margin: 0 auto;
    }
}

.main__section {
    width: 100%;
    color: var(--dark-gray-color);
    .main__row {
        width: 100%;
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: 20px;
        margin: 1rem 0;
        .main__inner {
            background-color: var(--light-color);
            border-radius: 20px;
            border: 1px solid rgb(from var(--light-gray-color) r g b / 50%);
            padding: 1rem;
            .main-inner__header {
                width: 100%;
                padding-bottom: 0.5rem;
                border-bottom: 1px solid rgb(from var(--light-gray-color) r g b / 50%);
                margin-bottom: 2rem;
                display: flex;
                align-items: center;
                justify-content: space-between;
                .event__edit-button {
                    color: var(--primary-color);
                    background-color: transparent;
                    font-size: 1.1em;
                    padding: 0 1rem;
                    transition: var(--transition);
                    border: 2px solid var(--light-color);
                    border-radius: 99px;
                    &:hover {
                        border: 2px solid var(--primary-color);
                    }
                }
            }
            .main-inner__body {
                width: 100%;
            }
        }
        .box70 {
            width: calc(70% - 10px);
        }
        .box30 {
            width: calc(30% - 10px);
        }
    }
    .main__row:first-child {
        margin-top: 0;
    }
    .main__row:last-child {
        margin-bottom: 0;
    }
    #event-attc-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* ================================= */
/*         Página: Error 404         */
/* ================================= */
#error-main {
    .error__container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 1rem 2rem;
        height: 87svh;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        .error__inner {
            .error__image {
                width: 100%;
                max-width: 600px;
                margin: 1rem auto;
                img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }
            }
        }
    }
}

/* ================================= */
/*           Página: Forms           */
/* ================================= */
#form-main {
    width: 100%;
    .form__section {
        width: 100%;
        font-family: 'Nunito';
        color: var(--dark-gray-color);
        padding-bottom: 2rem;
        .form__nav {
            background-color: var(--light-color);
            display: flex;
            align-items: center;
            justify-content: center;
            position: sticky;
            top: 0;
            left: 0;
            z-index: 5;
            .nav-tabs {
                .nav-link {
                    border: none;
                    border-bottom: 4px solid var(--light-color);
                    font-weight: 600;
                    color: var(--dark-gray-color);
                }
                .nav-link.active {
                    color: var(--primary-color);
                    border-bottom: 4px solid var(--primary-color);
                }
            }
        }
        .form__content {
            width: 100%;
            margin: auto;
            padding: 0 1rem;
            .tab-pane {
                .form-banner {
                    width: 100%;
                    border-radius: 20px;
                    overflow: hidden;
                    margin-bottom: 1.5rem;
                    box-shadow: 4px 4px 10px rgb(from var(--light-shadows) r g b / 10%);
                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
                .form-bubble {
                    padding: 1rem;
                    background-color: var(--light-color);
                    color: var(--dark-gray-color);
                    border-radius: 30px 5px 30px 30px;
                    box-shadow: 4px 4px 10px rgb(from var(--light-shadows) r g b / 10%);
                }
                .form__fields-group {
                    width: 100%;
                    margin: 1.5rem 0;
                    .form__field {
                        width: 100%;
                        padding: 1rem;
                        border-radius: 30px 5px 30px 30px;
                        box-shadow: 4px 4px 10px rgb(from var(--light-shadows) r g b / 10%);
                        margin: 1.5rem 0;
                        background-color: var(--light-color);
                        color: var(--dark-gray-color);
                        display: flex;
                        align-items: center;
                        flex-wrap: wrap;
                        justify-content: flex-start;
                        position: relative;
                        .form__field--id {
                            position: absolute;
                            color: rgb(from var(--gray-color) r g b / 50%);
                            top: 0.7rem;
                            right: 0.7rem;
                            z-index: 2;
                            font-size: 0.8em;
                        }
                        .form__label {
                            width: 100%;
                            display: block;
                            font-size: 1em;
                        }
                        .form__description {
                            width: 100%;
                            font-size: 1em;
                            margin: 0;
                        }
                        .form__input, .form__textarea {
                            background-color: transparent;
                            border: none;
                            border-bottom: 2px dashed var(--light-gray-color);
                            width: 100%;
                            font-size: 1em;
                            margin-top: 1.2rem;
                            padding: 0.5rem;
                            transition: 50ms ease-in-out;
                            border-radius: 8px;
                            outline: 0px solid #e1231b38;
                            &:focus {
                                outline: 4px solid #e1231b38;
                            }
                        }
                        .form__input {
                            max-width: 325px;
                        }
                        .form__textarea {
                            resize: none;
                        }
                        .form__options-group {
                            width: 100%;
                            margin-top: 1.2rem;
                            .form__group {
                                width: 100%;
                                display: block;
                            }
                        }
                        .form__select {
                            min-width: min-content;
                            width: 100%;
                            max-width: max-content;
                            margin-top: 1.2rem;
                            border: 2px solid var(--light-gray-color);
                            border-radius: 5px;
                            padding: 0.2rem 0.5rem;
                        }
                    }
                }
            }
            #nav-questions, #nav-config {
                width: 100%;
                max-width: 720px;
                margin: 0 auto;
            }
            .form__submit {
                padding: 0.5rem 2rem;
                border-radius: 99px 99px 99px 15px;
                font-weight: 600;
                transition: var(--transition);
            }
        }
    }
    .new-field {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        .new-field__button {
            padding: 0.3rem 1.4rem;
            border-radius: 99px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .new-field__options {
            position: absolute;
            top: 0;
            right: 0;
            width: 200px;
            background-color: var(--gray-color);
            color: var(--light-color);
            transform: translate(0, -78%);
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            padding: 1rem;
            border-radius: 15px;
            flex-wrap: wrap;
            .new-field__items-group {
                h6 {
                    width: 100%;
                    margin-bottom: 1rem;
                }
                .new-field__item {
                    background-color: transparent;
                    border: none;
                    color: var(--light-color);
                    padding: 0.3rem 1rem;
                    border-radius: 99px 99px 99px 7px;
                    &:hover {
                        background-color: var(--light-color);
                        color: var(--gray-color);
                    }
                }
            }
        }
    }
}

.form__brand {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    img {
        width: 80px;
    }
}

.ideForms-submit-spinner,
.editForm-submit-spinner {
    margin-left: -1rem;
    margin-right: 0.5rem;
    animation: infinite linear 2s rotate;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Formulario de edición de IDE Forms */
.edit-form {
    color: var(--dark-gray-color);
    hr {
        margin: 2rem 0;
        padding: 0 2rem;
        border: 2px dashed var(--light-gray-color);
    }
    .form-bubble {
        margin: 1.5rem 0;
        .form__field {
            .form__label {
                display: block;
                width: 100%;
                font-weight: 700;
                font-size: 1.2em;
            }
            .form__description {
                width: 100%;
                display: block;
                font-size: 0.9em;
            }
            .form__input {
                width: 100%;
                border: 1px solid var(--light-gray-color);
                margin-top: 0.5rem;
                padding: 0.5rem;
                transition: 50ms ease-in-out;
                border-radius: 8px;
                outline: 0px solid #e1231b38;
                color: var(--dark-gray-color);
                &:focus {
                    outline: 4px solid #e1231b38;
                }
            }
            .form__input--color {
                width: 100%;
                margin-top: 0.5rem;
                transition: 50ms ease-in-out;
                border: 1px solid var(--light-gray-color);
                max-width: 165px;
                height: 45px;
                padding: 0.5rem;
                border-radius: 10px;
            }
            .form__textarea {
                color: var(--dark-gray-color);
            }
        }
    }
}

/* Página de respuestas */
.answers__content {
    width: 100%;
    padding: 2rem;
    .answers__bubble {
        background-color: var(--light-color);
        padding: 1rem;
        border-radius: 20px;
        box-shadow: 4px 4px 10px rgb(from var(--light-shadows) r g b / 10%);
    }
    .answers__table-container {
        width: 100%;
        overflow: auto;
        .answers__table {
            width: 100%;
            min-width: 1400px;
            margin: 1rem 0 0;
            border-collapse: separate;
            border-radius: 20px;
            border: 1px solid rgb(from var(--light-gray-color) r g b / 50%);
            thead {
                width: 100%;
                position: relative;
                tr {
                    position: sticky;
                    top: 0;
                    th {
                        padding: 0.7rem;
                        text-transform: uppercase;
                        border-bottom: 1px solid rgb(from var(--light-gray-color) r g b / 50%);
                        border-collapse: collapse;
                    }
                    th:first-child {
                        border-right: 1px solid rgb(from var(--light-gray-color) r g b / 50%);
                    }
                }
            }
            tbody {
                width: 100%;
                padding: 1rem 1.5rem;
                .answers__table-row {
                    border-bottom: 1px solid rgb(from var(--light-gray-color) r g b / 50%);
                    &:hover {
                        background-color: rgb(from var(--light-gray-color) r g b / 50%);
                    }
                    td {
                        border-bottom: 1px solid rgb(from var(--light-gray-color) r g b / 50%);
                        padding: 0.7rem;
                        border-collapse: collapse;
                        width: auto;
                        white-space: nowrap;
                    }
                    td:first-child {
                        border-right: 1px solid rgb(from var(--light-gray-color) r g b / 50%);
                    }
                }
                tr:last-child {
                    td {
                        border-bottom: none;
                    }
                }
            }
        }
    }
    .answers__controls,
    .certs__controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        .search-answer,
        .search-cert {
            .search-answer__query,
            .search-cert__query {
                padding: 0.5rem;
                border: 1px solid rgb(from var(--light-gray-color) r g b / 50%);
                border-radius: 10px;
                .search-answer__option,
                .search-cert__option {
                    padding: 0.2rem 0.5rem;
                }
            }
            .search-answer__input,
            .search-cert__input {
                padding: 0.5rem;
                border: 1px solid rgb(from var(--light-gray-color) r g b / 50%);
                border-radius: 10px;
            }
            .search-answer__submit,
            .search-cert__submit {
                padding: 0.5rem 0.7rem;
                color: var(--light-color);
                border-radius: 99px;
            }
        }
        .answers__count {
            width: fit-content;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            padding: 0.5rem 0;
            span {
                width: 100%;
                text-align: center;
            }
            span.count-number {
                font-size: 3em;
                font-weight: 900;
                line-height: 2rem;
            }
            span.count-label {
                font-weight: 700;
                padding-top: 4rem;
                margin-top: -4rem;
                background: linear-gradient(0deg, var(--light-color) 30%, transparent 50%);
            }
        }
    }
}

/* Menú contextual de las respuestas */
#answers-context-menu {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    z-index: 4;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 4px 4px 10px rgb(from var(--light-shadows) r g b / 10%);
    width: fit-content;
    .contextmenu__list {
        list-style: none;
        padding: 0;
        margin: 0;
        .contextmenu__item {
            overflow: hidden;
            &:hover {
                background-color: var(--light-gray-color);
            }
            button {
                width: 100%;
                background-color: transparent;
                border: none;
                padding: 0.5rem 1.8rem;
            }
        }
        .contextmenu__item:first-child {
            border-radius: 10px 10px 0 0;
        }

        .contextmenu__item:last-child {
            border-radius: 0 0 10px 10px;
        }
    }
}