:root {
    --primary: #29405A;
    --secondary: #FFFFFF;
    --tertiary: #F5F8FA;

    --danger: #812323;
    --success: #76b822;
    --neutral: #2b4382;
    --warning: #e4a910;

    --text-light: #ffffff;
    --text-medium: #a9a9a9;
    --text-dark: #29405A;

    --button-primary: #29405a;
    --button-green: #7dff7dc1;
    --button-red: #ff24247c;
    --button-blue: #508bcba8;
    --button-yellow: #ffff00a4;

    --border: #a7a7a7;

    --form-control: #cecece;

    --hover-effect: #818181;
    --sidebar-hover-effect: #2b3541;
}

* {
    font-family: "Inter", serif;
}

html {
    font-size: 1vw;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#fullPageBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--tertiary);
}

a {
    text-decoration: none;
    white-space: nowrap;
    color: inherit;
}

a:hover {
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
}

button,
.standard-button {
    font-size: 0.7rem;
    background-color: var(--button-primary);
    transition: background-color 0.5s ease;
    color: var(--text-light);
    border: 0.1rem solid var(--text-light);
    border-radius: 0.5rem;
    padding: 0.3rem 0.5rem;
    vertical-align: middle;
    cursor: pointer;
    white-space: nowrap;
}

button:hover,
.standard-button:hover {
    background-color: var(--secondary);
    color: var(--text-dark);
    border: 0.1rem solid var(--text-dark);
    white-space: nowrap;
}

button:disabled,
.standard-button:disabled,
.table-button:disabled {
    background: none !important;
    color: var(--text-dark) !important;
    cursor: not-allowed !important;
    border: 0.05rem solid var(--text-medium);
}

button:disabled:hover,
.standard-button:disabled:hover,
.table-button:disabled:hover {
    background: none;
    color: var(--text-dark);
    cursor: not-allowed;
    border: 0.05rem solid var(--text-medium);
}

.green-button {
    font-size: 0.7rem;
    background-color: var(--button-green);
    color: green;
    border: 0.1rem solid green;
    border-radius: 0.5rem;
    padding: 0.3rem 0.5rem;
    vertical-align: middle;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.5s ease;
}

.green-button:hover {
    background-color: #009d00;
    color: var(--text-light);
    border: 0.1rem solid var(--text-light);
    white-space: nowrap;
}

.red-button,
.x-button {
    font-size: 0.7rem;
    background-color: var(--button-red);
    color: darkred;
    border: 0.1rem solid darkred;
    border-radius: 0.5rem;
    padding: 0.3rem 0.5rem;
    vertical-align: middle;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.5s ease;
}

.red-button:hover,
.x-button:hover {
    background-color: #dd0000;
    color: var(--text-light);
    border: 0.1rem solid var(--text-light);
    white-space: nowrap;
}

.blue-button {
    font-size: 0.7rem;
    background-color: var(--button-blue);
    color: darkblue;
    border: 0.1rem solid darkblue;
    border-radius: 0.5rem;
    padding: 0.3rem 0.5rem;
    vertical-align: middle;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.5s ease;
}

.blue-button:hover {
    background-color: #0000b6;
    color: var(--text-light);
    border: 0.1rem solid var(--text-light);
    white-space: nowrap;
}

.yellow-button {
    font-size: 0.7rem;
    background-color: var(--button-yellow);
    color: #8b8b00;
    border: 0.1rem solid #8b8b00;
    border-radius: 0.5rem;
    padding: 0.3rem 0.5rem;
    vertical-align: middle;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.5s ease;
}

.yellow-button:hover {
    background-color: #909000ae;
    color: var(--text-light);
    border: 0.1rem solid var(--text-light);
    white-space: nowrap;
    cursor: pointer;
}

.form-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.3rem;
    margin: auto;
    white-space: nowrap;
}

.form-check-label,
.form-control,
.form-select,
.option {
    font-size: 0.7rem;
    text-align: left;
    padding: 0.3rem 0.5rem;
    transition: background-color 0.5s ease;
    background-color: white;
    border-radius: 0.5rem;
    border: 0.1rem solid var(--border);
    color: #777777;
    cursor: pointer;
}

.option {
    font-size: 1rem;
}

.form-check-label {
    text-align: center;
    cursor: default;
}

.form-control:hover,
.form-select:hover,
option:hover {
    background-color: var(--primary);
    transition: background-color 0.5s ease;
    border: 0.1rem solid var(--border);
    color: var(--text-medium);
}

.form-control:focus,
.form-select:focus {
    background-color: white;
    transition: background-color 0.5s ease;
    border: 0.1rem solid var(--border);
    color: var(--text-dark);
    box-shadow: 0 0 0 0.1rem var(--border);
}

