/* ==========================================================================
   CSS DESIGN SYSTEM - AXIONHACK CYBERPUNK THEME
   ========================================================================== */

:root {
  --bg-deep: hsl(230, 25%, 6%);
  --bg-panel: hsla(230, 25%, 10%, 0.75);
  --bg-card: hsla(230, 25%, 15%, 0.6);
  --border-color: hsla(230, 25%, 25%, 0.5);
  --border-glow: hsla(170, 100%, 50%, 0.15);
  
  /* Harmonious Cyber Accents */
  --primary: hsl(170, 100%, 50%);       /* Neon Cyan/Teal */
  --primary-glow: hsla(170, 100%, 50%, 0.3);
  --secondary: hsl(290, 100%, 60%);     /* Purple/Magenta */
  --secondary-glow: hsla(290, 100%, 60%, 0.3);
  --accent-green: hsl(120, 100%, 45%);  /* Success Green */
  --accent-red: hsl(0, 100%, 55%);      /* Danger Red */
  --accent-yellow: hsl(45, 100%, 50%);  /* Warning Yellow */
  --accent-blue: hsl(210, 100%, 55%);   /* Info Blue */
  
  /* Typography */
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  
  --text-main: hsl(220, 20%, 90%);
  --text-muted: hsl(220, 10%, 60%);
  --text-bright: hsl(0, 0%, 100%);
  
  /* Timing and Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Adjustments */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glow */
.glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, hsla(290, 100%, 60%, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, hsla(170, 100%, 50%, 0.05) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

/* Header Aesthetics */
.cyber-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(180, hsla(230, 25%, 5%, 0.9) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cyber-badge {
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-deep);
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  letter-spacing: 2px;
  font-size: 0.85rem;
  box-shadow: 0 0 15px var(--primary-glow);
  text-shadow: none;
}

.logo-area h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, var(--text-bright), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hackathon-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

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

.meta-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 1px;
}

.meta-val {
  font-weight: 600;
  font-size: 0.95rem;
}

.timer-card {
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.highlight-neon {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  text-shadow: 0 0 8px var(--primary-glow);
}

/* Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  flex: 1;
}

/* Resilience Sidebar */
.resilience-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.panel-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-bright);
}

.panel-subtitle {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--primary);
}

