/* Estilo para o formulário de cadastro */



/* Estilos para a Página Inicial */
.index-body {
    background-color: #f0f2f5;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.index-header {
    background-color: #004a8d;
    color: white;
    padding: 40px 0;
    text-align: center;
    border-bottom: 5px solid #003366;
}

.welcome-text {
    text-align: center;
    margin: 40px 0;
}

/* Grid de Cards */
.grid-portal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.card-portal {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid #004a8d;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-portal:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
    background-color: #f8fbff;
}

.card-portal i {
    font-size: 3rem;
    color: #004a8d;
    margin-bottom: 15px;
}

.card-portal h3 {
    margin-bottom: 10px;
    color: #004a8d;
}

.index-footer {
    text-align: center;
    padding: 20px;
    background: #ddd;
    font-size: 0.9rem;
    color: #666;
}


/*-----------------------*/




body {
    background-color: #f4f7f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    margin: 40px auto;
}

h2 {
    color: #004a8d;
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #004a8d;
    outline: none;
}

.btn-enviar {
    background: #004a8d;
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

.btn-enviar:hover {
    background: #003366;
}


/* Layout do Dashboard */
.dashboard-body {
    display: flex;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
}

.sidebar {
    width: 260px;
    background-color: #002d55; /* Azul mais escuro para o menu */
    color: white;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    background: #001f3b;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.sidebar-nav a {
    color: #cbd5e0;
    padding: 15px 20px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav a:hover {
    background: #004a8d;
    color: white;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-header {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: flex-end;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid #004a8d;
}

.badge {
    background: #e2e8f0;
    color: #4a5568;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 10px;
}

.logout-link {
    margin-top: auto;
    color: #feb2b2 !important;
}

.card-tabela {
    background: white;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.tabela-pmst {
    width: 100%;
    border-collapse: collapse;
}

.tabela-pmst th, .tabela-pmst td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tabela-pmst th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.status-ativo { color: #28a745; font-weight: bold; }
.status-inativo { color: #dc3545; font-weight: bold; }

.btn-status, .btn-editar {
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    margin-right: 5px;
}

.btn-desativar { background: #fff5f5; color: #e53e3e; border: 1px solid #feb2b2; }
.btn-ativar { background: #f0fff4; color: #38a169; border: 1px solid #9ae6b4; }
.btn-editar { background: #ebf8ff; color: #3182ce; border: 1px solid #90cdf4; }

.badge-perfil {
    background: #edf2f7;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8em;
    color: #4a5568;
}

/* Padronização do Botão Voltar */
.btn-voltar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #6c757d; /* Cinza profissional */
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: none;
}

.btn-voltar:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-voltar i {
    font-size: 1em;
}

/* Classe para campos que são apenas para visualização */
.input-readonly {
    background-color: #eee !important;
    color: #666 !important;
    cursor: not-allowed;
    border: 1px solid #ddd;
    user-select: none; /* Impede selecionar o texto se desejar */
}