/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  background: #F1F5F9;
  -webkit-font-smoothing: antialiased;
}
a { color: #6366F1; text-decoration: none; }
a:hover { text-decoration: none; }

:root {
  --sidebar-bg: #0B1120;
  --sidebar-text: rgba(255,255,255,0.75);
  --sidebar-active: #6366F1;
  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --accent: #EC4899;
  --accent-hover: #DB2777;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #334155;
  --text-muted: #94A3B8;
  --text-heading: #0F172A;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-family: Inter, sans-serif; font-weight: 700; color: var(--text-heading); letter-spacing: -0.02em; }

/* ========== LAYOUT ========== */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 264px; background: var(--sidebar-bg); color: #fff;
  display: flex; flex-direction: column; flex-shrink: 0;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  transition: transform 0.3s ease;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 12px;
}

.sidebar-logo .logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.sidebar-logo .logo-text { font-family: Inter, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.5px; color: #fff; }

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }

.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; margin: 0 8px;
  color: var(--sidebar-text); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.sidebar-nav a.active { color: #fff; background: var(--primary); box-shadow: 0 2px 8px rgba(99,102,241,0.3); }

.sidebar-nav a .nav-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-nav a .nav-icon svg { width: 18px; height: 18px; }

.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.08); }

.user-menu {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 8px; border-radius: var(--radius-sm);
  transition: background 0.15s; position: relative;
}
.user-menu:hover { background: rgba(255,255,255,0.06); }

.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-info .user-name { font-size: 13px; font-weight: 600; color: #fff; }
.user-info .user-email { font-size: 11px; color: rgba(255,255,255,0.5); }

.user-dropdown {
  display: none; position: absolute; bottom: 100%; left: 0; right: 0;
  background: var(--surface); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); margin-bottom: 4px; overflow: hidden; z-index: 200;
}
.user-dropdown.open { display: block; }
.user-dropdown a { display: block; padding: 10px 16px; color: var(--text); font-size: 13px; text-decoration: none; }
.user-dropdown a:hover { background: #F8FAFC; }

.main-content { flex: 1; margin-left: 264px; min-height: 100vh; }

.topbar {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 19px; font-weight: 700; color: var(--text-heading); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: 0.3s; }

.page-content { padding: 32px; max-width: 1400px; }

/* ========== CARDS ========== */
.card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-header h2, .card-header h3 { font-size: 15px; color: var(--text-heading); }

/* ========== STATS GRID ========== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
  box-shadow: var(--shadow-sm); transition: all 0.2s;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity 0.3s;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-card:hover::before { opacity: 1; }
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .stat-value { font-size: 34px; font-weight: 800; color: var(--text-heading); font-family: Inter, sans-serif; letter-spacing: -1px; }
.stat-card .stat-icon { float: right; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.stat-card .stat-icon svg { width: 22px; height: 22px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: Inter, sans-serif; font-weight: 600; font-size: 13px; line-height: 1;
  border-radius: var(--radius-sm); padding: 10px 20px; cursor: pointer;
  transition: all 0.15s; border: 1px solid transparent; text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #F8FAFC; }

.btn-danger { background: #EF4444; color: #fff; }
.btn-danger:hover { background: #DC2626; }

.btn-success { background: #10B981; color: #fff; }
.btn-success:hover { background: #059669; }

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: #F1F5F9; box-shadow: none; transform: none; }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-icon { padding: 8px; min-width: 36px; min-height: 36px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: Inter, sans-serif;
  font-size: 14px; color: var(--text); background: var(--surface);
  transition: all 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-input::placeholder { color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ========== TABLES ========== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
table th {
  text-align: left; padding: 12px 16px; font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted);
  border-bottom: 1px solid var(--border); background: #F8FAFC; white-space: nowrap;
}
table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: #F8FAFC; }
table tr.clickable { cursor: pointer; }

/* ========== BADGES ========== */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.2px;
}
.badge-success { background: #DCFCE7; color: #166534; }
.badge-error { background: #FEE2E2; color: #991B1B; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-neutral { background: #F1F5F9; color: #475569; }

/* ========== TOASTS ========== */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 14px 20px; border-radius: var(--radius-sm); color: #fff; font-size: 13.5px;
  font-weight: 500; box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease;
  max-width: 400px; display: flex; align-items: center; gap: 10px;
}
.toast-success { background: #10B981; }
.toast-error { background: #EF4444; }
.toast-info { background: var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ========== MODAL ========== */
#modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,0.6); backdrop-filter: blur(4px);
  z-index: 5000; align-items: center; justify-content: center; padding: 20px;
}
#modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: 16px; max-width: 640px; width: 100%;
  max-height: 85vh; overflow-y: auto; box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  animation: modalIn 0.2s ease;
}
.modal-wide { max-width: 860px; }
@keyframes modalIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 18px; color: var(--text-heading); }
.modal-close { background: none; border: none; font-size: 24px; color: var(--text-muted); cursor: pointer; padding: 4px; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border); }

