/* ══════════════════════════════════════════════
   BrewmyApp Admin UI — v2.0
   Premium WordPress Plugin Admin Styles
   ══════════════════════════════════════════════ */

:root {
  --bma-black: #000000;
  --bma-white: #ffffff;
  --bma-gray-50: #fafafa;
  --bma-gray-100: #f4f4f5;
  --bma-gray-200: #e4e4e7;
  --bma-gray-300: #d4d4d8;
  --bma-gray-400: #a1a1aa;
  --bma-gray-500: #71717a;
  --bma-gray-600: #52525b;
  --bma-gray-700: #3f3f46;
  --bma-gray-800: #27272a;
  --bma-gray-900: #18181b;
  --bma-emerald: #10b981;
  --bma-emerald-light: #d1fae5;
  --bma-amber: #f59e0b;
  --bma-amber-light: #fef3c7;
  --bma-red: #ef4444;
  --bma-red-light: #fee2e2;
  --bma-blue: #3b82f6;
  --bma-blue-light: #dbeafe;
  --bma-purple: #8b5cf6;
  --bma-purple-light: #ede9fe;
  --bma-radius: 12px;
  --bma-radius-sm: 8px;
  --bma-radius-xs: 6px;
  --bma-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --bma-shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --bma-shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --bma-transition: all 0.2s ease;
}

/* ── Page Wrapper ─────────────────────────── */
.bma-wrap {
  max-width: 1200px;
  margin: 20px 20px 20px 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Page Header ──────────────────────────── */
.bma-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bma-gray-200);
}

.bma-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.bma-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.bma-header-text h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--bma-gray-900);
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.bma-header-text p {
  font-size: 14px;
  color: var(--bma-gray-500);
  margin: 2px 0 0 0;
  line-height: 1.4;
}

/* ── Tab Navigation ───────────────────────── */
.bma-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--bma-gray-200);
  padding-bottom: 0;
  overflow-x: auto;
}

.bma-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bma-gray-500);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--bma-transition);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.bma-tab:hover {
  color: var(--bma-gray-900);
}

.bma-tab.active,
.bma-tab:focus {
  color: var(--bma-black);
  border-bottom-color: var(--bma-black);
  font-weight: 600;
}

/* ── Cards ────────────────────────────────── */
.bma-card {
  background: var(--bma-white);
  border: 1px solid var(--bma-gray-200);
  border-radius: var(--bma-radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--bma-shadow);
  transition: var(--bma-transition);
}

.bma-card:hover {
  box-shadow: var(--bma-shadow-md);
}

.bma-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.bma-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bma-gray-900);
  margin: 0;
  line-height: 1.3;
}

.bma-card-title .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: var(--bma-gray-600);
}

.bma-card-desc {
  font-size: 13px;
  color: var(--bma-gray-500);
  margin: 12px 0 0 0;
  line-height: 1.5;
}

.bma-card-desc code {
  background: var(--bma-gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--bma-gray-700);
}

/* ── Stat Grid ────────────────────────────── */
.bma-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.bma-stat-card {
  background: var(--bma-white);
  border: 1px solid var(--bma-gray-200);
  border-radius: var(--bma-radius);
  padding: 20px;
  box-shadow: var(--bma-shadow);
  transition: var(--bma-transition);
}

.bma-stat-card:hover {
  box-shadow: var(--bma-shadow-md);
  transform: translateY(-1px);
}

.bma-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
}

.bma-stat-icon.emerald {
  background: var(--bma-emerald-light);
  color: var(--bma-emerald);
}
.bma-stat-icon.blue {
  background: var(--bma-blue-light);
  color: var(--bma-blue);
}
.bma-stat-icon.amber {
  background: var(--bma-amber-light);
  color: var(--bma-amber);
}
.bma-stat-icon.purple {
  background: var(--bma-purple-light);
  color: var(--bma-purple);
}
.bma-stat-icon.red {
  background: var(--bma-red-light);
  color: var(--bma-red);
}

.bma-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--bma-gray-900);
  line-height: 1;
  margin-bottom: 4px;
}

.bma-stat-label {
  font-size: 13px;
  color: var(--bma-gray-500);
  font-weight: 500;
}

/* ── Badge / Status ───────────────────────── */
.bma-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.bma-badge-success {
  background: var(--bma-emerald-light);
  color: #065f46;
}
.bma-badge-warning {
  background: var(--bma-amber-light);
  color: #92400e;
}
.bma-badge-error {
  background: var(--bma-red-light);
  color: #991b1b;
}
.bma-badge-info {
  background: var(--bma-blue-light);
  color: #1e40af;
}
.bma-badge-neutral {
  background: var(--bma-gray-100);
  color: var(--bma-gray-700);
}