.metrics-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.metric-card:hover {
  border-color: var(--primary-glow);
  box-shadow: 0 4px 15px rgba(0, 255, 204, 0.05);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.card-status {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: bold;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.card-status.active {
  background: hsla(120, 100%, 45%, 0.1);
  color: var(--accent-green);
  border: 1px solid hsla(120, 100%, 45%, 0.2);
}

.card-status.recovering {
  background: hsla(45, 100%, 50%, 0.1);
  color: var(--accent-yellow);
  border: 1px solid hsla(45, 100%, 50%, 0.2);
  animation: pulse-border 1.5s infinite;
}

.card-status.inactive {
  background: hsla(0, 100%, 55%, 0.1);
  color: var(--accent-red);
  border: 1px solid hsla(0, 100%, 55%, 0.2);
}

.heartbeat-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pulse-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pulse-green {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-glow 1.5s infinite;
}

.pulse-blue {
  background-color: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
  animation: pulse-glow 1.5s infinite;
}

.pulse-red {
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

.mono {
  font-family: var(--font-mono);
  color: var(--text-main);
}

.debug-actions {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-title-sm {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

/* Tabs & Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cyber-tabs {
  display: flex;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 0.35rem;
  border-radius: 8px;
  gap: 0.25rem;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--bg-deep);
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Tab Content Areas */
.tab-content {
  display: none;
  flex: 1;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

/* Timeline Components */
.timeline-container {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: var(--text-bright);
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition-smooth);
}

.step-label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-smooth);
}

.timeline-step.active .step-num {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  background: var(--bg-panel);
}

.timeline-step.active .step-label {
  color: var(--primary);
}

.timeline-step.completed .step-num {
  border-color: var(--secondary);
  color: var(--secondary);
  background: var(--bg-panel);
}

.timeline-step.completed .step-label {
  color: var(--secondary);
}

/* Dashboard Home */
.dashboard-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.panel-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.panel-box h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.progress-bar-container {
  height: 10px;
  background: var(--bg-deep);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 5px;
  width: 0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

#progress-percentage {
  color: var(--primary);
  font-weight: bold;
}

#current-phase-desc {
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-val {
  font-size: 1.8rem;
  font-family: var(--font-mono);
  font-weight: bold;
  color: var(--primary);
  text-shadow: 0 0 5px var(--primary-glow);
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* System Console */
.console-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  max-height: 250px;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.console-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-green);
}

.console-logs {
  padding: 1rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 180px;
}

.log-line {
  line-height: 1.4;
}

.log-line.info {
  color: var(--text-muted);
}

.log-line.success {
  color: var(--primary);
}

.log-line.warning {
  color: var(--accent-yellow);
}

.log-line.danger {
  color: var(--accent-red);
}

/* Agent Terminal / Chat */
.chat-container {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 520px;
}

.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.subtitle-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-bubble {
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: slide-up 0.3s ease;
}

.message-bubble.antigravity {
  align-self: flex-start;
}

.message-bubble.codex {
  align-self: flex-end;
}

.message-bubble.user {
  align-self: flex-start;
  max-width: 60%;
}

.bubble-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.message-bubble.codex .bubble-meta {
  text-align: right;
}

.bubble-content {
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.message-bubble.antigravity .bubble-content {
  background: var(--bg-card);
  border: 1px solid var(--primary-glow);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
}

.message-bubble.codex .bubble-content {
  background: hsla(290, 100%, 60%, 0.1);
  border: 1px solid var(--secondary-glow);
  color: var(--text-main);
  border-bottom-right-radius: 2px;
}

.message-bubble.user .bubble-content {
  background: hsla(210, 100%, 55%, 0.1);
  border: 1px solid hsla(210, 100%, 55%, 0.2);
  color: var(--text-bright);
}

.chat-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
}

.cyber-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  cursor: pointer;
  outline: none;
}

.chat-input-area input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition-fast);
}

.chat-input-area input:focus {
  border-color: var(--primary);
}

/* Kanban Board Styling */
.kanban-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 520px;
}

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

.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  flex: 1;
  overflow: hidden;
}

.kanban-column {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

.column-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.column-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-yellow { background-color: var(--accent-yellow); box-shadow: 0 0 6px var(--accent-yellow); }
.dot-blue { background-color: var(--accent-blue); box-shadow: 0 0 6px var(--accent-blue); }
.dot-green { background-color: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }

.column-header h4 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.column-cards {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 0.25rem;
}

.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  cursor: grab;
  transition: all var(--transition-fast);
}

.kanban-card:hover {
  border-color: var(--primary-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.5rem;
  font-size: 0.7rem;
}

.card-assignee {
  font-family: var(--font-mono);
  color: var(--primary);
}

.card-actions {
  display: flex;
  gap: 0.35rem;
}

/* Pitch Presentation Layout */
.pitch-container {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 520px;
}

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

.pitch-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#slide-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.pitch-canvas {
  flex: 1;
  background: linear-gradient(135deg, hsl(230, 25%, 8%), hsl(230, 25%, 12%));
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

.pitch-canvas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 255, 204, 0.02) 0%, transparent 70%);
}

.slide-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slide-up var(--transition-smooth);
}

.slide-content {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 700px;
  color: var(--text-main);
  animation: fade-in 0.6s ease;
}

/* Button & Controls Components */
.btn {
  font-family: var(--font-mono);
  font-weight: bold;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.btn-neon {
  background: var(--primary);
  color: var(--bg-deep);
  box-shadow: 0 0 10px var(--primary-glow);
}

.btn-neon:hover {
  background: var(--text-bright);
  box-shadow: 0 0 15px var(--primary);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid hsla(0, 100%, 55%, 0.3);
  color: var(--accent-red);
}

.btn-outline-danger:hover {
  background: hsla(0, 100%, 55%, 0.1);
  border-color: var(--accent-red);
  box-shadow: 0 0 8px hsla(0, 100%, 55%, 0.3);
}

.btn-outline-success {
  background: transparent;
  border: 1px solid hsla(120, 100%, 45%, 0.3);
  color: var(--accent-green);
}

.btn-outline-success:hover {
  background: hsla(120, 100%, 45%, 0.1);
  border-color: var(--accent-green);
  box-shadow: 0 0 8px hsla(120, 100%, 45%, 0.3);
}

/* Footer Aesthetics */
.cyber-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-panel);
}

