/* Importando fontes */
@import url('https://fonts.googleapis.com/css2?family=Anta&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Estilos do desktop */
.titulo {
    width: 33.33vw;
    height: auto;
    max-width: 564px;
    min-width: 200px;
}

.body {
    background-color: #6E7EAC;
    color: #ffffff;
    margin: 0;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    width: 100%;
    max-width: 1440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding-top: 20px;
    padding-bottom: 25px;
    height: 20vh;
    position: relative;
}

.header h1 {
    font-family: "Anta", regular;
    font-weight: bold;
    font-size: 15vh;
    /* Takes up to 50% of header height (20vh) */
    line-height: 1;
    /* Prevents extra spacing */
    color: #E6E6FA;
    -webkit-text-stroke-width: 1.5px;
    -webkit-text-stroke-color: #B2DAFA;
    text-shadow:
        3px 3px 5px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.profile-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 55px;
    width: 10vh;
    height: 10vh;
    align-self: flex-end;
    border-radius: 100%;
    background-color: #4d445f;
    border: 3px solid #B2DAFA;
    cursor: pointer;
}


.profile-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.profile-config {
    display: flex;
    gap: 20px;
    padding: 0px;
    width: 40vh;
    height: 40vh;
    border-radius: 100%;
    background-color: #4d445f;
    border: 5px solid #B2DAFA;
    align-items: center;
    margin: 3vh;
}

.profile-config img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.profile-config img:hover {
    transform: scale(1.034);
    opacity: 0.8;
}

.main-container {
    display: flex;
    width: 75%;
    max-width: 1440px;
    gap: 35px;
    height: 77vh;
    padding-bottom: 2vh;
}

.history-section {
    background-color: #95B8F6;
    border-radius: 20px;
    padding: 20px;
    padding-right: 8px;
    width: 27%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.history-section h2 {
    font-family: "Anta", regular;
    margin: 0;
    margin-top: 0;
    font-size: 28px;
    color: #1E1E1E;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Container com scroll para os itens do histórico */
.history-section>div {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    padding-right: 10px;
}

/* Estilização da barra de scroll */
.history-section::-webkit-scrollbar,
.history-section>div::-webkit-scrollbar {
    width: 10px;
}

.history-section::-webkit-scrollbar-track,
.history-section>div::-webkit-scrollbar-track {
    background: rgba(178, 218, 250, 0.3);
    border-radius: 10px;
    margin: 5px 0;
}

.history-section::-webkit-scrollbar-thumb,
.history-section>div::-webkit-scrollbar-thumb {
    background: #6E7EAC;
    border-radius: 10px;
    border: 2px solid #95B8F6;
}

.history-section::-webkit-scrollbar-thumb:hover,
.history-section>div::-webkit-scrollbar-thumb:hover {
    background: #5a6b99;
}

.history-item {
    background-color: #B2DAFA;
    border-radius: 15px;
    padding: 12px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.history-item p {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1E1E1E;
    padding-right: 35px;
    word-wrap: break-word;
    line-height: 1.3;
}

.history-item img {
    width: auto;
    max-width: 95%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 5px;
    display: block;
    margin: 0 auto;
}

.download-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, opacity 0.2s ease;
    /* Ícone de download (SVG embutido) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E1E1E' width='24px' height='24px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.download-icon:hover {
    transform: scale(1.15);
    opacity: 0.7;
}


.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.upload-box.drag-over {
    border-color: #95B8F6;
    background-color: #C8E6C9;
    transform: scale(1.02);
}

.upload-box:hover {
    border-color: #95B8F6;
    background-color: #BBDEFB;
}

.upload-box input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}

.upload-box.has-file {
    border-style: solid;
    border-color: #95B8F6;
    background-color: #E8F5E8;
}

.upload-box {
    background-color: #A8BAF1;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    /* Takes up remaining vertical space */
    border: 4px dashed #f3f3f3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    max-height: 36vh;
}

.upload-box p {
    font-family: "Anta", regular;
    font-size: 42px;
    color: #1E1E1E;
    font-weight: bold;
    margin: 0;
}

.data-input-section {
    font-family: "Inter", sans-serif;
    color: #000000;
    font-size: 36px;
    background-color: #95B8F6;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.input-group-container {
    font-family: "Inter", sans-serif;
    font-size: 48px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.input-group {
    display: flex;
    flex-direction: column;
    width: 48%;
}

.input-group label {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: bold;
}

.input-group input {
    background-color: #ADD5FA;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    color: #333;
}

.button-group {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.button-group button {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #ffffff;
    /* borda interna */
    box-shadow: 0 0 0 4px #ADD5FA;
    /* borda externa simulada */
}

.generate-btn {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    background-color: #B2DAFA;
    color: #FFFFFF;
}

.generate-btn:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #000000;
}

.export-btn {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    background-color: #B2DAFA;
    color: #FFFFFF;
}

.export-btn:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #000000;
}

.generate-graph-modal {
    display: none;
    position: fixed;
    z-index: 990;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.profile-config-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 30vw;
    /* Espaçamento entre os elementos */
    min-height: 80vh;
}

.profile-config-container img {
    display: block;
    margin: 0 auto;
}

.profile-config-container a {
    height: 100%;
    width: 100%;
}

#nome {
    font-family: "Anta", regular;
    font-size: 32px;
    color: #000000;
    text-align: center;
    margin: 0;
    width: 100%;
    background: #B2DAFA;
    border: 2px solid #000000;
    border-radius: 15px;
}

.config-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.config-buttons a {
    text-decoration: none;
    width: 100%;
}

.config-buttons a button {
    flex: 1;
    border-radius: 10px;
    font-size: 4vh;
    cursor: pointer;
    width: 100%;
    height: 4vw;
    font-family: "Inter", sans-serif;
    background-color: #95B8F6;
    color: #000000;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.config-buttons a button svg {
    position: absolute;
    /* Posição absoluta */
    left: 3%;
    /* Distância da borda esquerda */
    height: 80%;
    /* Altura do ícone */
}

.config-buttons a buttton:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #000000;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #95B8F6;
    border-radius: 20px;
    padding: 20px;
    width: 30vw;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-section h2 {
    font-family: "Anta", regular;
    margin: 0;
    font-size: 28px;
    color: #1E1E1E;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group label {
    font-family: "Inter", sans-serif;
    color: #000000;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group textarea {
    font-family: "Inter", sans-serif;
    color: #000000;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    color: #333;
}

.form-group {
    display: flex;
    flex-direction: column;
}

form button {
    padding: 15px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #ffffff;
    /* borda interna */
    box-shadow: 0 0 0 4px #ADD5FA;
    /* borda externa simulada */
    background-color: #B2DAFA;
    color: #FFFFFF;
}


form button:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #000000;
}

#generate-graph-modal .form-group input {
    font-size: 16px;
    padding: 10px;
    background-color: rgb(194, 198, 202);
}