.bma-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.bma-badge-success .bma-badge-dot {
  background: var(--bma-emerald);
}
.bma-badge-warning .bma-badge-dot {
  background: var(--bma-amber);
}
.bma-badge-error .bma-badge-dot {
  background: var(--bma-red);
}
.bma-badge-info .bma-badge-dot {
  background: var(--bma-blue);
}

/* ── Tables ───────────────────────────────── */
.bma-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  border: 1px solid var(--bma-gray-200);
  border-radius: var(--bma-radius-sm);
  overflow: hidden;
}

.bma-table thead th {
  background: var(--bma-gray-50);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--bma-gray-600);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--bma-gray-200);
  white-space: nowrap;
}

.bma-table tbody td {
  padding: 12px 16px;
  color: var(--bma-gray-700);
  border-bottom: 1px solid var(--bma-gray-100);
  vertical-align: middle;
}

.bma-table tbody tr:last-child td {
  border-bottom: none;
}

.bma-table tbody tr:hover {
  background: var(--bma-gray-50);
}

.bma-table .bma-mono {
  font-family: "SF Mono", "Consolas", "Liberation Mono", monospace;
  font-size: 12px;
  color: var(--bma-gray-600);
}

/* ── Form Controls ────────────────────────── */
.bma-form-table {
  width: 100%;
  border-spacing: 0;
}

.bma-form-table th {
  text-align: left;
  padding: 14px 16px 14px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--bma-gray-700);
  vertical-align: top;
  width: 200px;
}

.bma-form-table td {
  padding: 10px 0;
}

.bma-input {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--bma-gray-300);
  border-radius: var(--bma-radius-xs);
  background: var(--bma-white);
  color: var(--bma-gray-900);
  transition: var(--bma-transition);
  font-family: inherit;
  box-sizing: border-box;
}

.bma-input:focus {
  outline: none;
  border-color: var(--bma-black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.bma-input::placeholder {
  color: var(--bma-gray-400);
}

.bma-input-wide {
  max-width: 100%;
}

.bma-textarea {
  width: 100%;
  max-width: 500px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--bma-gray-300);
  border-radius: var(--bma-radius-xs);
  background: var(--bma-white);
  color: var(--bma-gray-900);
  transition: var(--bma-transition);
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  box-sizing: border-box;
}

.bma-textarea:focus {
  outline: none;
  border-color: var(--bma-black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.bma-select {
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  border: 1px solid var(--bma-gray-300);
  border-radius: var(--bma-radius-xs);
  background: var(--bma-white);
  color: var(--bma-gray-900);
  transition: var(--bma-transition);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.937 10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-family: inherit;
}

.bma-select:focus {
  outline: none;
  border-color: var(--bma-black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.bma-field-hint {
  display: block;
  font-size: 12px;
  color: var(--bma-gray-500);
  margin-top: 6px;
  line-height: 1.4;
}

.bma-field-hint code {
  background: var(--bma-gray-100);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}

/* ── Toggle Switch ────────────────────────── */
.bma-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bma-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
}

.bma-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.bma-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bma-gray-300);
  border-radius: 24px;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
  border: 2px solid transparent;
}

.bma-toggle-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bma-white);
  border-radius: 50%;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bma-toggle input:checked + .bma-toggle-slider {
  background: var(--bma-emerald);
}

.bma-toggle input:checked + .bma-toggle-slider::before {
  transform: translateY(-50%) translateX(20px);
}

.bma-toggle input:focus-visible + .bma-toggle-slider {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.bma-toggle:hover .bma-toggle-slider {
  background: var(--bma-gray-400);
}

.bma-toggle:hover input:checked + .bma-toggle-slider {
  background: #059669;
}

/* ── Buttons ──────────────────────────────── */
.bma-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--bma-radius-xs);
  cursor: pointer;
  transition: var(--bma-transition);
  border: none;
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
}

.bma-btn-primary {
  background: var(--bma-black);
  color: var(--bma-white);
}

.bma-btn-primary:hover {
  background: var(--bma-gray-800);
  color: var(--bma-white);
  transform: translateY(-1px);
  box-shadow: var(--bma-shadow-md);
}

.bma-btn-secondary {
  background: var(--bma-white);
  color: var(--bma-gray-700);
  border: 1px solid var(--bma-gray-300);
}

