@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --bg: #0a0505;
  --surface: #120909;
  --surface2: #1c0e0e;
  --surface3: #261313;
  --border: rgba(255, 69, 0, 0.15);
  --border-bright: rgba(255, 69, 0, 0.3);
  --accent: #ff4500;
  --accent-dim: rgba(255, 69, 0, 0.15);
  --accent-glow: rgba(255, 69, 0, 0.4);
  --blue: #ff7300; 
  --blue-dim: rgba(255, 115, 0, 0.15);
  --red: #ff3333;
  --red-dim: rgba(255, 51, 51, 0.15);
  --text: #fff0f0;
  --text-muted: #b38b8b;
  --text-dim: #cca8a8;
  --radius: 8px;
  --radius-lg: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg); font-family: 'Syne', sans-serif;
  color: var(--text); min-height: 100vh; display: flex;
  align-items: center; justify-content: center; padding: 20px;
}

.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255, 69, 0, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 69, 0, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.mac-window {
  position: relative; z-index: 1; width: 100%; max-width: 900px;
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), 0 30px 80px rgba(0,0,0,0.9), 0 0 60px rgba(255, 69, 0, 0.08);
}

.title-bar {
  background: rgba(20, 10, 10, 0.95); padding: 12px 18px;
  display: flex; align-items: center; border-bottom: 1px solid var(--border);
}

.traffic-lights { display: flex; gap: 8px; }
.traffic-lights .light { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f57; } .yellow { background: #ffbd2e; } .green { background: #28ca42; }

.window-title { flex: 1; text-align: center; font-family: 'JetBrains Mono'; font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: 2px; }

.main-content { display: flex; flex-direction: column; padding: 30px; gap: 20px; }
.panel-header h1 { font-family: 'Syne'; font-size: 26px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 1px;}

.card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.card-label { font-family: 'JetBrains Mono'; font-size: 10px; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 15px; }

.input-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; }
.input-group label { font-family: 'JetBrains Mono'; font-size: 11px; color: var(--text-dim); letter-spacing: 1px; }
.input-wrap input { width: 100%; padding: 12px 16px; background: var(--surface3); border: 1px solid var(--border-bright); border-radius: var(--radius); color: var(--text); font-family: 'JetBrains Mono'; font-size: 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.input-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

.input-row { display: grid; grid-template-columns: 2fr 1fr; gap: 15px; }

.action-row { display: flex; flex-wrap: wrap; gap: 15px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; align-items: center;}
.automation-bar { display: flex; flex-wrap: wrap; flex: 1; gap: 10px; align-items: center; }

.btn { padding: 12px 20px; border: none; border-radius: var(--radius); font-family: 'Syne'; font-weight: 700; font-size: 13px; letter-spacing: 1px; cursor: pointer; display: flex; align-items: center; gap: 8px; justify-content: center; transition: all 0.2s; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; pointer-events: none; }

.launch-btn { background: var(--accent); color: #000; box-shadow: 0 4px 15px rgba(255,69,0,0.3); flex: 1; }
.auto-btn { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(255,115,0,0.3); flex: 1; }
.stop-btn { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,51,51,0.3); }

.log-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.log-header { padding: 10px 16px; background: var(--surface3); border-bottom: 1px solid var(--border); font-family: 'JetBrains Mono'; font-size: 11px; color: var(--text-dim); font-weight: bold; }
.log-window { height: 180px; padding: 12px; overflow-y: auto; font-family: 'JetBrains Mono'; font-size: 12px; line-height: 1.6; background: #050202; }
.log-window::-webkit-scrollbar { width: 4px; }
.log-window::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 10px; }

.info { color: #aaa; } .success { color: var(--accent); font-weight: bold; } .error { color: var(--red); } .warning { color: var(--blue); }

@media (max-width: 600px) {
  .input-row { grid-template-columns: 1fr; }
  .action-row { flex-direction: column; }
  .automation-bar { flex-direction: column; width: 100%; }
  .automation-bar > * { width: 100%; }
}