#passwordForm .form-group input {
    font-size: 16px;
    padding: 10px;
    background-color: rgb(194, 198, 202);
}

#passwordForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.alert {
    --bs-alert-bg: transparent;
    --bs-alert-padding-x: 1rem;
    --bs-alert-padding-y: 1rem;
    --bs-alert-margin-bottom: 1rem;
    --bs-alert-color: inherit;
    --bs-alert-border-color: transparent;
    --bs-alert-border: 1px solid var(--bs-alert-border-color);
    --bs-alert-border-radius: 0.375rem;
    position: relative;
    padding: var(--bs-alert-padding-y) var(--bs-alert-padding-x);
    color: var(--bs-alert-color);
    background-color: var(--bs-alert-bg);
    border: var(--bs-alert-border);
    border-radius: var(--bs-alert-border-radius);
    animation: slideDown 0.3s ease-out;
}

.alert-slim {
    --bs-alert-padding-y: 0.25rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    --bs-alert-color: #0f5132;
    --bs-alert-bg: #d1e7dd;
    --bs-alert-border-color: #badbcc;
}

.alert-error {
    --bs-alert-color: #842029;
    --bs-alert-bg: #f8d7da;
    --bs-alert-border-color: #f5c2c7;
}

a {
    text-decoration: none;
}

/* Estilos do Modal para Upload de Foto */
.modal {
    display: none;
    position: fixed;
    z-index: 990;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    color: #333;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background-color: #6E7EAC;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #B2DAFA;
}

.modal-body {
    padding: 30px;
}

.file-input-container {
    margin-bottom: 20px;
}

