/* Advanced Terminal Styles */
.terminal-container {
  width: 100%;
  max-width: 550px;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background-color: #0a1017;
  font-family: 'Fira Code', monospace;
  position: sticky;
  top: 100px;
  border: 1px solid rgba(0, 255, 136, 0.15);
  backdrop-filter: blur(5px);
}

.terminal-header {
  background-color: #0a1017;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
  justify-content: space-between;
}

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

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-button.close {
  background-color: #ff5f56;
}

.terminal-button.minimize {
  background-color: #ffbd2e;
}

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

.terminal-title {
  color: #f8f8f2;
  font-size: 14px;
  opacity: 0.8;
}

.terminal-body {
  padding: 15px;
  height: 400px;
  max-height: 60vh;
  overflow-y: auto;
  color: #00ff88;
  background-color: #0a1017;
  scrollbar-width: thin;
  scrollbar-color: #00ff88 #0a1017;
  line-height: 1.5;
  font-size: 14px;
}

.terminal-output {
  line-height: 1.6;
}

.terminal-prompt {
  color: #00ff88;
  margin-right: 10px;
  font-weight: normal;
}

.terminal-command {
  color: #00ff88;
  font-weight: normal;
}

.terminal-cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background-color: #00ff88;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
  border-radius: 0;
}

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

@keyframes terminal-glow {
  from { box-shadow: 0 0 10px rgba(137, 221, 255, 0.2), 0 15px 35px rgba(0, 0, 0, 0.5); }
  to { box-shadow: 0 0 20px rgba(137, 221, 255, 0.4), 0 15px 35px rgba(0, 0, 0, 0.5); }
}

.terminal-input {
  background: transparent;
  border: none;
  color: #bd93f9;
  font-family: 'Fira Code', monospace;
  font-size: inherit;
  outline: none;
  width: calc(100% - 180px);
}

.typing-effect {
  overflow: hidden;
  white-space: pre-wrap;
  margin: 0;
  display: inline-block;
  color: #8be9fd;
}

.typing-animation {
  animation: typing 2s steps(40, end);
}

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

.skills-list {
  color: #ff79c6;
}

.command-response {
  margin: 5px 0;
  color: #8be9fd;
}

.error-message {
  color: #ff5555;
}

/* Tech Elements for Terminal */
.terminal-line-numbers {
  position: absolute;
  left: 5px;
  color: #6272a4;
  font-size: 12px;
  user-select: none;
  text-align: right;
  width: 20px;
}

.terminal-tech-status {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #191c2a;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(137, 221, 255, 0.1);
  font-size: 12px;
  color: #6272a4;
}

.terminal-version {
  color: #50fa7b;
}

.terminal-status {
  color: #8be9fd;
}

.terminal-time {
  color: #ff79c6;
}

.terminal-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-header-icon {
  width: 16px;
  height: 16px;
  fill: #8be9fd;
}

.terminal-header-tabs {
  display: flex;
  gap: 2px;
  margin-right: 10px;
}

.terminal-tab {
  background-color: #282a36;
  color: #f8f8f2;
  padding: 3px 10px;
  border-radius: 3px 3px 0 0;
  font-size: 12px;
  opacity: 0.6;
  cursor: pointer;
}

.terminal-tab.active {
  opacity: 1;
  background-color: #1e1e2e;
  border-top: 2px solid #bd93f9;
}

/* Terminal Layout for Dual-Pane Display */
.terminal-dual-layout {
  display: flex;
  height: 100%;
}

.terminal-sidebar {
  width: 60px;
  background-color: #191c2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15px;
  border-right: 1px solid rgba(137, 221, 255, 0.1);
}

.terminal-sidebar-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 20px;
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.terminal-sidebar-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.terminal-sidebar-icon.active {
  opacity: 1;
  color: #8be9fd;
}

.terminal-main-content {
  flex: 1;
  overflow: auto;
  position: relative;
}

/* Terminal animations */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

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

.terminal-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(137, 221, 255, 0.1);
  z-index: 999;
  animation: scanline 8s linear infinite;
  opacity: 0.5;
}

/* Responsive styling for terminal */
@media screen and (max-width: 768px) {
  .terminal-container {
    max-width: 100%;
    position: static;
    margin: 20px 0;
  }
  
  .terminal-body {
    height: 300px;
  }
  
  .terminal-prompt, .terminal-command, .terminal-input {
    font-size: 14px;
  }
  
  .terminal-input {
    width: calc(100% - 160px);
  }
  
  .terminal-dual-layout {
    flex-direction: column;
  }
  
  .terminal-sidebar {
    width: 100%;
    height: 50px;
    flex-direction: row;
    padding: 0 10px;
    justify-content: space-around;
  }
  
  .terminal-sidebar-icon {
    margin: 0;
  }
}