/*Estilo padrão dos inputs*/
label:has(input, select, textarea) {
    appearance: unset;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: 0.5s;

    input,
    select,
    textarea {
        padding: 16px 12px;
        background: var(--bg-90);
        border-radius: 12px;
        border: unset;
        font-size: 0.9em;
        color: var(--texto-70);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    img,
    svg {
        position: absolute;
        bottom: 14px;
        right: 12px;
        width: 20px;
        opacity: 0.5;
    }

    &.branco input,
    &.branco select {
        background: #fff;
    }

    &:has(input:focus-within) {
        color: var(--texto-95);
        border-color: rgba(43, 43, 43, 0.12);
    }

    &:has(input:not(:placeholder-shown)) {
        border-color: rgba(43, 43, 43, 0.24);
        color: var(--texto-95);

        img,
        svg {
            opacity: 0.82;
        }
    }
}

/*Estilo padrão dos botões*/
.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 25rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    text-align: center;
    background-color: var(--cor1);
    color: white;
    font-weight: 500;
    font-size: 0.95em;
    gap: 8px;

    &.cor2 {
        background-color: var(--cor2);
        color: white;
    }

    .mini {
        padding: 0.5rem 0.75rem;
    }

    &.sucesso {
        background-color: var(--verde);
        color: white;
    }

    &.aviso {
        background-color: var(--amarelo);
        color: white;
    }

    &.erro {
        background-color: var(--vermelho);
        color: white;
    }

    &.cancelar {
        background-color: #c1c1c1;
        color: #212121;
    }

    &:hover {
        filter: brightness(1.175);
    }

    svg, img {
        width: 18px;
        height: 18px;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    min-height: 100%;
    background: rgba(0, 0, 0, 0.33);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    display: grid;
    place-items: center;

    &.ativo {
        opacity: 1;
        pointer-events: auto;
        animation: fadeIn 0.3s ease-in-out;
    }

    &.ativo .modal-container {
        animation: scaleIn 0.3s ease-in-out;
    }

    .modal-container {
        width: 90%;
        max-width: 750px;
        background: #fff;
        transform-origin: center;
        border-radius: 12px;
        position: relative;
    }

    .modal-container.grande {
        width: 96%;
        max-width: 1440px;
        min-height: 420px;
        max-height: 95dvh;
        overflow-y: auto;
    }

    .modal-fechar {
        position: absolute;
        right: 16px;
        top: 16px;
        font-size: 1.37em;
        color: #211f1f;
        cursor: pointer;
    }
}

.notificacao {
    position: fixed;
    top: 32px;
    right: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 8px;
    padding: 8px 8px 8px 0px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0px 0px 10px 0px rgb(133 132 132 / 24%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 9999999;

    div {
        display: flex;
        flex-direction: column;
    }

    &.sucesso {
        background: var(--verde);
    }

    &.erro {
        background: var(--vermelho);
    }

    &.info {
        background: var(--cor1);
    }

    &.aviso {
        background: var(--aviso);
    }

    .notificao-titulo {
        margin: 0;
        font-size: 1em;
        color: #fff;
    }

    .notificacao-icone {
        width: 42px;
        margin: 8px 16px;
        filter: brightness(0) invert(1);
    }

    .notificacao-fechar {
        position: absolute;
        top: 6px;
        right: 6px;
        filter: brightness(0) invert(1);
        cursor: pointer;
        font-size: 0.75em;
        line-height: 1rem;
    }

    .notificacao-detalhes {
        font-size: 0.8em;
        line-height: 1.2rem;
        color: #fff;
        opacity: 0.75;
    }
}

a {
    color: var(--cor1);
    font-weight: 500;

    &:has(img) {
        line-height: 0;
    }
}

.processando {
    pointer-events: none;
    opacity: 0.7;

    img {
        filter: invert(1);
        width: 18px;
    }
}

.mini, .pequeno {
    font-size: 0.8em;
    color: var(--texto3);
}

#conteudo {
    flex: 1;
    min-height: 100dvh;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
}

@media (max-width: 767px) {

    .notificacao {
        left: 50%;
        transform: translateX(-50%);
    }
}
