/* Scan Tool – Frontend */
.st-app { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size:14px; color:#1a1a2e; max-width:760px; border:1px solid #d0d0d8; border-radius:8px; overflow:hidden; background:#fff; box-shadow:0 2px 12px rgba(0,0,0,.08); }

/* Tabs */
.st-tabs { display:flex; background:#f5f5f7; border-bottom:1px solid #d0d0d8; }
.st-tab { flex:1; padding:10px 0; border:none; background:transparent; cursor:pointer; font-size:13px; font-weight:500; color:#555; border-bottom:2px solid transparent; transition:all .15s; }
.st-tab:hover { background:#ebebed; color:#222; }
.st-tab.active { background:#fff; color:#1a56db; border-bottom:2px solid #1a56db; }

/* Panels */
.st-tab-panel { display:none; padding:1rem 1.25rem; min-height:220px; }
.st-tab-panel.active { display:block; }

/* Panel header */
.st-panel-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:.75rem; }
.st-panel-header h3 { margin:0; font-size:13px; font-weight:600; color:#333; }
.st-header-actions { display:flex; gap:6px; }

/* Import box */
.st-import-box { background:#f8f8fa; border:1px solid #d8d8e0; border-radius:5px; padding:.75rem; margin-bottom:.75rem; }
.st-import-box textarea { width:100%; box-sizing:border-box; font-size:12px; font-family:monospace; border:1px solid #ccc; border-radius:4px; padding:.5rem; resize:vertical; }

/* URL list */
.st-url-list { max-height:240px; overflow-y:auto; border:1px solid #d8d8e0; border-radius:5px; background:#fafafa; }
.st-url-row { display:flex; align-items:center; border-bottom:1px solid #ebebef; padding:4px 8px; gap:6px; }
.st-url-row:last-child { border-bottom:none; }
.st-row-num { font-size:11px; color:#999; min-width:22px; text-align:right; }
.st-url-input { flex:1; border:none; background:transparent; font-size:13px; padding:4px 2px; outline:none; color:#1a1a2e; }
.st-url-input:focus { background:#fff; border-radius:3px; box-shadow:0 0 0 2px #c7d9ff; }
.st-url-count { font-size:11px; color:#888; margin:.4rem 0 0; }

/* Options */
.st-options-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.st-option-group { display:flex; flex-direction:column; gap:5px; }
.st-option-group label { font-size:12px; font-weight:600; color:#555; text-transform:uppercase; letter-spacing:.4px; }
.st-input, .st-select { border:1px solid #ccc; border-radius:4px; padding:6px 10px; font-size:13px; width:100%; box-sizing:border-box; }
.st-input:focus, .st-select:focus { border-color:#1a56db; outline:none; box-shadow:0 0 0 2px #c7d9ff; }

/* Results */
.st-results-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:.75rem; flex-wrap:wrap; gap:.5rem; }
.st-result-stats { display:flex; gap:1rem; }
.st-stat-box { text-align:center; background:#f0f4ff; border-radius:6px; padding:.4rem .9rem; }
.st-stat-box strong { display:block; font-size:1.4rem; color:#1a56db; font-weight:700; line-height:1.1; }
.st-stat-box span { font-size:11px; color:#666; }
.st-results-actions { display:flex; gap:6px; }
.st-results-list { max-height:280px; overflow-y:auto; border:1px solid #d8d8e0; border-radius:5px; }
.st-results-list table { width:100%; border-collapse:collapse; font-size:12px; }
.st-results-list th { background:#f5f5f7; padding:6px 10px; text-align:left; font-weight:600; position:sticky; top:0; }
.st-results-list td { padding:5px 10px; border-top:1px solid #ebebef; word-break:break-all; }
.st-results-list tr:hover td { background:#f8f9ff; }
.st-placeholder { color:#aaa; font-size:13px; text-align:center; padding:2rem; margin:0; }

/* Bottom bar */
.st-bottom-bar { background:#f5f5f7; border-top:1px solid #d0d0d8; padding:.75rem 1.25rem; display:flex; align-items:center; gap:1rem; }
.st-progress-wrap { flex:1; }
.st-progress-bar { height:5px; background:#d8d8e0; border-radius:3px; overflow:hidden; margin-bottom:.35rem; }
#st-fill { height:5px; background:#1a56db; border-radius:3px; width:0%; transition:width .4s; }
.st-progress-info { display:flex; justify-content:space-between; font-size:11px; color:#666; }
#st-current-site-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:85%; }

/* Buttons */
.st-btn { padding:5px 12px; border:1px solid #c0c0cc; border-radius:4px; background:#fff; cursor:pointer; font-size:12px; font-weight:500; color:#333; transition:all .15s; white-space:nowrap; }
.st-btn:hover { background:#f0f0f5; border-color:#aaa; }
.st-btn-sm { padding:3px 8px; font-size:11px; }
.st-btn-primary { background:#1a56db; border-color:#1a56db; color:#fff; padding:7px 20px; font-size:13px; }
.st-btn-primary:hover { background:#1447c0; border-color:#1447c0; }
.st-btn-danger { color:#c0392b; border-color:#e0c0c0; }
.st-btn-danger:hover { background:#fff0f0; }
.st-btn-icon { border:none; background:transparent; color:#bbb; padding:2px 6px; font-size:14px; }
.st-btn-icon:hover { color:#e74c3c; background:transparent; }
.st-btn:disabled, .st-btn-primary:disabled { opacity:.6; cursor:not-allowed; }

/* Notice */
.st-notice { padding:.75rem 1rem; background:#fff3cd; border-left:4px solid #ffc107; border-radius:4px; font-size:13px; }

@media(max-width:540px){
    .st-options-grid { grid-template-columns:1fr; }
    .st-result-stats { flex-wrap:wrap; }
}