.file-input-label {
    display: inline-block;
    padding: 12px 20px;
    background-color: #6E7EAC;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    max-width: 200px;
    margin: 0 auto;
}

.file-input-label:hover {
    background-color: #5a6b99;
}

#photoInput {
    display: none;
}

#preview-container {
    text-align: center;
    margin: 20px 0;
}

.preview-image {
    border: 3px solid #B2DAFA;
    object-fit: cover;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-cancel,
.btn-save {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-cancel {
    background-color: #ccc;
    color: #666;
}

.btn-cancel:hover {
    background-color: #bbb;
}

.btn-save {
    background-color: #6E7EAC;
    color: white;
}

.btn-save:hover {
    background-color: #5a6b99;
}

.btn-save:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.graphs-preview-modal {
    display: none;
    position: fixed;
    z-index: 990;
    left: 0;
    top: -7%;
    width: 100%;
    height: 110%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.graphs-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
}

/* Centralizar o último item se for ímpar */
.graphs-preview img:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.graphs-preview img {
    width: 100%;
    max-width: 300px;
    max-height: 220px;
    border: 3px solid #B2DAFA;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.graphs-preview img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(178, 218, 250, 0.5);
    border-color: #4A90E2;
}

.close-button {
    display: flex;
    font-size: 19px;
    background-color: #f44336;
    border-radius: 50%;
    height: 3vh;
    width: 3vh;
    align-items: center;
    justify-content: center;
}

.file-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.file-name {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    color: #1E1E1E;
    text-align: center;
    word-break: break-all;
    max-width: 90%;
}

.remove-file {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.remove-file:hover {
    background-color: #d32f2f;
    transform: scale(1.1);
}

/* Estilos para indicador de progresso */
.upload-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(168, 186, 241, 0.9);
    border-radius: 15px;
    justify-content: center;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000000;
}

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

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

.upload-progress p {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: #1E1E1E;
    margin: 0;
}

/* Estilos para mensagens de feedback */
.upload-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    z-index: 99999;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease;
}

.upload-message.success {
    background-color: #4CAF50;
    color: white;
    border-left: 5px solid #2E7D32;
}

.upload-message.error {
    background-color: #f44336;
    color: white;
    border-left: 5px solid #C62828;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estilos do mobile --------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------*/

.header-mobile {
    padding-top: 10vh;
}
.cadastro-header-mobile {
    padding-top: 5vh;
}

.header-mobile h1 {
    font-family: "Anta", regular;
    font-weight: bold;
    font-size: 14vw;
    line-height: 1;
    color: #E6E6FA;
    -webkit-text-stroke-width: 1.5px;
    -webkit-text-stroke-color: #B2DAFA;
    text-shadow:
    3px 3px 5px rgba(0, 0, 0, 0.5);
}

.profile-icon-mobile {
    position: absolute;
    top: 10px;
    right: 5%;
    width: 9vh;
    height: 9vh;
    align-self: flex-end;
    border-radius: 100%;
    background-color: #4d445f;
    border: 3px solid #B2DAFA;
}

.profile-icon-mobile img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.body-mobile {
    background-color: #6E7EAC;
    color: #ffffff;
    margin: 0;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-container-mobile {
    padding-top: 6vh;
    width: 65%;
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

.tirar-foto-mobile {
    background-color: #95B8F6;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    aspect-ratio: 1.4 / 1;
}

.content-section-mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2vh;
}

.enviar-foto-mobile,
.historico-graficos-mobile {
    background-color: #95B8F6;
    border-radius: 20px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1vh;
    width: 30vw;
    height: auto;
    aspect-ratio: 1 / 1;
}

.form-section-mobile {
    display: flex;
    flex-direction: column;
    background-color: #95B8F6;
    border-radius: 20px;
    padding: 20px;
    width: 60vw;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 5vh;
    /* Centralização */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-section-mobile h2 {
    margin: 0px;
    margin-bottom: 1vh;
}

.seta-retorno {
    position: absolute;
    top: 2%;
    left: 3%;
    width: 10vw;
    height: auto;
    cursor: pointer;
}

.profile-config-container-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 65vw;
    /* Espaçamento entre os elementos */
    min-height: 80vh;
}

.profile-config-mobile {
    margin-top: 10vh;
    width: 63vw;
    height: 63vw;
}

.profile-config-mobile a {
    width: 100%;
    height: 100%;
}

.profile-config-container-mobile input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    width: 80vw;
}

.profile-config-container-mobile #nome {
    font-size: 24px;
    padding: 10px;
}

.config-buttons-mobile a button {
    flex: 1;
    border-radius: 10px;
    font-size: 3vh;
    cursor: pointer;
    width: 100%;
    height: 12vw;
    font-family: "Inter", sans-serif;
    background-color: #95B8F6;
    color: #000000;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.config-buttons-mobile a button svg {
    position: absolute;
    /* Posição absoluta */
    left: -2%;
    /* Distância da borda esquerda */
    height: 80%;
    /* Altura do ícone */
}

.password-config-container-mobile {
    padding: 40%;
    display: flex;
}

.password-form-mobile #div_senha_atual {
    padding-bottom: 10%;
}


