html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: "Inter", sans-serif;
}

h1, h2, h3 {
    font-family: "Baloo 2", sans-serif;
}


body {
    opacity: 0;
}

    body.fade-out {
        opacity: 0;
    }

    body.fade-in {
        opacity: 0;
        animation: fadeIn 1s forwards;
    }

    body.show {
        opacity: 1;
    }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


.big-title {
    line-height: 75%;
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: -4px !important;
    color: #fff;
}

.title {
    font-size: 3rem;
    font-weight: bold;
}

.small-title {
    font-size: 40px;
    color: #fff;
    font-weight: bold;
}

.sub-title {
    font-size: 40px;
    font-weight: 300 !important;
    color: #fff;
    opacity: 0.65;
    ;
    letter-spacing: -2px !important;
}

.small-sub-title {
    font-size: 24px;
    color: #000;
}

.home-box {
    position: absolute;
    bottom: 50px;
}

button {
    padding: 10px 50px;
    background-color: #48BBC7 !important;
    font-weight: bold;
    color: #fff;
    border-radius: 30px;
    border: 0px;
    transition: .14s ease-out;
}

    button:hover {
        background-color: #494949;
        color: #fff;
    }

.top-info {
    text-align: right;
    position: absolute;
    right: 50px;
    top: 20px;
    width: 350px;
}

    .top-info div {
        color: #fff;
        opacity: 0.65;
    }

    .top-info img {
        width: 200px;
    }

.all-page-info {
    position: relative;
    height: 100vh;
    overflow: scroll;
    background-color: #003256;
    transition: 1s ease-out;
}

    .all-page-info::-webkit-scrollbar {
        width: 0px;
        height: 0px;
    }

.home-box {
    position: absolute;
    bottom: 50px;
    left: 60px;
}

.calculator {
    width: 80%;
}

    .calculator label {
        width: 100% !important;
    }

    .calculator input, select {
        width: 100%;
        background-color: #F5F5F5;
        padding: 10px;
        border: 0px;
        font-size: 20px;
        font-weight: bold;
    }

.family-member {
    display: flex;
}

.dropzone {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
    position: relative;
}

    .dropzone:hover {
        background-color: #f0f0f0;
    }

    .dropzone input {
        display: none;
    }

.dropzone-icon {
    font-size: 40px;
    color: #666;
    margin-bottom: 10px;
}

.dropzone-title {
    font-size: 18px;
    font-weight: bold;
}

.dropzone-desc {
    display: block;
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

.uploaded-files {
    margin-top: 20px;
}

.uploaded-label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.file-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border: 2px solid #00A980;
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 5px;
    font-size: 14px;
}

.remove-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
}

    .remove-btn:hover {
        background-color: #e60000;
    }


#loading {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* black with 50% opacity */
    z-index: 9999; /* on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 6px solid #f3f3f3; /* light grey */
    border-top: 6px solid #3498db; /* blue */
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#ShowFormCalculator {
    margin-top: 20px;
}

.result-table-container {
    margin: 30px auto;
    max-width: 100%;
    overflow-x: auto;
    font-family: 'Segoe UI', sans-serif;
}

table.result-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    table.result-table thead {
        background-color: #4CAF50;
        color: white;
    }

    table.result-table th, table.result-table td {
        padding: 12px 16px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    table.result-table tbody tr:hover {
        background-color: #f1f1f1;
    }

    table.result-table td.impact-note {
        font-style: italic;
        color: #444;
    }

#Notafinal {
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    table .result-table th, table.result-table td {
        padding: 10px;
        font-size: 14px;
    }
}

.semaforo-fatura {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    width: 200px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
}

    /* Cores por nível */
    .semaforo-fatura.verde {
        background-color: #2ecc40;
    }

    .semaforo-fatura.amarelo {
        background-color: #ffe21a;
        color: #000;
    }

    .semaforo-fatura.vermelho {
        background-color: #e53935;
    }
