/* ABTesting admin dashboard styles. Framework-agnostic; include from the host:
   <link rel="stylesheet" href="_content/DotNetShared.AspNet/ab-test-dashboard.css" />
   Same class-prefix convention as usage-dashboard.css (ut-*), here using ab-*. */

.ab-dashboard { font-size: 14px; max-width: 1100px; }
.ab-dashboard h2 { margin: 0; font-size: 22px; font-weight: 600; }
.ab-dashboard h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.ab-dashboard h4 { margin: 12px 0 6px; font-size: 13px; font-weight: 600; }
.ab-muted { color: #888; }

.ab-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

.ab-alert { background: #ffebee; border: 1px solid #ef9a9a; color: #c62828; border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; }

.ab-btn {
    border: 1px solid #ccc; background: transparent; color: inherit; border-radius: 4px;
    padding: 6px 12px; cursor: pointer; font-size: 13px;
}
.ab-btn:hover { background: rgba(128,128,128,.1); }
.ab-btn-primary { background: #1976d2; color: #fff; border-color: #1976d2; }
.ab-btn-primary:hover { background: #1565c0; }
.ab-btn-icon { border: none; background: transparent; color: inherit; cursor: pointer; font-size: 16px; padding: 2px 8px; opacity: .7; }
.ab-btn-icon:hover { opacity: 1; }
.ab-btn-link { border: none; background: transparent; color: #1976d2; cursor: pointer; font-size: 12px; padding: 0; text-decoration: underline; }

.ab-card {
    border: 1px solid rgba(128,128,128,.3); border-radius: 8px; padding: 16px; margin-bottom: 16px;
}

.ab-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 8px; }
.ab-form-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #888; }
.ab-form-grid label input, .ab-form-grid label select {
    border: 1px solid #ccc; background: transparent; color: inherit; border-radius: 4px; padding: 5px 8px; font-size: 13px;
}
.ab-span2 { grid-column: span 2; }
.ab-checkbox { flex-direction: row !important; align-items: center; gap: 6px !important; }
.ab-checkbox input { width: auto !important; }

.ab-variant-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.ab-variant-row input { border: 1px solid #ccc; background: transparent; color: inherit; border-radius: 4px; padding: 5px 8px; font-size: 13px; }

.ab-form-actions { margin-top: 12px; }

.ab-test-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ab-key { font-family: monospace; font-size: 11px; color: #888; margin-left: 6px; }
.ab-meta { font-size: 12px; color: #888; margin-top: 4px; }

.ab-status { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.ab-status-draft { background: #eceff1; color: #607d8b; }
.ab-status-running { background: #e8f5e9; color: #2e7d32; }
.ab-status-paused { background: #fff8e1; color: #f57f17; }
.ab-status-completed { background: #e3f2fd; color: #1565c0; }

/* The variant table (Variant | Exposures | Conversions | Rate | vs control | actions) doesn't fit a
   phone viewport -- scroll IT, never the page (see the host app's own "wide content scrolls in its own
   container" rule). Without this, narrow-viewport browsers wrap/overlap cells unpredictably instead of
   just clipping, which can leave later columns' buttons visually present but unclickable (covered by a
   neighboring cell) rather than simply off-screen. */
.ab-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ab-variant-table { width: 100%; min-width: 560px; border-collapse: collapse; margin-bottom: 10px; }
.ab-variant-table th { text-align: left; font-size: 11px; color: #888; font-weight: 600; padding: 4px 8px; border-bottom: 1px solid rgba(128,128,128,.3); }
.ab-variant-table td { padding: 6px 8px; border-bottom: 1px solid rgba(128,128,128,.15); font-size: 13px; }
.ab-variant-table tr.ab-winner { background: rgba(46,125,50,.08); }

.ab-sig-win { color: #2e7d32; font-weight: 600; }
.ab-sig-lose { color: #c62828; font-weight: 600; }

.ab-actions { display: flex; gap: 8px; }