/* Modal Mobile - Tela Cheia */
.history-modal {
    display: none;
    position: fixed;
    z-index: 990;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.history-modal .modal-content-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    animation: none;
}

.history-modal .modal-header-mobile {
    background-color: #6E7EAC;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: left;
    align-items: center;
    flex-shrink: 0;
    border-radius: 0;
}

.history-modal .modal-header-mobile h2 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.history-modal .close-mobile {
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    color: white;
}

.history-modal .close-mobile:hover {
    color: #B2DAFA;
}

.history-modal .history-items-mobile {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #95B8F6;
}

/* Estilização do scrollbar para history-items-mobile */
.history-modal .history-items-mobile::-webkit-scrollbar {
    width: 8px;
}

.history-modal .history-items-mobile::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.history-modal .history-items-mobile::-webkit-scrollbar-thumb {
    background: #6E7EAC;
    border-radius: 10px;
}

.history-modal .history-items-mobile::-webkit-scrollbar-thumb:hover {
    background: #5a6b99;
}

/* Ajuste dos itens do histórico dentro do modal */
.history-modal .history-item-mobile {
    background-color: #B2DAFA;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-modal .history-item-mobile p {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1E1E1E;
    padding-right: 40px;
    word-wrap: break-word;
}

.history-modal .history-item-mobile img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 10px;
}

.history-modal .download-icon-mobile {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231E1E1E"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.history-modal .download-icon-mobile:hover {
    opacity: 1;
}
.modal-content-mobile{
    background-color: #ffffff;
    margin: 10% auto;
    margin-top: auto;
    margin-bottom: auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    color: #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-content-mobile .modal-body {
    overflow-y: auto;
    flex: 1;
}
.graph-display-modal-mobile {
    display: none;
    position: fixed;
    z-index: 990;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.graph-display-modal-mobile .graph-display {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.graphs-preview-modal-mobile {
    display: none;
    position: fixed;
    z-index: 990;
    left: 0;
    top: 0;
    width: 100%;
    height: 110%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}
.generate-graph-modal.nomenclature-graph{
    z-index: 9999 !important;
}
.generate-graph-modal.nomenclature-graph .modal-content{
    position: relative;
    z-index: 9999;
}
.graph-display-modal-mobile.modal-behind {
    z-index: 989 !important;
}
.graph-display-modal-mobile img {
    width: 90%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #95B8F6;
    background-color: #ffffff;
    padding: 10px;
    margin: 20px
}

/* Botão "sobre" no canto inferior esquerdo */
#about {
    position: fixed;
    bottom: 10px;
    left: 10px;
    font-size: 1vw;
    color: #E6E6FA;
    cursor: pointer;
    margin: 0;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

#about:hover {
    background-color: rgba(0, 0, 0, 0.5);
    text-decoration: underline;
}

/* Sobrescrever para mobile */
#about.about-mobile {
    font-size: 2vh;
}

/* Modal Sobre */
#about-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

#about-modal .modal-content {
    background-color: #ffffff;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

#about-modal .modal-header {
    background-color: #6E7EAC;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#about-modal .modal-body {
    padding: 20px;
    color: #333;
    line-height: 1.6;
}

#about-modal .modal-body p {
    margin: 10px 0;
}

#about-modal .modal-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

#about-modal .modal-body li {
    margin: 5px 0;
}

#about-modal .close {
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    transition: color 0.3s ease;
}

#about-modal .close:hover {
    color: #B2DAFA;
}
