/* Arquivo: /var/www/jpdev.app.br/sge/assets/css/style.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.login-body {
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background-color: #ffffff;
    padding: 50px 40px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.login-card h2 {
    margin-bottom: 30px;
    font-size: 22px;
    color: #000000;
    font-weight: bold;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #0056b3;
}

.btn-entrar {
    width: 100%;
    padding: 12px;
    background-color: #0056b3;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-entrar:hover {
    background-color: #004494;
}

.link-esqueci {
    display: inline-block;
    margin-top: 20px;
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
}

.link-esqueci:hover {
    text-decoration: underline;
}

.alert-error {
    color: #d9534f;
    background-color: #f9f2f2;
    border: 1px solid #d9534f;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* =========================================
   ESTILOS DO DASHBOARD (PAINEL) - PADRÃO SYSDEV
========================================= */
.dashboard-body {
    background-color: #f0f2f5;
    margin: 0;
    padding: 15px;
    padding-bottom: 50px;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Cabeçalho (Navbar) */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.top-header h1 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.saudacao {
    font-size: 15px;
    color: #333;
}

.badge-perfil {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: normal;
}

.btn-sair {
    background-color: #dc3545;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transition: 0.2s;
}

.btn-sair:hover {
    background-color: #c82333;
}

/* Grid de Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: 0.3s;
    text-decoration: none;
    color: #333;
    border-top: 4px solid #007bff;
    display: block;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Cores do topo dos cards */
.card-blue { border-top-color: #007bff; }
.card-green { border-top-color: #28a745; }
.card-purple { border-top-color: #6f42c1; }
.card-red { border-top-color: #dc3545; }
.card-yellow { border-top-color: #ffc107; }
.card-gray { border-top-color: #6c757d; }

/* Rodapé */
.footer {
    text-align: center;
    padding: 20px 15px;
    margin-top: auto;
    color: #888;
    font-size: 13px;
    line-height: 1.5;
    width: 100%;
}

.footer p {
    margin: 0;
}

@media (max-width: 600px) {
    .top-header { flex-direction: column; align-items: flex-start; }
    .header-right { width: 100%; justify-content: space-between; margin-top: 5px; }
}

/* =========================================
   ESTILOS DE CONTEÚDO (FORMULÁRIOS E TABELAS)
========================================= */
.link-voltar {
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
    font-weight: bold; /* Adicionado o negrito */
    display: inline-block;
    margin-bottom: 10px;
}

.link-voltar:hover {
    text-decoration: underline;
}

.header-left h1 {
    margin: 0;
    font-size: 22px;
    color: #2c3e50; /* Cor um pouco mais escura */
}

.content-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.content-card h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Formulários */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.col-50 {
    flex: 1;
    min-width: 250px;
}

.form-group label {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: #007bff;
}

.btn-salvar {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-salvar:hover {
    background-color: #218838;
}

/* Alertas */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Tabelas */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

.data-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: bold;
}

.data-table tr:hover {
    background-color: #f1f1f1;
}

/* =========================================
   BOTÕES DA TABELA (AÇÕES)
========================================= */
.btn-editar, .btn-excluir, .btn-visualizar {
    border: none;
    padding: 7px 14px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    margin-right: 5px;
    transition: background-color 0.2s;
    display: inline-block;
    text-decoration: none;
}

.btn-editar { background-color: #007bff; }
.btn-editar:hover { background-color: #0056b3; }

.btn-excluir { background-color: #dc3545; }
.btn-excluir:hover { background-color: #c82333; }

.btn-visualizar { background-color: #17a2b8; }
.btn-visualizar:hover { background-color: #117a8b; }