.system-status {
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blink-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.blink-dot.green {
  background-color: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
  animation: blink 1s infinite alternate;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 480px;
  max-width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: scale-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header h3 {
  font-size: 1.1rem;
  color: var(--text-bright);
}

.close-btn {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.close-btn:hover {
  color: var(--accent-red);
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.form-group input, .form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  padding: 0.75rem;
  border-radius: 6px;
  outline: none;
  font-family: var(--font-sans);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Animations */
@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; box-shadow: 0 0 12px currentColor; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse-border {
  0% { border-color: hsla(45, 100%, 50%, 0.2); }
  50% { border-color: hsla(45, 100%, 50%, 0.8); }
  100% { border-color: hsla(45, 100%, 50%, 0.2); }
}

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

@keyframes slide-up {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes scale-up {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scrollbars styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-glow);
}

/* ==========================================================================
   GITHUB CURATION PORTAL STYLE RULES (WONDER ACADEMY)
   ========================================================================== */

.github-portal-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fade-in var(--transition-smooth);
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 12px;
}

.portal-filters {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

#github-search {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  width: 280px;
  font-family: var(--font-sans);
  outline: none;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

#github-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  width: 320px;
}

.category-selectors {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-deep);
  padding: 0.25rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.filter-chip {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  color: var(--text-bright);
}

.filter-chip.active {
  background: var(--primary);
  color: var(--bg-deep);
  box-shadow: 0 0 8px var(--primary-glow);
}

.github-repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  padding-bottom: 2rem;
}

/* Glassmorphic Cyber Cards */
.github-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-smooth);
}

/* Bordas dinâmicas de acordo com a categoria */
.github-card.cat-agents {
  border-left: 4px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 255, 204, 0.02);
}

.github-card.cat-ia {
  border-left: 4px solid var(--accent-blue);
  box-shadow: 0 4px 20px rgba(0, 150, 255, 0.02);
}

.github-card.cat-quantum {
  border-left: 4px solid var(--secondary);
  box-shadow: 0 4px 20px rgba(230, 0, 255, 0.02);
}

.github-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
}

.github-card.cat-agents:hover {
  box-shadow: 0 8px 30px rgba(0, 255, 204, 0.12);
}

.github-card.cat-ia:hover {
  box-shadow: 0 8px 30px rgba(0, 150, 255, 0.12);
}

.github-card.cat-quantum:hover {
  box-shadow: 0 8px 30px rgba(230, 0, 255, 0.12);
}

.card-repo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.repo-identity {
  display: flex;
  flex-direction: column;
}

.repo-owner {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.repo-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-bright);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.repo-name:hover {
  color: var(--primary);
}

.repo-stars {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-yellow);
}

.repo-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.repo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.repo-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: hsla(230, 25%, 8%, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Conexão Wonder Academy Box */
.quantum-connection-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  position: relative;
  margin-top: 0.5rem;
  transition: all var(--transition-fast);
}

