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

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

.login-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    text-align: center;
    color: #333333;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #666666;
    font-weight: bold;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 16px;
}

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

button {
    width: 100%;
    padding: 12px;
    background-color: #0056b3;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #004085;
}

.error-msg {
    color: #dc3545;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    display: none;
}

/* --- Estilos para Paneles Internos (Admin y Dashboard) --- */
.dashboard-container {
    background: #ffffff;
    width: 90%;
    max-width: 1000px;
    min-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px;
    align-self: flex-start;
}

.header-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.header-panel h1 {
    color: #222;
    font-size: 24px;
}

.btn-logout {
    background-color: #6c757d;
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
}
.btn-logout:hover {
    background-color: #5a6268;
}

.grid-admin {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .grid-admin {
        grid-template-columns: 1fr;
    }
    body {
        height: auto;
    }
}

.panel-box {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    background: #fdfdfd;
}

.panel-box h3 {
    margin-bottom: 15px;
    color: #0056b3;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Tablas para listar datos */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th, table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #eeeeee;
    font-size: 14px;
}

table th {
    background-color: #f8f9fa;
    color: #555;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}
.status-firmado { background-color: #d4edda; color: #155724; }
.status-pendiente { background-color: #fff3cd; color: #856404; }
