@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    font-family: Arial, Helvetica, sans-serif;
    border: none;
}

:root {
    --color1: #EFEFEF;
    --color2: #00447C;
    --color3: #A9A9A9;
    --color4: #757575;
    --color5: #e4e4e4;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

body {
    min-height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(img/wave.webp);
}

.calc {
    flex-direction: column;
    justify-content: center;
    width: 500px;
    height: 600px;
    border-radius: 15px;
    background-color: var(--color1);
    box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.151);
    position: relative;
    transition: .2s ease-in-out;
    align-items: start;
}

#calcItens {
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    width: 100%;
    height: 100%;
}

.calc h1 {
    font-weight: 700;
    font-size: 37px;
    color: var(--color2);
    align-self: center;
}

label {
    font-weight: 700;
    color: var(--color3);
}

.required-input {
    width: 100%;
    position: relative;
}

.required-flex {
    width: 47%;
}

.required-flex #table,
.required-flex #year {
    width: 100%;
}

.required-icon {
    position: absolute;
    top: -20px;
    right: 0px;
    font-size: 25px;
    font-weight: bold;
    color: var(--color2);
}

.calc input {
    color: var(--color4);
    font-weight: 600;
}

.calc input,
#btn-calc {
    padding: 13px;
    width: 100%;
    border-radius: 8px;
    transition: .2s ease-in-out;
}

#btn-calc:hover, #proBtn:hover {
    background-color: var(--color4);
}

.flex-input {
    width: 100%;
    justify-content: space-between;
}

#input-flex-pro {
    width: 100%;
    justify-content: space-between;
    flex-direction: column;
}

.calc .flex-input .input-check, .flex-input .noCheck, .flex-menor {
    width: 47%;
}

.form-check input {
    padding: 8px;
    cursor: pointer;
}

input:disabled {
    background-color: white;
}

.form-check input:checked {
    background-color: var(--color2);
    box-shadow: none;
}

#btn-calc {
    padding: 10px;
    background-color: var(--color2);
    font-size: 25px;
    color: white;
    font-weight: 600;
    gap: 5px;
    height: 53px;
}

#loader {
    animation: load 1s ease-in-out infinite;
}

@keyframes load {
    0% {
        transform: rotate(0turn);
    }

    100% {
        transform: rotate(1turn);
    }
}

.mensagem {
    position: absolute;
    font-weight: bold;
    color: var(--color3);
    margin: 0;
}

#trf {
    bottom: 0;
    right: 15px;
}

strong {
    font-size: 20px;
    color: var(--color2);
}

#mensagemRequired {
    bottom: 0;
    left: 8px;
}

#out-side {
    background-color: rgba(0, 0, 0, 0.151);
    height: 100vh;
    width: 100vw;
    position: absolute;
    display: none;
}

#modal,
#relatorio {
    background-color: var(--color1);
    height: 200px;
    width: 300px;
    border-radius: 15px;
    padding: 20px;
    flex-direction: column;
}

#modal {
    position: relative;
    z-index: 1;
    gap: 15px;
}

#resultado {
    background-color: white;
    color: var(--color4);
    border-radius: 5px;
    width: 100%;
    height: 50px;
    box-shadow: 0 0 4px 0px rgba(0, 0, 0, 0.219);
    font-weight: bold;
    font-size: 20px;
    z-index: 1;
}


#modal-buttons {
    width: 100%;
    justify-content: space-between;
    z-index: 1;
}


.button-flex {
    justify-content: space-between;
    margin-bottom: 8px;
}

#modal-buttons button {
    background-color: var(--color2);
    color: white;
    font-weight: 500;
    font-size: 17px;
    border-radius: 3px;
    padding: 5px;
    z-index: 1;
}

#modal-buttons .button-flex button {
    width: 46%;
}

#close-modal {
    width: 100%;
}

#relatorio {
    position: absolute;
    z-index: 0;
    align-items: start;
    font-weight: bold;
    color: var(--color2);
    width: 270px;
    transition: .2s ease-in-out;
    gap: 0;
    padding-top: 24px;
}

#p {
    opacity: 0;
    transition: .3s ease-in-out;
}

#p p {
    margin: 0;
    padding: 0;
}

#menu {
    width: 45px;
    position: absolute;
    top: 20px;
    left: 20px;
    transition: .2s ease-in-out;
}

#menu img {
    width: 100%;
    position: absolute;
    z-index: 1;
    cursor: pointer;
}

#nav {
    position: absolute;
    background-color: white;
    list-style: none;
    border-radius: 3px;
    gap: 8px;
    top: 4px;
    left: 14px;
    padding: 6px 0;
    justify-content: end;
    width: 0;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.123);
    overflow: hidden;
    transition: .2s ease-in-out;
}

