body {
  background-color: #f5f6fa;
}

.client-card {
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: 1px solid #e0e0e0;
}

.client-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #0d6efd;
}

.client-card .card-title {
  color: #333;
}

.headshot-img {
  max-height: 200px;
  object-fit: cover;
}

.headshot-placeholder {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 8px;
  font-size: 3rem;
  color: #ccc;
}

.field-input {
  border: 1px solid transparent;
  background: transparent;
  transition: border-color 0.2s, background 0.2s;
}

.field-input:focus {
  border-color: #0d6efd;
  background: #fff;
}

.field-input:hover {
  background: #f8f9fa;
}

.field-name-cell {
  background: #f8f9fa;
  vertical-align: top !important;
  padding-top: 0.75rem !important;
}

.drag-handle {
  cursor: grab;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

#fieldsTable tbody tr {
  transition: background 0.15s;
}

#fieldsTable tbody tr.changed {
  background: #fff3cd;
}

.field-name-edit {
  max-width: 300px;
}

textarea.field-input {
  resize: vertical;
  min-height: 38px;
}

.navbar-brand i {
  margin-right: 0.5rem;
}

/* Group cards in Field Manager */
.group-card {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.group-header {
  background: #2c3e50;
  color: #fff;
  padding: 0.5rem 0.75rem;
  cursor: default;
}

.group-drag-handle {
  cursor: grab;
  user-select: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
}

.group-drag-handle:active {
  cursor: grabbing;
}

.group-body {
  background: #fff;
  border: 1px solid #dee2e6;
  border-top: none;
}

.group-body.collapsed {
  display: none;
}

.field-row {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.field-row:last-child {
  border-bottom: none;
}

.field-row:hover {
  background: #f8f9fa;
}

.field-drag-handle {
  cursor: grab;
  user-select: none;
}

.field-drag-handle:active {
  cursor: grabbing;
}

.sortable-ghost {
  opacity: 0.4;
  background: #e3f2fd;
}

/* Accordion fields in Client Detail */
.accordion-item .field-name-cell {
  background: #f8f9fa;
  vertical-align: top !important;
  padding-top: 0.75rem !important;
}

.accordion-item tr.changed {
  background: #fff3cd;
}

@media (max-width: 768px) {
  .headshot-img {
    max-height: 120px;
  }
}
