/* ==========================================================================
   ESTILOS GERAIS (Aplicados em ambas as páginas)
   ========================================================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

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


/* ==========================================================================
   PÁGINA DE LOGIN (index.php) - Usando a classe .login-page
   ========================================================================== */

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    
}

/*.login-container {
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 20px;
}*/

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

/*.welcome-title {
    font-size: 2.5em;
    margin-bottom: 30px;    
}*/

/*.welcome-title {
    text-align: center;
}*/

/*.login-form {
    background-color: #059ff8ff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px
 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}*/

/*.login-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin: 0 auto;
    max-width: 400px;
}*/

.welcome-title {
font-size: 2.5em;
margin-bottom: 30px;
text-align: center;
}

.login-form {
background-color: #ffffff;
padding: 40px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
text-align: left;
margin: 0 auto;
max-width: 400px;
}

.login-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}

.login-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}


/* ==========================================================================
   PÁGINA DO DASHBOARD (dashboard.php) - Usando a classe .dashboard-page
   ========================================================================== */

/* --- Cabeçalho --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.logo {
    height: 50px;
}

.header-center {
    text-align: center;
}

.sos-title {
    margin: 0;
    font-size: 1.8em;
}

.current-date {
    margin: 0;
    color: #666;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px; /* Espaço entre "Bem-vindo" e "Sair" */
}

.logout-btn {
    text-decoration: none;
    background-color: #dc3545;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

/* --- Conteúdo Principal --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Permite que os botões quebrem a linha em telas pequenas */
    gap: 10px;
}

.section-header h2 {
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 10px;
}

/* --- Tabela de Dados --- */
.table-container {
    overflow-x: auto; /* Adiciona scroll horizontal em telas pequenas */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

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

.data-table thead {
    background-color: #f8f9fa;
}

.data-table th {
    font-weight: bold;
}

.data-table tr:last-child td {
    border-bottom: none;
}

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

.no-data {
    text-align: center;
    color: #888;
    padding: 40px;
}

/* --- Botões --- */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: inline-block;
    text-align: center;
    transition: opacity 0.3s ease;
}
.btn:hover {
    opacity: 0.9;
}

.btn-importar { background-color: #007bff; }
.btn-secondary { background-color: #6c757d; }
.btn-primary { background-color: #28a745; }
.btn-info { background-color: #17a2b8; }
.btn-danger { background-color: #dc3545; }


/* --- Formulários (Geral e Modal) --- */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

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

/* Para o modal ser exibido com JS (display: block), ele precisa usar flex para centralizar */
.modal[style*="display: block"] {
    display: flex;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}