#nav li a {
    color: var(--color2);
    text-decoration: none;
    background-color: var(--color1);
    padding: 5px 8px;
    border-radius: 3px;
    transition: .2s ease-in-out;
}

#nav li a:hover {
    background-color: var(--color4);
    color: white;
}

#menu:hover #nav {
    width: 485px;
    padding: 6px 8px;
}

.slide-container {
    background-color: #dbdbdb;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.123);
    border-radius: 10px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    max-width: 100%;
    height: 40px;
}

.slide-content {
    overflow: hidden;
    width: 0;
    transition: .2s ease-in-out;
}

.user {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    padding: 2px;
    cursor: pointer;
}

#userIcon {
    font-size: 40px;
    background-color: rgb(255, 255, 255);
    color: var(--color3);
    border-radius: 5px;
    cursor: pointer;
    transition: .2s ease-in-out;
}

.requiredUser {
    position: relative;
}

#userIcon:hover {
    opacity: .7;
}



.user img.selected {
    background-color: var(--color2);
    padding: 3px;
}

#tipo {
    background-color: white;
    color: var(--color4);
    font-weight: 600;
    width: 100%;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    padding: 13px;
    border-radius: 8px;
    transition: .2s ease-in-out;
}

#tipo p {
    margin: 0;
}

#tipo:hover {
    background-color: var(--color2);
    color: white;
}

#tipo i {
    font-weight: bold;
    font-size: 20px;
}

#options::-webkit-scrollbar {
    background-color: white;
}

#options::-webkit-scrollbar-thumb {
    background-color: var(--color5);
    border-radius: 10px;
}

#options {
    position: absolute;
    flex-direction: column;
    top: 50px;
    left: 0;
    background-color: white;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    width: 100%;
    z-index: 2;
    overflow-y: scroll;
    height: 0;
    transition: .2s ease-in-out;
}

#up {
    display: none;
}

.line {
    padding: .5px;
    background-color: #a9a9a946;
    width: 90%;
}

.option {
    color: white;
    padding: 10px;
    width: 100%;
}

.option p {
    margin: 0;
    cursor: pointer;
    transition: .2s ease-in-out;
}

.option:hover p {
    color: var(--color5);
}

.radio {
    display: none;
}

#alert {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 0;
    height: 75px;
    background-color: var(--color1);
    font-weight: bold;
    color: var(--color2);
    gap: 5px;
    border-radius: 8px;
    font-size: 18px;
    overflow: hidden;
    transition: .2s ease-in-out;
}

#alert i {
    font-size: 20px;
}

#closeAlert {
    position: absolute;
    top: 3px;
    right: 3px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s ease-in-out;
}

#closeAlert:hover {
    color: var(--color4);
}

.proBtn {
    width: 12%;
    padding: 9px;
    background-color: var(--color2);
    color: white;
    font-weight: bold;
    font-size: 30px;
    border-radius: 5px;
    transition: .2s ease-in-out;
}

.proInput {
    justify-content: space-between;
    width: 100%;
}

#nome {
    width: 85%;
}

@keyframes proMode {
    0% {
        transform: rotate(0turn);
    }

    100% {
        transform: rotate(.25turn);
    }
}

@keyframes normalMode {
    0% {
        transform: rotate(.25turn);
    }

    100% {
        transform: rotate(0turn);
    }
}

.calculadora-transition {
    transition: width 0.5s ease, height 0.5s ease;
}

#spin {
    display: flex;
    position: absolute;
    font-size: 80px;
    align-self: center;
    animation: load 1s ease-in-out infinite;
    color: var(--color3);
    transition: .2s ease-in-out;
    opacity: 0;
}

.manutencao {
    cursor: no-drop;
}

#trf1, #mora {
    font-weight: bold;
    color: #00447C;
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #00447C;
}

#trf1 p, #mora p {
    margin: 0;
    font-size: 20px;
}

.toggle-button {
    display: inline-block;
    border: 2px solid #ccc;
    width: 40px;
    border-radius: 4px;
    background-color: #f9f9f9;
    color: var(--color2);
    cursor: pointer;
    user-select: none;
    text-align: center;
    font-weight: bold;
    transition: .2s ease-in-out;
}

.toggle-button.active,
.toggle-button:hover {
    background-color: var(--color2);
    color: white;
    border: none;
}

.adicionais {
    justify-content: space-between;
    width: 47%;
    display: none;
}

.flex-menor {
    justify-content: space-between;
}

.flex-menor input {
    width: 47%;
}

#valor-juros, #month {
    width: 100%;
}

#required-input-menor {
    position: relative;
    width: 0;
}

#required-input-menor, #yearremove {
    display: none;
}

#tableadd {
    width: 100%;
}