/* Buttons */
.ngm-button,
.ngm-btn,
.ngm-ui button,
.ngm-ui input[type="submit"],
.ngm-ui input[type="button"],
.ngm-plugin button,
.ngm-plugin input[type="submit"],
.ngm-plugin input[type="button"],
.ngm-design-system .et_pb_button,
.ngm-design-system .wp-element-button,
.ngm-design-system a.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid var(--ngm-green);
  border-radius: var(--ngm-radius-pill);
  background: var(--ngm-green);
  color: var(--ngm-white) !important;
  font-family: var(--ngm-font-ui);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color var(--ngm-ease), color var(--ngm-ease), border-color var(--ngm-ease), transform var(--ngm-ease), box-shadow var(--ngm-ease);
  box-shadow: none;
}

.ngm-button:hover,
.ngm-btn:hover,
.ngm-ui button:hover,
.ngm-ui input[type="submit"]:hover,
.ngm-ui input[type="button"]:hover,
.ngm-plugin button:hover,
.ngm-plugin input[type="submit"]:hover,
.ngm-plugin input[type="button"]:hover,
.ngm-design-system .et_pb_button:hover,
.ngm-design-system .wp-element-button:hover,
.ngm-design-system a.button:hover {
  background: var(--ngm-gold-hover);
  border-color: #000;
  color: var(--ngm-ink) !important;
  transform: translateY(-1px);
}

.ngm-button:focus-visible,
.ngm-btn:focus-visible,
.ngm-ui button:focus-visible,
.ngm-ui input:focus-visible,
.ngm-ui select:focus-visible,
.ngm-ui textarea:focus-visible,
.ngm-plugin button:focus-visible,
.ngm-plugin input:focus-visible,
.ngm-plugin select:focus-visible,
.ngm-plugin textarea:focus-visible,
.ngm-design-system .et_pb_button:focus-visible {
  outline: 3px solid rgba(198,154,85,.35);
  outline-offset: 2px;
}

.ngm-button-secondary,
.ngm-btn-secondary {
  background: transparent !important;
  color: var(--ngm-green) !important;
  border-color: var(--ngm-green) !important;
}

.ngm-button-secondary:hover,
.ngm-btn-secondary:hover {
  background: var(--ngm-green) !important;
  color: var(--ngm-white) !important;
}

.ngm-button-danger,
.ngm-btn-danger {
  background: var(--ngm-danger) !important;
  border-color: var(--ngm-danger) !important;
}

.ngm-button-danger:hover,
.ngm-btn-danger:hover {
  background: #8f1c13 !important;
  border-color: #8f1c13 !important;
  color: var(--ngm-white) !important;
}

/* Forms */
.ngm-ui input[type="text"],
.ngm-ui input[type="email"],
.ngm-ui input[type="tel"],
.ngm-ui input[type="number"],
.ngm-ui input[type="date"],
.ngm-ui input[type="time"],
.ngm-ui input[type="password"],
.ngm-ui select,
.ngm-ui textarea,
.ngm-plugin input[type="text"],
.ngm-plugin input[type="email"],
.ngm-plugin input[type="tel"],
.ngm-plugin input[type="number"],
.ngm-plugin input[type="date"],
.ngm-plugin input[type="time"],
.ngm-plugin input[type="password"],
.ngm-plugin select,
.ngm-plugin textarea {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--ngm-line);
  border-radius: var(--ngm-radius-sm);
  background: var(--ngm-white);
  color: var(--ngm-ink);
  font: inherit;
  transition: border-color var(--ngm-ease), box-shadow var(--ngm-ease);
}

.ngm-ui input:focus,
.ngm-ui select:focus,
.ngm-ui textarea:focus,
.ngm-plugin input:focus,
.ngm-plugin select:focus,
.ngm-plugin textarea:focus {
  border-color: var(--ngm-green);
  box-shadow: 0 0 0 3px rgba(36,72,58,.10);
  outline: none;
}

/* Cards / panels */
.ngm-card,
.ngm-panel {
  background: var(--ngm-paper);
  border: 1px solid var(--ngm-line);
  border-radius: var(--ngm-radius-md);
  box-shadow: var(--ngm-shadow-sm);
}

.ngm-card { padding: var(--ngm-space-6); }
.ngm-panel { padding: var(--ngm-space-5); }

/* Tables */
.ngm-table,
.ngm-ui table,
.ngm-plugin table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ngm-paper);
  color: var(--ngm-ink);
}

.ngm-table th,
.ngm-ui table th,
.ngm-plugin table th {
  background: var(--ngm-cream);
  color: var(--ngm-ink);
  font-weight: 700;
  text-align: left;
}

.ngm-table th,
.ngm-table td,
.ngm-ui table th,
.ngm-ui table td,
.ngm-plugin table th,
.ngm-plugin table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ngm-line);
}

/* Status badges */
.ngm-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--ngm-radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: var(--ngm-sage);
  color: var(--ngm-ink);
}
.ngm-badge-success { background: #dceee4; color: #20563f; }
.ngm-badge-warning { background: #fff1d5; color: #7c4b00; }
.ngm-badge-danger  { background: #fde2df; color: #8f1c13; }
.ngm-badge-muted   { background: #ecebea; color: var(--ngm-muted); }

/* Notices */
.ngm-notice {
  padding: 14px 16px;
  border-left: 4px solid var(--ngm-green);
  background: var(--ngm-cream);
  color: var(--ngm-ink);
}
.ngm-notice-success { border-left-color: var(--ngm-success); }
.ngm-notice-warning { border-left-color: var(--ngm-warning); }
.ngm-notice-danger  { border-left-color: var(--ngm-danger); }
