.admin-container{
  padding:20px;
  font-family:sans-serif;
}

.crud-layout{
  display:grid;
  grid-template-columns: 1fr 2fr; /* izquierda 1 parte, derecha 2 partes */
  gap:20px;
  margin-top:20px;
}

.form-card, .table-card{
  background:#fff;
  border-radius:12px;
  padding:20px;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

/* Formulario más compacto */
.form-card{
  align-self:start;
}

/* Tabla ocupa más espacio */
.table-card{
  overflow-x:auto;
}

.table-card table{
  width:100%;
  border-collapse:collapse;
  text-align:center;
}

.table-card th, .table-card td{
  padding:12px 15px;
  border-bottom:1px solid #e5e7eb;
}

.table-card th{
  background:#f3f4f6;
  font-weight:700;
  color:#374151;
}

.img-preview{
  max-width:60px;
  max-height:60px;
  border-radius:8px;
}
/* Layout en dos columnas */
.crud-layout{
  display:grid;
  grid-template-columns: 1fr 2fr; /* izquierda formulario, derecha tabla */
  gap:24px;
  margin-top:20px;
}

/* Tarjetas */
.form-card, .table-card{
  background:#fff;
  border-radius:16px;
  padding:24px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

/* Formulario */
.form-card h2{
  margin-bottom:16px;
  font-size:1.2rem;
  color:#1e3a8a;
}

.form-group{
  margin-bottom:15px;
}

.form-control{
  width:100%;
  padding:10px;
  border:1px solid #d1d5db;
  border-radius:8px;
}

/* Botón */
.btn-submit{
  background:#059669;
  color:#fff;
  padding:12px 20px;
  border:none;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  transition:.3s;
}
.btn-submit:hover{
  background:#047857;
  transform:translateY(-2px);
}

/* Tabla */
.table-card h2{
  margin-bottom:16px;
  font-size:1.2rem;
  color:#1e3a8a;
}
.table-card table{
  width:100%;
  border-collapse:collapse;
  text-align:center;
}
.table-card th, .table-card td{
  padding:12px 15px;
  border-bottom:1px solid #e5e7eb;
}
.table-card th{
  background:#f3f4f6;
  font-weight:700;
  color:#374151;
}

/* Imagenes */
.preview-img{
  max-width:120px;   /* más pequeña */
  max-height:120px;
  border-radius:12px;
  margin-top:10px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.img-preview{
  max-width:60px;
  max-height:60px;
  border-radius:8px;
}
