/* npx Command Finder — Green Terminal theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #10B981;
  --primary-dim: rgba(16,185,129,0.12);
  --primary-glow: rgba(16,185,129,0.3);
  --secondary: #34D399;
  --accent: #F59E0B;
  --accent-dim: rgba(245,158,11,0.12);
  --bg: #0A0F0D;
  --bg-card: #111916;
  --bg-input: #080D0B;
  --border: rgba(16,185,129,0.12);
  --border-focus: rgba(16,185,129,0.4);
  --text: #E0F0E8;
  --text-dim: #7FB89A;
  --text-muted: #3D6B52;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --transition: 0.2s ease;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }

.header { border-bottom: 1px solid var(--border); background: rgba(17,25,22,0.95); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 750px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.header-left { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.2rem; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--primary-dim); border-radius: var(--radius-sm); }
.header h1 { font-size: 1.05rem; font-weight: 700; }
.subtitle { font-size: 0.72rem; color: var(--text-dim); }
.count { font-size: 0.72rem; color: var(--text-muted); font-family: var(--mono); }

.main { max-width: 750px; margin: 0 auto; padding: 20px; }

.search-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.search-input { flex: 1; padding: 8px 12px; font-family: var(--font); font-size: 0.82rem; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none; }
.search-input:focus { border-color: var(--border-focus); }
.filter-select { padding: 8px 10px; font-family: var(--font); font-size: 0.78rem; color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none; cursor: pointer; }

.cmd-list { display: flex; flex-direction: column; gap: 6px; }
.cmd-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; cursor: pointer; transition: all var(--transition); }
.cmd-card:hover { border-color: var(--primary); background: rgba(16,185,129,0.04); }
.cmd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.cmd-name { font-family: var(--mono); font-size: 0.82rem; font-weight: 600; color: var(--secondary); }
.cmd-cat { font-size: 0.62rem; padding: 1px 6px; border-radius: 3px; background: var(--primary-dim); color: var(--primary); font-weight: 500; }
.cmd-desc { font-size: 0.72rem; color: var(--text-dim); }
.cmd-risk { font-size: 0.62rem; color: var(--text-muted); margin-top: 2px; }
.cmd-risk .safe { color: var(--primary); }
.cmd-risk .caution { color: var(--accent); }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column-reverse; gap: 8px; }
.toast { padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 4px 24px rgba(0,0,0,0.5); font-size: 0.82rem; animation: toastIn 0.3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
