.usuarios-container {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 16px 40px;
}

.usuarios-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.usuarios-header h1 {
  margin: 0;
  font-size: 1.6rem;
}

.subtitle {
  margin: 4px 0 0;
  color: #666;
  font-size: 0.9rem;
}

.btn-secondary {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #1976d2;
  background: #fff;
  color: #1976d2;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: #e3f2fd;
}

.usuarios-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 1px rgba(25, 118, 210, 0.15);
  outline: none;
}

.form-row.acciones {
  margin-top: 12px;
}

button {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: #1976d2;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

button:hover {
  background: #145ca5;
}

.btn-danger {
  background: #c62828;
}

.btn-danger:hover {
  background: #b71c1c;
}

.estado {
  font-size: 0.85rem;
  margin-top: 4px;
  color: #555;
}

.estado.error {
  color: #c62828;
  font-weight: 600;
}

.estado.ok {
  color: #2e7d32;
  font-weight: 600;
}

.hint {
  font-size: 0.75rem;
  color: #777;
}

.tabla-usuarios {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tabla-usuarios th,
.tabla-usuarios td {
  padding: 8px 10px;
  border-bottom: 1px solid #e0e0e0;
}

.tabla-usuarios th {
  background: #f5f5f5;
  text-align: left;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.badge-activo {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-inactivo {
  background: #ffebee;
  color: #c62828;
}

@media (max-width: 900px) {
  .usuarios-grid {
    grid-template-columns: 1fr;
  }
}
