body { margin:0; min-height:100vh; background:var(--bg); font-family:var(--font-sans); color:var(--foreground); }
body { margin:0; min-height:100vh; background:var(--bg); font-family:var(--font-sans); color:var(--foreground); }
.layout-wrapper { display:flex; max-width:1300px; margin:0 auto; padding:20px; gap:20px; }
.main-col { flex:1; min-width:0; }
.sim-col { width:340px; flex-shrink:0; }

.sim-panel { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:20px; position:sticky; top:20px; box-shadow:0 4px 12px rgba(0,0,0,0.02); }
.sim-title { font-size:15px; font-weight:700; display:flex; align-items:center; gap:8px; margin-bottom:16px; color:var(--foreground); }
.sim-input { width:100%; min-height:80px; resize:none; margin-bottom:12px; font-size:13px; line-height:1.5; padding:12px; background:var(--bg); border:1px solid var(--border); border-radius:8px; transition:border-color 0.2s; }
.sim-input:focus { border-color:var(--primary); outline:none; box-shadow:0 0 0 3px rgba(37,99,235,0.1); }
.btn-sim-action { display:flex; align-items:center; justify-content:center; padding:10px 16px; font-weight:600; font-size:13px; letter-spacing:0.3px; border-radius:8px; background:var(--primary); color:white; transition:all 0.2s; border:none; cursor:pointer; }
.btn-sim-action:hover { background:#1d4ed8; transform:translateY(-1px); box-shadow:0 4px 12px rgba(37,99,235,0.2); }
.sim-meta { font-size:11px; color:var(--muted-fg); margin-top:12px; text-align:center; font-family:monospace; }
.sim-results { margin-top:20px; display:flex; flex-direction:column; gap:12px; max-height:calc(100vh - 280px); overflow-y:auto; padding-right:4px; }
.sim-results::-webkit-scrollbar { width: 4px; }
.sim-results::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.sim-empty-state { text-align:center; color:var(--muted-fg); font-size:13px; padding:30px 10px; background:#f8fafc; border-radius:8px; border:1px dashed #cbd5e1; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.sim-card { background:#ffffff; border:1px solid var(--border); border-radius:10px; padding:14px; box-shadow:0 2px 6px rgba(0,0,0,0.02); transition:transform 0.2s, box-shadow 0.2s; }
.sim-card:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,0.05); border-color:#cbd5e1; }
.sim-score { font-size:11px; font-weight:700; color:#b45309; background:#fef3c7; padding:3px 8px; border-radius:12px; float:right; border:1px solid #fde68a; }
.sim-q { font-size:13px; font-weight:600; margin-bottom:6px; color:var(--foreground); padding-right:50px; line-height:1.4; }
.sim-a { font-size:12px; color:var(--muted-fg); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; line-height:1.5; }


/* Header */
.page-hdr { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.page-hdr h1 { font-size:20px; font-weight:700; margin:0; }
.page-hdr p { font-size:13px; color:var(--muted-fg); margin:2px 0 0; }

/* Stats Row */
.stats-row { display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; margin-bottom:20px; }
.stat-card { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:20px; text-align:center; transition:transform .2s,box-shadow .2s; }
.stat-card:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.06); }
.stat-num { font-size:28px; font-weight:800; color:var(--gold,#B45309); margin-bottom:4px; }
.stat-label { font-size:12px; color:var(--muted-fg); font-weight:600; text-transform:uppercase; letter-spacing:.05em; }

/* Filter Bar */
.filter-bar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:14px 16px; background:var(--card); border:1px solid var(--border); border-radius:10px; margin-bottom:14px; }
.filter-bar label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted-fg); }
.input-text, .input-select {
    padding:8px 12px; border:1px solid var(--border); border-radius:8px; font:inherit; font-size:13px; background:var(--card); color:var(--foreground); outline:none; box-sizing:border-box;
}
.input-text:focus, .input-select:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(59,89,152,0.08); }
.filter-bar .input-text { min-width:200px; }

/* Table */
.table-wrap { overflow-x:auto; background:var(--card); border:1px solid var(--border); border-radius:12px; }
.data-table { width:100%; border-collapse:collapse; font-size:13px; }
.data-table th { background:var(--bg); padding:12px 14px; text-align:left; font-weight:600; color:var(--muted-fg); border-bottom:1px solid var(--border); font-size:11px; text-transform:uppercase; letter-spacing:.04em; }
.data-table td { padding:12px 14px; border-bottom:1px solid var(--border); vertical-align:top; }
.data-table tr:hover { background:var(--bg); }
.data-table .q-text { font-weight:600; color:var(--foreground); }
.data-table .a-text { color:var(--muted-fg); font-size:12.5px; max-width:400px; line-height:1.5; white-space:pre-wrap; }

/* Badges */
.badge-cat { display:inline-block; padding:2px 8px; border-radius:20px; font-size:11px; font-weight:600; }
.badge-original { background:#dcfce7; color:#166534; }
.badge-variant { background:#fef3c7; color:#92400e; }
.cat-tag { display:inline-block; padding:2px 8px; border-radius:6px; font-size:11px; font-weight:600; background:var(--bg); color:var(--muted-fg); border:1px solid var(--border); }

/* Buttons */
.act-btn { background:none; border:none; cursor:pointer; padding:6px; border-radius:6px; font-size:14px; transition:background .2s; }
.act-btn:hover { background:var(--bg); }
.gen-badge { display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border-radius:12px; font-size:11px; background:#ede9fe; color:#6d28d9; font-weight:600; cursor:pointer; transition:background .2s; }
.gen-badge:hover { background:#ddd6fe; }

/* Pagination */
.pagination { display:flex; gap:6px; justify-content:center; margin-top:16px; }
.page-btn { padding:6px 12px; border:1px solid var(--border); border-radius:8px; background:var(--card); cursor:pointer; font-size:13px; font-weight:600; color:var(--muted-fg); transition:all .2s; }
.page-btn:hover { border-color:var(--gold); color:var(--gold); }
.page-btn.active { background:var(--gold); color:#fff; border-color:var(--gold); }

/* Modal */
.modal-overlay { position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:1000;display:none;justify-content:center;align-items:center;backdrop-filter:blur(2px); }
.modal-overlay.show { display:flex; animation:fadeIn .2s; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal { background:var(--card); border-radius:14px; width:90%; box-shadow:0 10px 30px rgba(0,0,0,.15); border:1px solid var(--border); }
.modal-head { display:flex; justify-content:space-between; align-items:center; padding:16px 20px; border-bottom:1px solid var(--border); }
.modal-head h3 { margin:0; font-size:16px; font-weight:700; color:var(--foreground); }
.modal-close { background:none; border:none; font-size:20px; cursor:pointer; color:var(--muted-fg); }
.modal-body { padding:20px; }
.modal-foot { display:flex; justify-content:flex-end; gap:8px; padding:12px 20px; border-top:1px solid var(--border); background:var(--bg); border-bottom-left-radius:14px; border-bottom-right-radius:14px; }

.form-group { margin-bottom:16px; }
.form-label { display:block; font-size:12px; font-weight:700; color:var(--muted-fg); margin-bottom:6px; }

@media(max-width:768px) {
    .stats-row { grid-template-columns: repeat(2,1fr); }
}
