/* Adicione estas regras ao seu arquivo style.css */

/* Estilo para o container do input de senha e o botão */
.password-input-wrapper {
    position: relative;
    width: 100%; /* Garante que o wrapper ocupe a largura total do form-group */
}

/* Ajusta o padding do input para não sobrepor o botão */
.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    width: 100%; /* Faz o input preencher o espaço disponível */
    padding-right: 45px; /* Espaço para o botão */
}

/* Estilo para o botão de toggle */
.password-toggle-btn {
    position: absolute;
    right: 12px; /* Posição à direita dentro do wrapper */
    top: 50%; /* Centraliza verticalmente */
    transform: translateY(-50%); /* Ajuste fino para centralização vertical */
    background: none;
    border: none;
    cursor: pointer;
    color: #666; /* Cor do ícone */
    font-size: 1.1rem; /* Tamanho do ícone */
    padding: 8px; /* Para facilitar o clique */
    z-index: 10; /* Garante que o botão fique acima do input */
    transition: color 0.3s ease;
}

.password-toggle-btn:hover {
    color: #05219c; /* Cor ao passar o mouse */
}

.password-toggle-btn:focus {
    outline: none;
    color: #05219c;
}

/* Estilos gerais existentes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f37eb 0%, #0de1fd 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login Screen */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.login-card h1 {
    color: #05219c;
}

.login-card img {
    max-width: 150px;
    margin-bottom: 20px;
}

.login-card h4 {
    color: #05219c;
    margin-bottom: 15px;
    font-weight: 400;
}

.login-card h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="month"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.2);
    outline: none;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    border: none;
    background: linear-gradient(45deg, #0f37eb 0%, #0de1fd 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 0.9;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* Dashboard */
.dashboard {
    padding-top: 40px;
    padding-bottom: 40px;
    display: none; /* Escondido por padrão, ativado via JS */
}

.dashboard.active {
    display: block;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    color: white;
    font-size: 0.9rem;
}

.navigation {
    background: rgba(255, 255, 255, 1);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.nav-btn {
    background: rgba(0, 33, 161, 1);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-grow: 1; /* Permite que os botões cresçam para preencher o espaço */
    text-align: center;
}

.nav-btn:hover {
    background: rgba(4, 106, 224, 1);
    transform: translateY(-2px);
    font-weight:bold;
    color:#03026a;
}

.nav-btn.active {
    background: #030037;
    color: #ffe700;
    font-weight:bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    min-height: 500px;
}

.module {
    display: none; /* Escondido por padrão, ativado via JS */
}

.module.active {
    display: block;
}

.module h2 {
    color: #05219c;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px; /* Garante que os campos não fiquem muito estreitos */
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Table styles */
.table-container {
    overflow-x: auto; /* Permite rolagem horizontal em telas pequenas */
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden; /* Garante que as bordas arredondadas funcionem */
}

table thead {
    background-color: #0f37eb;
    color: white;
}

table th,
table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

table tbody tr:nth-child(even) {
    background-color: #f7fafc;
}

table tbody tr:hover {
    background-color: #ebf8ff;
}

/* Responsive table cells */
@media (max-width: 768px) {
    table thead {
        display: none; /* Oculta o cabeçalho da tabela em telas pequenas */
    }

    table,
    table tbody,
    table tr,
    table td {
        display: block;
        width: 100%;
    }

    table tr {
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    table td::before {
        content: attr(data-label); /* Usa o atributo data-label para exibir o cabeçalho */
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: #4a5568;
    }

    table td.actions {
        text-align: center;
        padding-left: 10px; /* Ajusta o padding para os botões de ação */
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    table td.actions::before {
        content: none; /* Remove o data-label para a coluna de ações */
    }
}

/* Opportunities and Dates List */
.opportunities-container,
.date-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.opportunity-item,
.date-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f4f8;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.opportunity-item input[type="text"] {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 0;
}

.date-tag {
    background: #5a67d8;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.date-tag .remove {
    cursor: pointer;
    font-weight: bold;
    margin-left: 5px;
}

/* Alerts */
#alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInSlideDown 0.5s forwards;
}

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

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* File upload */
.file-upload {
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #5a67d8;
    background: #ebf8ff;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload label {
    cursor: pointer;
    font-weight: 600;
    color: #4a5568;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
    }

    .nav-btn {
        flex-grow: 0;
        width: 100%;
    }

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

    .form-row .form-group {
        min-width: auto;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
        gap: 10px;
    }

    .content {
        padding: 20px;
    }
}

/* Novos estilos para botões de formulário */
.btn-new-entry {
    margin-bottom: 20px;
    display: inline-block;
}

/* Responsividade para telas muito pequenas */
@media (max-width: 480px) {
    .login-card {
        padding: 25px;
    }

    .login-card h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 10px;
    }

    .content {
        padding: 15px;
    }

    .module h2 {
        font-size: 1.5rem;
    }

    .nav-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }