:root {
  --background: #1a1b26;
  --terminal-bg: #16161e;
  --text-primary: #a9b1d6;
  --text-secondary: #565f89;
  --accent: #7aa2f7;
  --error: #f7768e;
  --success: #9ece6a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Fira Code', monospace;
}

body {
  background: var(--background);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Loading Screen */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loader {
  text-align: center;
}

.loader-text {
  color: var(--accent);
  margin-bottom: 1rem;
}

.loader-bar {
  width: 300px;
  height: 4px;
  background: var(--text-secondary);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: load 3s ease-out forwards;
}

/* Terminal Styling */
.container {
  width: 90%;
  max-width: 800px;
  display: none;
}

.terminal {
  background: var(--terminal-bg);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  padding: 12px;
  background: #111117;
  border-bottom: 1px solid #2a2a3a;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-controls div {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-body {
  padding: 20px;
  min-height: 400px;
  max-height: 60vh;
  overflow-y: auto;
  color: var(--text-primary);
}

.input-line {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #111117;
  border-top: 1px solid #2a2a3a;
}

.prompt {
  color: var(--success);
  margin-right: 10px;
}

#input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  caret-color: var(--accent);
}

#input:focus {
  outline: none;
}

/* Animations */
@keyframes load {
  0% { width: 0; }
  100% { width: 100%; }
}