/* =========================================
   TERMINAL WINDOW STYLES
   ========================================= */

.terminal-window {
  flex-grow: 1;
  margin: 20px 0;
  font-size: 0.8rem;
  color: var(--text-secondary) !important;
  line-height: 1.6;
  opacity: 0.9;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  padding: 15px 0;
  font-family: 'JetBrains Mono', monospace;
  min-height: 150px;
  max-height: 300px;
  display: flex;
  flex-direction: column;
}

.terminal-window #boot-text {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-y: auto;
  color: var(--text-secondary) !important;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-1) transparent;
  padding-right: 5px;
}

.terminal-window #boot-text::-webkit-scrollbar {
  width: 4px;
}

.terminal-window #boot-text::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-window #boot-text::-webkit-scrollbar-thumb {
  background: var(--accent-1);
  border-radius: 4px;
}

.terminal-window #boot-text::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}

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

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

.sys-footer {
  font-size: 0.7rem;
  color: var(--text-secondary) !important;
  opacity: 0.6;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.sys-footer div {
  color: var(--text-secondary) !important;
}

#connection-status {
  color: var(--accent-1) !important;
  opacity: 1;
  font-weight: bold;
}

.tech-input, .tech-select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary) !important;
  padding: 12px 15px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  transition: all 0.3s;
  border-radius: 6px;
  margin-bottom: 10px;
  text-transform: uppercase;
  -webkit-appearance: none;
  appearance: none;
}

.tech-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

.tech-input:focus, .tech-select:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 15px var(--accent-dim);
}

.tech-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b9bb4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 35px;
}

.tech-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 10px;
}

.switches-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 5px;
}

.tech-switch {
  background: var(--switch-bg);
  border: 1px solid var(--border-color);
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  transition: all 0.3s;
  border-radius: 6px;
  user-select: none;
  color: var(--text-primary) !important;
}

.tech-switch:hover {
  border-color: var(--accent-1);
  transform: translateY(-1px);
}

.tech-switch.active {
  border-color: var(--accent-1);
  background: var(--accent-dim);
}

.switch-indicator {
  width: 10px;
  height: 10px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all 0.3s;
}

.tech-switch.active .switch-indicator {
  background: var(--accent-1);
  box-shadow: 0 0 12px var(--accent-1);
}

.range-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--switch-bg);
  color: var(--text-primary) !important;
}

.range-container span {
  color: var(--text-primary) !important;
  font-size: 0.7rem;
  min-width: 50px;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--metric-bg);
  outline: none;
  border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent-1);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-1);
  transition: all 0.2s;
  border: 2px solid var(--bg-primary);
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px var(--accent-1);
}

input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--accent-1);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-1);
  transition: all 0.2s;
  border: 2px solid var(--bg-primary);
}

/* Mobile Terminal Optimizations */

@media (max-width: 768px) {
  .terminal-window {
    min-height: 120px;
    max-height: 200px;
    font-size: 0.75rem;
    margin: 15px 0;
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  .tech-input, .tech-select {
    padding: 10px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .range-container {
    padding: 6px 12px;
  }
}

@media (max-width: 768px) {
  input[type=range]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
  }
}

/* Dark mode support for selects */

@media (prefers-color-scheme: dark) {
  .tech-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b9bb4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  }
}

