.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.logoArea {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, hsl(var(--primary-hsl)) 0%, hsl(var(--accent-hsl)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 0.875rem;
  color: var(--muted);
}

.statusIndicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: var(--card);
  border: 1px solid var(--border);
}

.pulseDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s infinite;
}

.dashboardGrid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .dashboardGrid {
    grid-template-columns: 1fr;
  }
}

.mainPanel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.sidePanel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sectionTitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.cardBody {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agentGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.agentCard {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.agentHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: hsla(var(--border-hsl), 0.3);
  border-bottom: 1px solid var(--border);
}

.agentName {
  font-weight: 600;
  font-size: 1rem;
}

.agentBadge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background-color: hsla(var(--primary-hsl), 0.15);
  color: var(--primary);
  font-weight: 500;
}

.envGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.envRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background-color: var(--card);
  border: 1px solid var(--border);
}

.envName {
  font-weight: 500;
  font-size: 0.875rem;
}

.envStatus {
  font-size: 0.75rem;
  color: var(--muted);
}

.quickLaunchBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.quickLaunchBtn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.contextList {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contextItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background-color: var(--card);
  border: 1px solid var(--border);
}

.contextMeta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contextTitle {
  font-size: 0.875rem;
  font-weight: 600;
}

.contextDetails {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Session Card States */
.activeBorder {
  border-color: var(--border-focus) !important;
  box-shadow: 0 0 12px hsla(var(--primary-hsl), 0.2);
}

.stoppedBadge {
  background-color: hsla(var(--danger-hsl), 0.15) !important;
  color: var(--danger) !important;
}

/* Terminal Console UI */
.terminalContainer {
  background-color: #05070a;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.5;
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #c9d1d9;
}

.terminalLine {
  white-space: pre-wrap;
  word-break: break-all;
}

.terminalInputArea {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background-color: #0b0f17;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.terminalInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 0.825rem;
}

.terminalSendBtn {
  background-color: var(--primary);
  border: none;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.terminalSendBtn:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.terminalSendBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ANSI Colors in React render */
.ansiMagenta {
  color: #ff79c6;
}

.ansiCyan {
  color: #8be9fd;
}

.ansiGreen {
  color: #50fa7b;
}

.ansiRed {
  color: #ff5555;
}

.ansiYellow {
  color: #f1fa8c;
}

