/* Terminal styles */
.terminal-container {
  width: 100%;
  max-width: 800px;
  background: rgba(16, 17, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.4),
    0 10px 10px -5px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: linear-gradient(135deg, 
    rgba(45, 45, 45, 0.9) 0%, 
    rgba(35, 35, 35, 0.9) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0; /* Prevent dots from shrinking */
}

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

.terminal-title {
  color: #aaa;
  font-size: 12px;
  text-align: center;
  flex-grow: 1;
  min-width: 0; /* Allow title to shrink if needed */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-content {
  background-color: #000;
  color: #fff;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  overflow-y: auto;
  height: 400px;
  scroll-behavior: smooth;
}

.line {
  margin: 4px 0;
  line-height: 1.4;
}

.command-line {
  color: #5af78e;
}

.prompt {
  color: #5af78e;
}

.command {
  color: white;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: #5af78e;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.result-container {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #333;
  display: none;
}

.result-line {
  margin: 4px 0;
  line-height: 1.4;
}

.error { color: #ff5555; font-weight: bold; }
.warning { color: #f1fa8c; }
.info { color: #8be9fd; }
.metric { color: #50fa7b; }
.status { color: #ff5555; font-weight: bold; font-size: 18px; margin-top: 8px; }
.action { color: #ffb86c; font-weight: bold; margin-top: 16px; }
.solution { color: #50fa7b; font-weight: bold; }

.recovery-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #333;
}

.comment { color: #6272a4; }

.cost-counter {
  margin-top: 0;
  background: linear-gradient(135deg, 
    rgba(194, 43, 73, 0.15) 0%, 
    rgba(220, 58, 90, 0.1) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(194, 43, 73, 0.3);
  border-radius: 0 0 14px 14px;
  padding: 12px;
  position: relative;
}

.cost-counter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    transparent 50%);
  pointer-events: none;
  border-radius: 0 0 14px 14px;
}

.counter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.counter-title {
  color: #ff6b6b;
  font-weight: bold;
}

.counter-value {
  color: white;
  font-weight: bold;
}

.counter-value span {
  color: #aaa;
  font-weight: normal;
}

.progress-bar {
  margin-top: 8px;
  height: 10px;
  width: 100%;
  background-color: #333;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #ff5555;
  width: 0%;
  transition: width 1s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  color: #aaa;
  font-size: 12px;
  margin-top: 4px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .terminal-header {
    padding: 8px 12px;
  }
  
  .terminal-title {
    font-size: 10px;
  }
  
  .terminal-content {
    padding: 12px;
    font-size: 12px;
    height: 300px;
  }
  
  .cost-counter {
    padding: 10px;
  }
  
  .counter-header {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .terminal-header {
    padding: 6px 10px;
  }
  
  .control-dot {
    width: 10px;
    height: 10px;
    margin-right: 6px;
  }
  
  .terminal-title {
    font-size: 9px;
  }
  
  .terminal-content {
    padding: 10px;
    font-size: 11px;
    height: 250px;
  }
}
