body {
  background-color: #0d1117;
  color: #c9d1d9;
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 1rem;
  text-align: center;
}

.container {
  border: 1px solid #30363d;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  width: 90%;
  background-color: #0d1117;
  overflow: hidden;
  padding: 0;
  margin: auto;
  position: relative;
  z-index: 1;
}

.terminal-header {
  background-color: #161b22;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #30363d;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.control:hover {
  transform: scale(1.1);
}

.control.close {
  background-color: #ff5f56;
}

.control.minimize {
  background-color: #ffbd2e;
}

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

.terminal-title {
  flex-grow: 1;
  text-align: center;
  color: #8b949e;
  font-size: 0.9rem;
  font-family: 'Consolas', 'Courier New', monospace;
}

.terminal-body {
  padding: 2rem;
  text-align: left;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.terminal-body::-webkit-scrollbar {
  width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
  background: #0d1117;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background-color: #c9d1d9;
  animation: blink 1s infinite;
  vertical-align: middle;
  will-change: opacity;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: left;
  width: 100%;
  margin: 0;
}

a {
  color: #58a6ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #7ee787;
}

.user {
  color: #58a6ff;
  font-weight: 500;
}

.dir-link {
  color: #7ee787;
  font-weight: bold;
}

.tree-dir {
  color: #7ee787;
  font-weight: bold;
}

.tree-file {
  color: #c9d1d9;
}

.footer {
  margin-top: 2rem;
  padding: 1rem;
  text-align: center;
  color: #8b949e;
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  .terminal-body {
    padding: 1.5rem;
    max-height: 60vh;
  }

  .terminal-title {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .terminal-body {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .footer {
    font-size: 0.8rem;
  }
}