.bma-btn-secondary:hover {
  background: var(--bma-gray-50);
  color: var(--bma-gray-900);
  border-color: var(--bma-gray-400);
}

.bma-btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

.bma-btn-danger {
  background: var(--bma-red);
  color: var(--bma-white);
}

.bma-btn-danger:hover {
  background: #dc2626;
  color: var(--bma-white);
}

.bma-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 16px;
}

/* ── Notices ──────────────────────────────── */
.bma-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--bma-radius-sm);
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
}

.bma-notice-success {
  background: var(--bma-emerald-light);
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.bma-notice-warning {
  background: var(--bma-amber-light);
  color: #92400e;
  border: 1px solid #fde68a;
}
.bma-notice-error {
  background: var(--bma-red-light);
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.bma-notice-info {
  background: var(--bma-blue-light);
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.bma-notice .dashicons {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Feature Grid (Dashboard) ─────────────── */
.bma-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.bma-feature-card {
  background: var(--bma-white);
  border: 1px solid var(--bma-gray-200);
  border-radius: var(--bma-radius);
  padding: 24px;
  box-shadow: var(--bma-shadow);
  transition: var(--bma-transition);
  cursor: default;
}

.bma-feature-card:hover {
  box-shadow: var(--bma-shadow-md);
  border-color: var(--bma-gray-300);
}

.bma-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.bma-feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--bma-gray-900);
  margin: 0 0 6px 0;
}

.bma-feature-card p {
  font-size: 13px;
  color: var(--bma-gray-500);
  margin: 0;
  line-height: 1.5;
}

.bma-feature-card .bma-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bma-black);
  text-decoration: none;
  transition: var(--bma-transition);
}

.bma-feature-card .bma-feature-link:hover {
  gap: 8px;
}

/* ── CTA Banner ───────────────────────────── */
.bma-cta-banner {
  background: var(--bma-white);
  color: var(--bma-gray-900);
  border: 1px solid var(--bma-gray-200);
  border-radius: var(--bma-radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  box-shadow: var(--bma-shadow);
}

.bma-cta-banner h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--bma-gray-900);
}

.bma-cta-banner p {
  font-size: 14px;
  color: var(--bma-gray-500);
  margin: 0;
  line-height: 1.5;
}

.bma-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bma-black);
  color: var(--bma-white);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--bma-radius-xs);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--bma-transition);
  flex-shrink: 0;
  border: 1px solid var(--bma-black);
}

.bma-cta-btn:hover {
  background: var(--bma-gray-800);
  color: var(--bma-white);
  transform: translateY(-1px);
  box-shadow: var(--bma-shadow-md);
}

.bma-cta-btn-secondary {
  background: var(--bma-white);
  color: var(--bma-gray-900);
  border: 1px solid var(--bma-gray-300);
}

.bma-cta-btn-secondary:hover {
  background: var(--bma-gray-50);
  color: var(--bma-gray-900);
  border-color: var(--bma-gray-400);
}

/* ── Endpoint List ────────────────────────── */
.bma-endpoint-group {
  margin-bottom: 24px;
}

.bma-endpoint-group h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--bma-gray-900);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bma-endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bma-gray-50);
  border: 1px solid var(--bma-gray-200);
  border-radius: var(--bma-radius-xs);
  margin-bottom: 8px;
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 13px;
  transition: var(--bma-transition);
}

.bma-endpoint:hover {
  border-color: var(--bma-gray-300);
  background: var(--bma-white);
}

.bma-method {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  width: 52px;
  justify-content: center;
  font-family: inherit;
}

.bma-method-get {
  background: var(--bma-emerald-light);
  color: #065f46;
}
.bma-method-post {
  background: var(--bma-blue-light);
  color: #1e40af;
}
.bma-method-delete {
  background: var(--bma-red-light);
  color: #991b1b;
}

.bma-endpoint-path {
  color: var(--bma-gray-700);
  flex: 1;
}

.bma-endpoint-desc {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 12px;
  color: var(--bma-gray-500);
  text-align: right;
}

/* ── Copy Button ──────────────────────────── */
.bma-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bma-gray-100);
  color: var(--bma-gray-600);
  border: 1px solid var(--bma-gray-200);
  border-radius: var(--bma-radius-xs);
  cursor: pointer;
  transition: var(--bma-transition);
}

.bma-copy-btn:hover {
  background: var(--bma-gray-200);
  color: var(--bma-gray-800);
}

