/*
 * Archivo: style.css
 * Estilo moderno y limpio para la aplicación de gestión de firmas.
 */

/* ==================== Estilos Generales ==================== */
:root {
    /* Paleta de Colores */
    --primary-color: #007bff; /* Azul vibrante para acentos */
    --secondary-color: #6c757d; /* Gris para elementos secundarios */
    --text-color: #343a40; /* Gris oscuro para el texto principal */
    --background-color: #f8f9fa; /* Gris muy claro para el fondo */
    --light-border: #dee2e6; /* Gris para bordes y separadores */
    --success-color: #28a745; /* Verde para mensajes de éxito */
    --error-color: #dc3545; /* Rojo para mensajes de error */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ==================== Encabezado y Navegación ==================== */
header {
    background-color: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header h1, header h2 {
    margin: 0;
    padding-left: 1rem;
    color: var(--text-color);
    display: inline-block;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* ==================== Formularios y Controles ==================== */
.login-container, .form-group {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 3rem auto;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea,
.btn {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-border);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    display: inline-block;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.btn2 {
    display: inline-block;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

/* ==================== Tablas y Listas ==================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

table th, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-border);
}

table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

/* ==================== Mensajes de Alerta ==================== */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid transparent;
}

.alert.success-message {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert.danger-message {
    background-color: #F5223E;
    color: #155724;
    border-color: #c3e6cb;
}

.alert.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* ==================== Pie de Página ==================== */
footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: var(--secondary-color);
}