.form-check-label::placeholder,
.form-control::placeholder,
.form-select::placeholder {
    color: var(--text-medium);
}

.form-check-input {
    width: 0.8rem;
    height: 0.8rem;
    margin: 0.3rem 0.5rem;
    cursor: pointer;
}

.form-check-input:hover {
    background-color: var(--hover-effect);
    color: var(--text-light);
    border: 0.1rem solid var(--text-dark);
}

.form-check-input:focus {
    box-shadow: none;
}

.form-check-input:checked {
    background-color: green;
    border-color: darkgreen;
}

.veil {
    position: fixed;
    z-index: 998;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000080;
}

.loader {
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: transparent;
}

.loading-spinner div {
    box-sizing: content-box;
    position: absolute;
    border-width: 0.4rem;
    border-style: solid;
    opacity: 1;
    border-radius: 50%;
    animation: loading-spinner 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loading-spinner div:nth-child(1) {
    border-color: #e90c59;
    animation-delay: 0s;
}

.loading-spinner div:nth-child(2) {
    border-color: #46dff0;
    animation-delay: -0.5s;
}

.loading-spinner {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0;
}

::-webkit-scrollbar {
    background-color: white;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 2rem;
}

::-webkit-scrollbar-thumb {
    border-radius: 2rem;
    background-color: black;
    -webkit-box-shadow: 0 0 1px grey;
}

/* -------------------- K-E-Y - F-R-A-M-E-S -------------------- */

@keyframes loading-spinner {
    0% {
        top: 96px;
        left: 96px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 18px;
        left: 18px;
        width: 156px;
        height: 156px;
        opacity: 0;
    }
}

/* Fade In: Faz o elemento aparecer suavemente */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slide In from Left: Desliza o elemento da esquerda para sua posição original */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Bounce: Faz o elemento quicar */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

/* Pulse: Faz o elemento pulsar (aumentar e diminuir de tamanho) */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Spin: Faz o elemento girar */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Shake: Faz o elemento tremer */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}

/* Fade Out: Faz o elemento desaparecer suavemente */
@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Slide Out to Right: Desliza o elemento para a direita até sair da tela */
@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Slide In from Right: Desliza o elemento da direita para sua posição original */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Grow: Faz o elemento crescer */
@keyframes grow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.2);
    }
}

/* Shrink: Faz o elemento diminuir */
@keyframes shrink {
    from {
        transform: scale(1.5);
    }

    to {
        transform: scale(1);
    }
}

/* Flash: Faz o elemento piscar */
@keyframes flash {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

/* Swing: Faz o elemento balançar */
@keyframes swing {
    20% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(5deg);
    }

    80% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Zoom In: Aumenta o tamanho do elemento */
@keyframes zoomIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Zoom Out: Diminui o tamanho do elemento */
@keyframes zoomOut {
    from {
        transform: scale(1.5);
    }

    to {
        transform: scale(1);
    }
}

/* Slide In from Top: Desliza o elemento de cima para sua posição original */
@keyframes slideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Slide Out to Bottom: Desliza o elemento para baixo até sair da tela */
@keyframes slideOutBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Slide In from Bottom: Desliza o elemento de baixo para sua posição original */
@keyframes slideInBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Rotate and Scale: Gira e aumenta o elemento */
@keyframes rotateAndScale {
    from {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.5);
    }

    to {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes slideInFromBack {
    from {
        transform: translateZ(-1000px);
        opacity: 0;
    }
    to {
        transform: translateZ(0);
        opacity: 1;
    }
}

  
@keyframes slideInFromRight {
    from {
        transform: translateX(200%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideOutToBack {
    from {
        transform: translateZ(0);
        opacity: 1;
    }
    to {
        transform: translateZ(-1000px);
        opacity: 0;
    }
}

@keyframes slideOutToBottom {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes slideOutToTop {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes slideInToBack {
    from {
        transform: translateZ(1000px);
        opacity: 0;
    }
    to {
        transform: translateZ(0);
        opacity: 1;
    }
}

/* Para telas menores que 600px */
@media (max-width: 600px) {
    html {
        font-size: 1.5vw;
        /* Aumenta o tamanho da fonte em telas menores */
    }
}

/* Para telas entre 601px e 900px */
@media (min-width: 601px) and (max-width: 900px) {
    html {
        font-size: 1.25vw;
    }
}

/* Para telas maiores que 900px */
@media (min-width: 901px) {
    html {
        font-size: 1vw;
        /* Mantém o tamanho padrão para telas maiores */
    }
}