/* ========== LOADING ========== */
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.6s linear infinite; margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { display: flex; align-items: center; justify-content: center; min-height: 200px; }

/* ========== EMPTY STATE ========== */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text-muted); }
.empty-state svg { width: 64px; height: 64px; color: #CBD5E1; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--text-heading); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ========== ACTIVITY FEED ========== */
.activity-feed { list-style: none; }
.activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid #F1F5F9; }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: #CBD5E1; }
.activity-dot.passed { background: #10B981; }
.activity-dot.failed { background: #EF4444; }
.activity-dot.running { background: var(--primary); }
.activity-dot.pending { background: #F59E0B; }
.activity-dot.error { background: #EF4444; }
.activity-content { flex: 1; }
.activity-content .activity-title { font-size: 14px; font-weight: 500; }
.activity-content .activity-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ========== GRID LAYOUTS ========== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.chart-container { position: relative; height: 250px; }

/* ========== STEP EDITOR ========== */
.steps-list { list-style: none; }
.step-item {
  display: flex; align-items: center; gap: 8px; padding: 12px; margin-bottom: 8px;
  background: #F8FAFC; border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.step-item:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(99,102,241,0.08); }
.step-item.dragging { opacity: 0.5; border-color: var(--primary); }
.step-drag-handle { cursor: grab; color: var(--text-muted); display: flex; align-items: center; padding: 4px; }
.step-drag-handle:active { cursor: grabbing; }
.step-number {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.step-fields { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.step-fields .form-select, .step-fields .form-input { width: auto; flex: 1; min-width: 100px; }
.step-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; font-size: 18px; line-height: 1; }
.step-remove:hover { color: #EF4444; }

/* ========== DETAIL PAGES ========== */
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.detail-header h1 { font-size: 24px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.meta-item .meta-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.meta-item .meta-value { font-size: 15px; font-weight: 500; color: var(--text); margin-top: 4px; }

/* ========== STEP LOG ========== */
.step-log { list-style: none; }
.step-log-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); }
.step-log-item:last-child { border-bottom: none; }
.step-log-status { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.step-log-status.passed { background: #DCFCE7; color: #10B981; }
.step-log-status.failed { background: #FEE2E2; color: #EF4444; }
.step-log-status.skipped { background: #F1F5F9; color: var(--text-muted); }
.step-log-status.pending { background: #FEF3C7; color: #F59E0B; }
.step-log-content { flex: 1; }
.step-log-action { font-weight: 600; font-size: 14px; }
.step-log-target { font-size: 13px; color: var(--text-muted); font-family: monospace; margin-top: 2px; }
.step-log-duration { font-size: 12px; color: #CBD5E1; margin-top: 2px; }
.step-log-error { background: #FEF2F2; border: 1px solid #FECACA; border-radius: 4px; padding: 8px 12px; font-size: 13px; color: #991B1B; margin-top: 6px; font-family: monospace; }
.step-log-console { background: #0B1120; color: #E2E8F0; border-radius: 4px; padding: 8px 12px; font-size: 12px; font-family: monospace; margin-top: 6px; max-height: 150px; overflow-y: auto; }
.step-log-screenshot { margin-top: 8px; }
.step-log-screenshot img { max-width: 300px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }

/* ========== AI PANEL ========== */
.ai-panel {
  background: linear-gradient(135deg, #EEF2FF 0%, #FDF2F8 100%);
  border: 1px solid #DDD6FE; border-radius: var(--radius); padding: 20px; margin-top: 16px;
}
.ai-panel h3 { font-size: 14px; color: var(--primary); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.ai-panel p { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.ai-panel .ai-confidence { font-size: 12px; color: var(--text-muted); }

/* ========== SEARCH / FILTER ========== */
.search-bar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.search-bar .form-input { max-width: 320px; }
.search-bar .form-select { max-width: 180px; }

/* ========== PAGINATION ========== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 24px; }
.pagination button {
  padding: 8px 14px; border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; color: var(--text); font-weight: 500;
}
.pagination button:hover { background: #F1F5F9; }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.3; cursor: default; }

/* ========== SNIPPET BOX ========== */
.snippet-box {
  background: var(--sidebar-bg); color: #E2E8F0; padding: 16px;
  border-radius: var(--radius-sm); font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px; line-height: 1.7; overflow-x: auto; position: relative;
}
.copy-btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.1); border: none; color: #fff; padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: 11px; }
.copy-btn:hover { background: rgba(255,255,255,0.2); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .qa-grid, .run-overview { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .hamburger { display: block; }
  .topbar { padding: 0 16px; }
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .step-fields { flex-direction: column; }
  .step-fields .form-select, .step-fields .form-input { min-width: 0; }
  .detail-header { flex-direction: column; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .search-bar .form-input, .search-bar .form-select { max-width: 100%; }
}

/* ========== AUTH PAGES ========== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0B1120 0%, #1E1B4B 50%, #312E81 100%);
  padding: 20px;
}
.auth-card {
  background: var(--surface); border-radius: 20px; box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  max-width: 440px; width: 100%; padding: 44px 40px;
}
.auth-card .auth-logo { text-align: center; margin-bottom: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-card .auth-logo svg { width: 36px; height: 36px; }
.auth-card .auth-logo span { font-family: Inter, sans-serif; font-weight: 800; font-size: 22px; color: var(--text-heading); letter-spacing: -0.5px; }
.auth-card h1 { text-align: center; font-size: 24px; margin-bottom: 8px; }
.auth-card .auth-subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.auth-card .auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.auth-card .form-input { padding: 12px 14px; }
.auth-card .btn { width: 100%; padding: 14px; font-size: 14px; }

/* ========== QA DASHBOARD ========== */
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bug-item { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--surface); }
.bug-item.bug-fixed { opacity: 0.5; background: #F0FDF4; }
.bug-item.bug-critical { border-left: 3px solid #EF4444; }
.bug-item.bug-major { border-left: 3px solid #F59E0B; }
.bug-item.bug-minor { border-left: 3px solid var(--primary); }
.bug-item.bug-info { border-left: 3px solid var(--text-muted); }
.bug-header { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.bug-description { font-size: 13.5px; color: var(--text); margin-bottom: 8px; }
.bug-actions { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.btn-xs { padding: 3px 8px; font-size: 11px; border-radius: 4px; }
.btn-full { width: 100%; }
.run-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.run-stat { font-size: 13px; color: var(--text); }
.run-label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.suite-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.suite-card { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; }
.suite-name { font-size: 13px; font-weight: 600; color: var(--text); }
.suite-tests { font-size: 12px; color: var(--text-muted); margin: 4px 0 8px; }
.schedule-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.run-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 16px 0; }
.run-overview-stat { text-align: center; }
.run-value { font-size: 28px; font-weight: 700; font-family: Inter, sans-serif; }
.suite-result-item { padding: 14px; border-bottom: 1px solid #F1F5F9; }
.suite-result-item:last-child { border-bottom: none; }
.suite-result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.suite-result-name { font-size: 13px; font-weight: 600; }
.suite-result-bar { height: 4px; background: #F1F5F9; border-radius: 2px; margin-bottom: 4px; }
.suite-result-bar-fill { height: 100%; background: #10B981; border-radius: 2px; transition: width 0.3s; }
.suite-failed .suite-result-bar-fill { background: #EF4444; }
.suite-result-meta { font-size: 11px; color: var(--text-muted); }
.history-list { max-height: 400px; overflow-y: auto; }
.history-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F1F5F9; font-size: 13px; }
.history-date { flex: 0 0 80px; font-weight: 600; color: var(--text); }
.history-stats { flex: 0 0 60px; text-align: right; }
.history-bar { flex: 1; height: 6px; background: #F1F5F9; border-radius: 3px; }
.history-bar-fill { height: 100%; background: #10B981; border-radius: 3px; }
.history-failed .history-bar-fill { background: #EF4444; }
.history-duration { flex: 0 0 50px; text-align: right; color: var(--text-muted); }
.form-row { display: flex; gap: 12px; }
.fix-item { transition: opacity 0.3s; }
.fix-applied { opacity: 0.6; background: #F0FDF4; }
