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

html, body, #root { height: 100%; width: 100%; overflow: hidden; }

body {
  background-color: #0a0a14;
  background-image:
    linear-gradient(rgba(0,255,65,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,65,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 8px rgba(0,255,65,0.4), 0 0 20px rgba(0,255,65,0.1); }
  50% { text-shadow: 0 0 16px rgba(0,255,65,0.7), 0 0 40px rgba(0,255,65,0.2); }
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes flash-register {
  0% { background-color: rgba(0,255,65,0.3); }
  100% { background-color: transparent; }
}

@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.title-glow { animation: pulse-glow 3s ease-in-out infinite; }

.cursor-blink { animation: blink-cursor 1s step-end infinite; }

.reg-flash { animation: flash-register 1s ease-out; }

.terminal-output {
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-container {
  position: relative;
  overflow: hidden;
}

.terminal-container::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.drop-zone {
  border: 2px dashed #1e1e34;
  transition: all 0.2s ease;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: #00ff41;
  background: rgba(0,255,65,0.04);
  box-shadow: inset 0 0 20px rgba(0,255,65,0.05);
}

.drop-zone.has-file {
  border-color: #00d4ff;
  border-style: solid;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a14; }
::-webkit-scrollbar-thumb { background: #1e1e34; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2a2a44; }

.panel-glow {
  box-shadow: 0 0 1px rgba(0,212,255,0.2), inset 0 0 1px rgba(0,212,255,0.1);
}

input[type="text"], input[type="number"], select {
  background: #0a0a14;
  border: 1px solid #1e1e34;
  color: #00ff41;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus, input[type="number"]:focus, select:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 8px rgba(0,212,255,0.15);
}

select option { background: #12121e; color: #ccc; }

.btn {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-boot { background: rgba(0,255,65,0.15); color: #00ff41; border-color: rgba(0,255,65,0.3); }
.btn-boot:hover:not(:disabled) { background: rgba(0,255,65,0.25); box-shadow: 0 0 12px rgba(0,255,65,0.2); }

.btn-pause { background: rgba(255,170,0,0.15); color: #ffaa00; border-color: rgba(255,170,0,0.3); }
.btn-pause:hover:not(:disabled) { background: rgba(255,170,0,0.25); }

.btn-stop { background: rgba(255,51,85,0.15); color: #ff3355; border-color: rgba(255,51,85,0.3); }
.btn-stop:hover:not(:disabled) { background: rgba(255,51,85,0.25); }

.btn-step { background: rgba(0,212,255,0.15); color: #00d4ff; border-color: rgba(0,212,255,0.3); }
.btn-step:hover:not(:disabled) { background: rgba(0,212,255,0.25); }

.btn-sm { padding: 3px 8px; font-size: 0.65rem; }

.status-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}