.bma-copy-btn.copied {
  background: var(--bma-emerald-light);
  color: #065f46;
  border-color: #a7f3d0;
}

/* ── Pagination ───────────────────────────── */
.bma-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.bma-pagination a,
.bma-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--bma-radius-xs);
  text-decoration: none;
  transition: var(--bma-transition);
}

.bma-pagination a {
  background: var(--bma-white);
  color: var(--bma-gray-700);
  border: 1px solid var(--bma-gray-300);
}

.bma-pagination a:hover {
  background: var(--bma-gray-50);
  border-color: var(--bma-gray-400);
  color: var(--bma-gray-900);
}

.bma-pagination .current {
  background: var(--bma-black);
  color: var(--bma-white);
  border: 1px solid var(--bma-black);
}

/* ── Info Row ─────────────────────────────── */
.bma-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--bma-gray-100);
}

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

.bma-info-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--bma-gray-500);
}

.bma-info-value {
  font-size: 13px;
  color: var(--bma-gray-900);
  font-family: "SF Mono", Consolas, monospace;
  word-break: break-all;
  text-align: right;
  max-width: 60%;
}

/* ── Empty State ──────────────────────────── */
.bma-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--bma-gray-400);
}

.bma-empty-state .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.bma-empty-state p {
  font-size: 14px;
  margin: 0;
}

/* ── Section Divider ──────────────────────── */
.bma-divider {
  border: none;
  border-top: 1px solid var(--bma-gray-200);
  margin: 24px 0;
}

/* ── Two-Column Layout ────────────────────── */
.bma-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 960px) {
  .bma-two-col {
    grid-template-columns: 1fr;
  }
  .bma-cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Version Footer ───────────────────────── */
.bma-footer {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: var(--bma-gray-400);
  margin-top: 32px;
}

.bma-footer a {
  color: var(--bma-gray-500);
  text-decoration: none;
}

.bma-footer a:hover {
  color: var(--bma-black);
}

/* ── Checkbox Improvements ────────────────── */
.bma-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--bma-black);
}

/* ── Code Block ───────────────────────────── */
.bma-code-block {
  background: var(--bma-gray-900);
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: var(--bma-radius-sm);
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  position: relative;
}

.bma-code-block .bma-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--bma-gray-400);
}

.bma-code-block .bma-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--bma-white);
}

/* ── Scrollable Table Container ───────────── */
.bma-table-wrap {
  overflow-x: auto;
  border-radius: var(--bma-radius-sm);
}

/* ── Quick Links Row ──────────────────────── */
.bma-quick-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.bma-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bma-gray-700);
  background: var(--bma-gray-50);
  border: 1px solid var(--bma-gray-200);
  border-radius: var(--bma-radius-xs);
  text-decoration: none;
  transition: var(--bma-transition);
}

.bma-quick-link:hover {
  background: var(--bma-white);
  border-color: var(--bma-gray-300);
  color: var(--bma-black);
  box-shadow: var(--bma-shadow);
}

.bma-quick-link .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* ── Screen reader only (for hidden textareas) ─ */
.bma-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Animations ───────────────────────────── */
@keyframes bma-fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bma-card,
.bma-stat-card,
.bma-feature-card {
  animation: bma-fadeIn 0.3s ease forwards;
}

.bma-stats-grid .bma-stat-card:nth-child(2) {
  animation-delay: 0.05s;
}
.bma-stats-grid .bma-stat-card:nth-child(3) {
  animation-delay: 0.1s;
}
.bma-stats-grid .bma-stat-card:nth-child(4) {
  animation-delay: 0.15s;
}

/* ── Health Status Indicator ──────────────── */
.bma-health-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  animation: bma-pulse 2s ease infinite;
}

.bma-health-dot.active {
  background: var(--bma-emerald);
}
.bma-health-dot.inactive {
  background: var(--bma-red);
  animation: none;
}

@keyframes bma-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ── Order Status Toggle Rows ─────────────── */
.bma-order-status-table .bma-row-disabled td {
  opacity: 0.5;
}

.bma-order-status-table .bma-row-disabled td:first-child {
  opacity: 1;
}

.bma-order-status-table .bma-row-enabled {
  background: var(--bma-emerald-light);
}

.bma-order-status-table .bma-row-enabled:hover {
  background: #c6f6d5;
}

.bma-order-status-table .bma-row-disabled:hover td {
  opacity: 0.7;
}

.bma-order-status-table .bma-row-disabled:hover td:first-child {
  opacity: 1;
}
