/* Terminal Styles */
:root {
  --terminal-bg: #000000;
  --terminal-text: #00ff00;
  --terminal-header: #111111;
  --terminal-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --font-terminal: 'Roboto Mono', monospace;
}

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

body {
  background-color: #1a1a1a;
  font-family: var(--font-terminal);
  color: var(--terminal-text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.terminal-container {
  width: 100%;
  max-width: 800px;
}

.terminal {
  background-color: var(--terminal-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--terminal-shadow);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.terminal-header {
  background-color: var(--terminal-header);
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.close {
  background-color: #ff5f56;
}

.minimize {
  background-color: #ffbd2e;
}

.maximize {
  background-color: #27c93f;
}

.terminal-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.terminal-actions {
  display: flex;
  gap: 10px;
}

.terminal-action-btn {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.3s ease;
}

.terminal-action-btn:hover {
  color: #ffffff;
}

.terminal-body {
  padding: 20px;
  height: 500px;
  overflow-y: auto;
  line-height: 1.6;
  font-size: 14px;
}

/* Terminal input line */
.terminal-line {
  margin-bottom: 10px;
  display: flex;
}

.terminal-prompt {
  color: var(--terminal-text);
  margin-right: 10px;
  white-space: nowrap;
}

.terminal-input {
  background-color: transparent;
  border: none;
  color: var(--terminal-text);
  font-family: var(--font-terminal);
  font-size: 14px;
  outline: none;
  flex: 1;
}

.terminal-output {
  margin-bottom: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: var(--terminal-text);
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 2px;
}

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

/* Terminal message types */
.terminal-welcome {
  color: #ffffff;
  margin-bottom: 20px;
}

.terminal-error {
  color: #ff5f56;
}

.terminal-success {
  color: #27c93f;
}

.terminal-warning {
  color: #ffbd2e;
}

.terminal-command {
  color: #56c2ff;
}

/* Terminal typing effect */
.typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3s steps(40, end);
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@media (max-width: 768px) {
  .terminal-container {
    padding: 15px;
  }
  
  .terminal-body {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .terminal-body {
    height: 350px;
    font-size: 13px;
  }
  
  .terminal-title {
    font-size: 12px;
  }
}