/* Estilos globais para o corpo e o HTML */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Estilos do cabeçalho */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 1em;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-link:hover {
    background-color: #34495e;
}

h1 {
    margin: 0;
    font-size: 1.5em;
    flex-grow: 1;
    text-align: center;
}

/* Estilos para o layout principal de duas colunas */
.main-content-lateral {
    display: flex;
    flex: 1;
}

/* Estilos da barra de menu lateral */
.menu-section {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    width: 250px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.menu h2 {
    margin-top: 0;
    font-size: 1.2em;
    text-align: center;
    border-bottom: 2px solid #34495e;
    padding-bottom: 15px;
}

.menu ul {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.menu li {
    margin: 15px 0;
}

.menu-item {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
}

.menu-item:hover, .menu-item.active {
    background-color: #d66800;
    color: white;
}

/* Estilos para a seção de conteúdo principal */
.simulation-section {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Estilos para os contêineres e cartões */
.dashboard-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: auto;
}

.main-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.dashboard-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex: 1 1 250px;
    min-width: 200px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-size: 1em;
    color: #6c757d;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Estilos para os campos de entrada */
.input-card input {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1em;
    text-align: center;
}

.result-card h3 {
    margin: 0;
    font-size: 1.8em;
    color: #172a3a;
}

/* Estilos do botão principal (Calcular/Acessar) */
.btn-calculate {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    font-size: 1.2em;
    color: white;
    background-color: #d66800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-calculate:hover {
    background-color: #a75000;
    transform: translateY(-2px);
}

/* Estilos para os gráficos */
.chart-container {
    margin-top: 30px;
    text-align: center;
}

.chart-container h2 {
    font-size: 1.5em;
    color: #172a3a;
    margin-bottom: 20px;
}

.chart-group-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.chart-item {
    flex: 1 1 45%;
    max-width: 500px;
    min-width: 300px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Estilos para o botão flutuante de orientação */
.guidance-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: block;
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
    border-radius: 50%;
    overflow: hidden;
}

.guidance-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.character-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.guidance-text {
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translate(-100%, -50%);
    white-space: nowrap;
    padding: 8px 12px;
    background-color: #333;
    color: white;
    border-radius: 5px;
    font-size: 0.9em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s;
}

.guidance-btn:hover .guidance-text {
    opacity: 1;
    visibility: visible;
    transform: translate(-110%, -50%);
}

/* Estilos para o modal de orientação */
.guidance-modal {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    max-height: 400px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}

.guidance-modal.show {
    display: flex;
}

.modal-header {
    background-color: #007bff;
    color: white;
    padding: 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.close-btn {
    background: transparent;
    color: white;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

.modal-content {
    padding: 20px;
    font-size: 0.9em;
    color: #333;
}

/* Estilos para a página de Cadastro modelada como o Gov.br */
.main-content-home {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-image-side {
    flex: 1;
    position: relative;
    background-color: #2c3e50; /* Cor de fundo caso a imagem não carregue */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    color: white;
    min-height: 250px;
}

/* AQUI ESTÁ A ALTERAÇÃO PARA USAR A NOVA IMAGEM LOCAL COM TRANSPARÊNCIA */
.auth-image-side::before {
    content: "";
    background-image: url('principal-imagem.png'); /* Sua imagem renomeada */
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2; /* Nível de transparência: 0.2 é 20% opaco */
    z-index: 1; /* Garante que a imagem fique atrás do conteúdo */
}

/* Os elementos dentro de intro-text-overlay ficarão acima da imagem de fundo */
.intro-text-overlay {
    position: relative;
    z-index: 2; /* Garante que o texto fique acima da imagem de fundo */
}

.intro-text-overlay h2 {
    font-size: 1.5em;
    margin-top: 20px;
    line-height: 1.4;
    color: white; /* Garante que o texto seja visível sobre a imagem */
}

.intro-text-overlay p {
    font-size: 1em;
    margin-top: 10px;
    color: #e0e0e0; /* Cor um pouco mais clara para o parágrafo */
}

.auth-form-side {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-side h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 25px;
}

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

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

.form-group label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.form-group input {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #2c3e50;
    outline: none;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background-color: #d66800;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    font-size: 1.1em;
}

.btn-primary:hover {
    background-color: #a75000;
    transform: translateY(-2px);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .main-content-lateral {
        flex-direction: column;
    }

    .menu-section {
        width: 100%;
        padding: 10px;
    }

    .menu ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    .menu li {
        margin: 5px;
    }

    .menu-item {
        padding: 10px;
        font-size: 0.9em;
    }

    .dashboard-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 350px;
    }

    .guidance-btn {
        bottom: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    }

    .guidance-modal {
        bottom: 70px;
        right: 10px;
        width: calc(100% - 40px);
        max-width: 300px;
    }

    .auth-container {
        flex-direction: column;
        max-width: 100%;
    }

    .auth-image-side {
        padding: 20px;
    }

    .auth-form-side {
        padding: 20px;
    }

    .auth-image-side h2 {
        font-size: 1.2em;
    }
}