/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    color: #2c3e50;
    line-height: 1.6;
}

/* Contenedor principal */
.container, .admin-container {
    max-width: 1100px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    animation: fadeInUp 0.6s ease-out;
}

/* Animación */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease-out; }

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #34495e;
}

/* Formulario */
.form-card {
    display: grid;
    gap: 20px;
}
.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-size: 1rem;
}
input[type="text"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
}

/* Botones */
.btn-primary, .btn-danger, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}
.btn-primary {
    background: #667eea;
    color: white;
}
.btn-primary:hover {
    background: #5563d8;
}
.btn-secondary {
    background: #20c997;
    color: white;
}
.btn-secondary:hover {
    background: #17a589;
}
.btn-danger {
    background: #e74c3c;
    color: white;
    font-size: 0.9rem;
}
.btn-danger:hover {
    background: #c0392b;
}

/* Barra de estadísticas */
.stats-bar {
    background: #667eea;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Tabla */
.table-container {
    overflow-x: auto;
}
.registros-table {
    width: 100%;
    border-collapse: collapse;
}
.registros-table th, .registros-table td {
    padding: 12px 15px;
    text-align: left;
}
.registros-table th {
    background: #667eea;
    color: white;
}
.registros-table tr:nth-child(even) {
    background: #f8f9fa;
}
.registros-table tr:hover {
    background: #eef2ff;
}

/* No data */
.no-data {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
}
.no-data h3 {
    color: #555;
    margin-bottom: 10px;
}
.no-data p {
    color: #777;
    margin-bottom: 20px;
}

/* Separador */
.separator {
    height: 2px;
    background: #e9ecef;
    margin: 25px 0;
}