.quantum-connection-box::before {
  content: 'WONDER ACADEMY INTEGRATION';
  position: absolute;
  top: -7px;
  left: 10px;
  background: var(--bg-card);
  padding: 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.cat-agents .quantum-connection-box {
  border-color: rgba(0, 255, 204, 0.2);
}
.cat-agents .quantum-connection-box::before {
  color: var(--primary);
}

.cat-ia .quantum-connection-box {
  border-color: rgba(0, 150, 255, 0.2);
}
.cat-ia .quantum-connection-box::before {
  color: var(--accent-blue);
}

.cat-quantum .quantum-connection-box {
  border-color: rgba(230, 0, 255, 0.2);
}
.cat-quantum .quantum-connection-box::before {
  color: var(--secondary);
}

.quantum-connection-text {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.45;
}

.github-card:hover .quantum-connection-box {
  background: rgba(255, 255, 255, 0.02);
}
.github-card.cat-agents:hover .quantum-connection-box {
  border-color: rgba(0, 255, 204, 0.4);
}
.github-card.cat-ia:hover .quantum-connection-box {
  border-color: rgba(0, 150, 255, 0.4);
}
.github-card.cat-quantum:hover .quantum-connection-box {
  border-color: rgba(230, 0, 255, 0.4);
}

/* ==========================================================================
   J.A.R.V.I.S. SYSTEM HUD - HOLOGRAM INTERACTIVE DESIGN
   ========================================================================== */

.jarvis-hud-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-panel);
  border: 1px solid rgba(0, 255, 204, 0.25) !important;
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.05), inset 0 0 15px rgba(0, 255, 204, 0.05);
  margin-bottom: 1.5rem;
  border-radius: 12px;
}

.highlight-neon-blue {
  color: var(--primary) !important;
  text-shadow: 0 0 10px var(--primary-glow) !important;
}

.hud-body {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.radar-hud-circle {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 255, 204, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 255, 204, 0.02) 0%, transparent 70%);
}

.radar-glow {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 204, 0.1);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.05);
}

.radar-line-spin {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 255, 204, 0.15) 0deg, transparent 90deg, transparent 360deg);
  animation: rotate-hud 4s linear infinite;
  pointer-events: none;
}

.jarvis-core {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px var(--primary-glow), inset 0 0 10px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.jarvis-core:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.5), inset 0 0 15px rgba(0, 255, 204, 0.3);
}

.jarvis-core.active {
  background: var(--primary);
  color: var(--bg-deep);
  border-color: var(--text-bright);
  animation: core-pulse 1.2s ease-in-out infinite alternate;
}

.jarvis-core.active .core-text {
  color: var(--bg-deep) !important;
  font-weight: 800;
  text-shadow: none;
}

.core-text {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  text-shadow: 0 0 5px var(--primary-glow);
  letter-spacing: 1px;
}

/* Áudio Waves / Osciloscópio */
.audio-waves {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.15;
  transition: opacity 0.3s ease;
}

.audio-waves.active {
  opacity: 0.7;
}

.stroke {
  display: block;
  width: 4px;
  height: 15px;
  background: var(--primary);
  border-radius: 2px;
}

.audio-waves.active .stroke {
  animation: wave-beat 1.2s ease-in-out infinite alternate;
}

.audio-waves.active .stroke:nth-child(1) { animation-delay: 0.1s; height: 35px; }
.audio-waves.active .stroke:nth-child(2) { animation-delay: 0.3s; height: 55px; }
.audio-waves.active .stroke:nth-child(3) { animation-delay: 0.0s; height: 75px; }
.audio-waves.active .stroke:nth-child(4) { animation-delay: 0.4s; height: 45px; }
.audio-waves.active .stroke:nth-child(5) { animation-delay: 0.2s; height: 25px; }

/* Controles do Jarvis */
.jarvis-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 250px;
}

.control-status {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.5rem;
}

.text-neon-blue {
  color: var(--primary);
  text-shadow: 0 0 5px var(--primary-glow);
  font-weight: 800;
}

.control-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-neon-blue {
  flex: 1;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.05);
}

.btn-neon-blue:hover {
  background: var(--primary);
  color: var(--bg-deep);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

.btn-neon-blue.active {
  background: var(--primary);
  color: var(--bg-deep);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

.jarvis-instructions {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}

/* Animações HUD */
@keyframes rotate-hud {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes core-pulse {
  0% {
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.5), inset 0 0 10px rgba(0, 255, 204, 0.3);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 35px rgba(0, 255, 204, 0.8), inset 0 0 15px rgba(0, 255, 204, 0.5);
    transform: scale(1.06);
  }
}

@keyframes wave-beat {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.3); }
}


