/* VS Code Dark Theme Variables */
:root {
  --bg-primary: #1e1e1e;
  --bg-secondary: #252526;
  --bg-tertiary: #2d2d30;
  --border-color: #3c3c3c;
  --text-primary: #cccccc;
  --text-secondary: #6a6a6a;
  --accent-blue: #007acc;
  --accent-blue-hover: #1177bb;
  --error-color: #f48771;
  --success-color: #4fc3f7;
  --warning-color: #ffa500;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a1a 50%, var(--bg-primary) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  /* Mobile-first improvements */
  -webkit-text-size-adjust: 100%; /* Prevent font scaling on iOS */
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
  touch-action: manipulation; /* Improve touch responsiveness */
}

/* Header Styles - Mobile First */
.site-header {
  background: rgba(37, 37, 38, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Smaller padding on mobile */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px; /* Smaller height on mobile */
  flex-wrap: wrap; /* Allow wrapping if needed */
}

/* Tablet responsive */
@media (min-width: 481px) {
  .header-container {
    padding: 0 18px;
    height: 65px;
    flex-wrap: nowrap;
  }
}

/* Desktop responsive */
@media (min-width: 769px) {
  .header-container {
    padding: 0 20px;
    height: 70px;
  }
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 28px;
  background: linear-gradient(135deg, var(--accent-blue), #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.nav-links a.active {
  color: var(--accent-blue);
  font-weight: 600;
}

/* Main Content */
.main-content {
  flex: 1;
}

/* Hero Section - Mobile First */
.hero-section {
  padding: 40px 0; /* Smaller padding on mobile */
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Smaller padding on mobile */
  display: block; /* Stack vertically on mobile */
  text-align: center; /* Center text on mobile */
}

.hero-content {
  max-width: 100%;
  margin-bottom: 30px; /* Space between content and image on mobile */
}

.hero-title {
  font-size: 2.5rem; /* Smaller title on mobile */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem; /* Smaller subtitle on mobile */
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Tablet responsive */
@media (min-width: 481px) {
  .hero-section {
    padding: 60px 0;
    min-height: calc(100vh - 65px);
  }
  
  .hero-container {
    padding: 0 20px;
    margin-bottom: 0;
  }
  
  .hero-title {
    font-size: 3rem;
    margin-bottom: 22px;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
  }
}

/* Desktop responsive */
@media (min-width: 769px) {
  .hero-section {
    padding: 80px 0;
    min-height: calc(100vh - 70px);
  }
  
  .hero-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    text-align: left;
  }
  
  .hero-content {
    max-width: 600px;
    margin-bottom: 0;
  }
  
  .hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 48px;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .hero-container {
    gap: 80px;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(37, 37, 38, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.feature-item:hover {
  background: rgba(37, 37, 38, 0.8);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 24px;
}

/* Login Section */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-card {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
}

.login-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.login-description {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1rem;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-section h4 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section h4 a:hover {
  color: var(--accent-blue);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  color: var(--text-secondary);
}

.footer-bottom p {
  margin-bottom: 8px;
}

/* Enhanced Responsive Design - Mobile First Approach */

/* Base styles (mobile first - default) */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px; /* Smaller on mobile */
  flex-wrap: wrap;
}

.logo {
  font-size: 1.2rem; /* Smaller on mobile */
  font-weight: bold;
}

.nav-links {
  display: none; /* Hidden on mobile by default */
}

/* Mobile menu button (if you want to add one later) */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Container responsive */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px; /* Smaller padding on mobile */
  min-height: 100vh;
}

/* Tablet styles */
@media (min-width: 481px) and (max-width: 768px) {
  .header-container {
    height: 65px;
    padding: 0 20px;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .container {
    padding: 20px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

/* Desktop styles */
@media (min-width: 769px) {
  .header-container {
    height: 70px;
    padding: 0 20px;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .nav-links {
    display: flex; /* Show nav on desktop */
    gap: 30px;
  }
  
  .mobile-menu-btn {
    display: none; /* Hide mobile button on desktop */
  }
  
  .container {
    padding: 20px;
  }
}

/* Large desktop styles */
@media (min-width: 1200px) {
  .header-container {
    padding: 0 40px;
  }
  
  .container {
    padding: 40px;
  }
}

/* Original tablet/mobile override (keeping existing functionality) */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* Login Styles - Mobile First */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 15px; /* Smaller padding on mobile */
}

.login-card {
  background-color: var(--bg-secondary);
  padding: 20px; /* Smaller padding on mobile */
  border-radius: 8px;
  text-align: center;
  width: 100%; /* Full width on mobile */
  max-width: 400px; /* Maximum width constraint */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Login responsive styles */
@media (min-width: 481px) {
  .login-container {
    padding: 20px;
  }
  
  .login-card {
    padding: 30px;
  }
}

@media (min-width: 769px) {
  .login-container {
    padding: 40px;
  }
  
  .login-card {
    padding: 40px;
    max-width: 450px;
  }
}

.error-message {
  background: rgba(244, 135, 113, 0.1);
  border: 1px solid rgba(244, 135, 113, 0.3);
  color: var(--error-color);
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
}

/* App Layout - Mobile First */
.app-container {
  min-height: 100vh;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px; /* Smaller padding on mobile */
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px; /* Smaller gap on mobile */
  margin-left: auto;
  flex-wrap: wrap; /* Allow wrapping */
}

/* Top bar responsive */
@media (min-width: 481px) {
  .top-bar {
    padding: 10px 20px;
    gap: 15px;
  }
  
  .header-actions {
    gap: 16px;
    margin-right: 10px;
  }
}

@media (min-width: 769px) {
  .top-bar {
    padding: 12px 20px;
    flex-wrap: nowrap;
  }
  
  .header-actions {
    margin-right: 20px;
    flex-wrap: nowrap;
  }
}

.instructions-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 122, 204, 0.1);
  border: 1px solid var(--accent-blue);
  border-radius: 6px;
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.instructions-link:hover {
  background: rgba(0, 122, 204, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 122, 204, 0.2);
}

.instructions-link svg {
  flex-shrink: 0;
}

/* Nav link styling for legal links in header-actions */
.nav-link {
  display: inline-block;
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: rgba(0, 122, 204, 0.1);
  transform: translateY(-1px);
}

.user-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.main-area {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Setup Instructions Styles */
.setup-instructions {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 20px auto;
  max-width: 1000px;
  overflow: hidden;
}

.instructions-container {
  position: relative;
}

.instructions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.instructions-header h2 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.toggle-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.toggle-btn svg {
  transition: transform 0.2s ease;
}

.instructions-collapsed .toggle-btn svg {
  transform: rotate(-90deg);
}

.instructions-content {
  padding: 20px;
  transition: all 0.3s ease;
}

.instructions-collapsed .instructions-content {
  display: none;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.step-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  transition: all 0.2s ease;
}

.step-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.1);
}

.step-number {
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--accent-blue);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.step-content h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
  margin-top: 4px;
}

.step-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.step-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.step-actions .btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
  border: 1px solid var(--accent-blue);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
}

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

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-secondary);
}

.install-command {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px 12px;
}

.install-command code {
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.step-details ul {
  list-style: none;
  padding-left: 0;
}

.step-details li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 4px;
  padding-left: 0;
}

.requirements-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid rgba(255, 165, 0, 0.3);
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 20px;
}

.note-icon {
  font-size: 1.2rem;
  color: var(--warning-color);
  flex-shrink: 0;
}

.note-content {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.note-content strong {
  color: var(--text-primary);
}

/* Responsive adjustments for instructions */
@media (max-width: 768px) {
  .step-grid {
    grid-template-columns: 1fr;
  }
  
  .step-actions {
    flex-direction: column;
  }
  
  .step-actions .btn {
    text-align: center;
    justify-content: center;
  }
  
  .instructions-header {
    padding: 12px 16px;
  }
  
  .instructions-content {
    padding: 16px;
  }
}

/* Input & Textarea */
input, textarea {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 12px;
  font-family: Consolas, 'Courier New', Monaco, monospace;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue);
}

textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

input::placeholder, textarea::placeholder {
  color: var(--text-secondary);
}

/* Buttons */
button {
  border: none;
  border-radius: 2px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: inherit;
}

.btn-primary, .github-button, .send-button {
  background-color: var(--accent-blue);
  color: white;
  padding: 10px 20px;
}

.btn-primary:hover, .github-button:hover, .send-button:hover {
  background-color: var(--accent-blue-hover);
}

/* Permission Info Box */
.permission-info {
  margin-top: 24px;
  padding: 16px;
  background-color: rgba(0, 122, 204, 0.1);
  border: 1px solid rgba(0, 122, 204, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.info-icon {
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.info-content {
  color: var(--text-primary);
  opacity: 0.9;
}

.info-content strong {
  color: var(--accent-blue);
  font-weight: 600;
}

.btn-secondary, .logout-button {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
}

.btn-secondary:hover, .logout-button:hover {
  background-color: #37373d;
}

/* 🎯 Disabled button state - very visible */
button:disabled,
button[disabled] {
  background-color: #2d2d2d !important;
  color: #5a5a5a !important;
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
  border: 1px solid #3a3a3a !important;
}

/* Response Area */
.response-section {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: visible; /* Allow scrolling - changed from hidden */
  flex: 1; /* Take available space */
  display: flex;
  flex-direction: column;
  min-height: 0; /* Important for flex child overflow */
}

.status-indicator {
  background-color: var(--bg-tertiary);
  padding: 8px 16px;
  font-size: 12px;
  border-bottom: 1px solid var(--border-color);
  font-family: Consolas, 'Courier New', Monaco, monospace;
}

.status-indicator.loading { color: var(--warning-color); }
.status-indicator.success { color: var(--success-color); }
.status-indicator.error { color: var(--error-color); }

.response-area {
  padding: 20px;
  min-height: 200px;
  font-family: Consolas, 'Courier New', Monaco, monospace;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-y: auto;
  max-height: 400px;
}

/* Responsive */
@media (max-width: 768px) {
  .container, .main-area {
    padding: 12px;
  }
  
  .top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  
  .top-bar h1 {
    text-align: center;
    font-size: 16px;
  }
  
  .user-controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .username {
    font-size: 12px;
  }
  
  .avatar {
    width: 24px;
    height: 24px;
  }
  
  .logout-button {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .login-card {
    padding: 20px 16px;
    margin: 20px auto;
    max-width: 340px;
  }
  
  .login-card h1 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .github-button {
    padding: 12px 16px;
    font-size: 13px;
    gap: 8px;
  }
  
  .prompt-section {
    margin-bottom: 20px;
  }
  
  .prompt-label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  textarea {
    min-height: 80px;
    font-size: 13px;
    padding: 10px;
  }
  
  .send-button {
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 12px;
    width: 100%;
  }
  
  .response-section {
    border-radius: 4px;
  }
  
  .status-indicator {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .response-area {
    padding: 15px;
    min-height: 150px;
    font-size: 12px;
    max-height: 300px;
  }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
  .container, .main-area {
    padding: 8px;
  }
  
  .top-bar {
    padding: 8px;
  }
  
  .login-card {
    padding: 16px 12px;
    margin: 10px auto;
    max-width: 320px;
  }
  
  .login-card h1 {
    font-size: 18px;
  }
  
  .github-button {
    padding: 10px 12px;
    font-size: 12px;
  }
  
  textarea {
    min-height: 70px;
    font-size: 12px;
    padding: 8px;
  }
  
  .send-button {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .response-area {
    padding: 12px;
    min-height: 120px;
    font-size: 11px;
    line-height: 1.4;
  }
  
  .user-controls {
    gap: 8px;
  }
  
  .username {
    font-size: 11px;
  }
  
  .avatar {
    width: 20px;
    height: 20px;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .main-area {
    padding: 8px 12px;
  }
  
  .top-bar {
    flex-direction: row;
    padding: 8px 12px;
  }
  
  .top-bar h1 {
    text-align: left;
    font-size: 14px;
  }
  
  .user-controls {
    flex-direction: row;
  }
  
  textarea {
    min-height: 60px;
  }
  
  .response-area {
    min-height: 100px;
    max-height: 200px;
  }
}

/* Repositories Section */
.repositories-section {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.section-title {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 12px 16px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.repo-controls {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.repo-search, .repo-sort {
  flex: 1;
  padding: 6px 12px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  color: var(--text-primary);
  font-size: 13px;
}

.repo-sort {
  flex: 0 0 auto;
  min-width: 150px;
}

.repositories-list {
  max-height: 400px;
  overflow-y: auto;
}

.repository-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.repository-item:hover {
  background-color: var(--bg-tertiary);
}

.repository-item:last-child {
  border-bottom: none;
}

.repo-avatar {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  margin-right: 12px;
  background-color: var(--bg-tertiary);
}

.repo-info {
  flex: 1;
}

.repo-name {
  font-weight: 600;
  color: var(--accent-blue);
  margin: 0 0 4px 0;
  font-size: 14px;
}

.repo-description {
  color: var(--text-secondary);
  margin: 0 0 4px 0;
  font-size: 12px;
  line-height: 1.4;
}

.repo-meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--text-secondary);
}

.repo-language {
  display: flex;
  align-items: center;
  gap: 4px;
}

.language-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-secondary);
}

.repo-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  font-style: italic;
}

.error-message {
  text-align: center;
  padding: 40px;
  color: var(--error-color);
}

/* ===== TWO-SCREEN UI STYLES ===== */

/* Repository Selector Screen (Screen 1) - Mobile First */
.repos-screen {
  padding: 15px; /* Smaller padding on mobile */
}

.repos-screen .section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem; /* Smaller font on mobile */
  margin-bottom: 20px;
}

.repositories-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 15px; /* Smaller gap on mobile */
  margin-top: 15px;
}

.repo-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px; /* Smaller padding on mobile */
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

/* Tablet responsive */
@media (min-width: 481px) {
  .repos-screen {
    padding: 20px;
  }
  
  .repos-screen .section-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .repositories-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 18px;
  }
  
  .repo-card {
    padding: 18px;
  }
}

/* Desktop responsive */
@media (min-width: 769px) {
  .repos-screen {
    padding: 20px;
  }
  
  .repos-screen .section-subtitle {
    margin-bottom: 30px;
  }
  
  .repositories-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
  .repo-card {
    padding: 20px;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .repositories-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
  }
}

.repo-card:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.15);
}

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.repo-name-section {
  flex: 1;
}

.repo-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.repo-visibility {
  display: flex;
  gap: 8px;
}

.private-badge, .public-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.private-badge {
  background: rgba(255, 165, 0, 0.2);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
}

.public-badge {
  background: rgba(79, 195, 247, 0.2);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

/* Private Repository Enhancements */
.repo-card.private-repo {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 165, 0, 0.05) 100%);
  border-color: rgba(255, 165, 0, 0.3);
}

.repo-card.private-repo:hover {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(255, 165, 0, 0.08) 100%);
  border-color: rgba(255, 165, 0, 0.5);
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.15);
}

.lock-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 1rem;
  opacity: 0.8;
  cursor: help;
}

.lock-icon:hover {
  opacity: 1;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 16px;
  font-weight: 500;
}

.connection-status.status-connected {
  background: rgba(79, 195, 247, 0.2);
  color: var(--success-color);
}

.connection-status.status-connecting {
  background: rgba(255, 165, 0, 0.2);
  color: var(--warning-color);
}

.connection-status.status-disconnected {
  background: rgba(244, 135, 113, 0.2);
  color: var(--error-color);
}

.connection-status.status-error {
  background: rgba(244, 135, 113, 0.3);
  color: var(--error-color);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.repo-description {
  margin-bottom: 16px;
}

.repo-description p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.repo-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.metadata-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.metadata-item svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}

.repo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.repo-action-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.repo-action-btn.primary {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}

.repo-action-btn.primary:hover {
  background: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
}

.repo-action-btn.secondary {
  background: transparent;
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.repo-action-btn.secondary:hover {
  background: rgba(0, 122, 204, 0.1);
}

.repo-action-btn.outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.repo-action-btn.outline:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Project Interface Screen (Screen 2) - Mobile First */
.project-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px); /* Use min-height instead of fixed height */
  padding: 0;
  /* Removed overflow: hidden to allow natural page scrolling */
}

/* Tablet responsive */
@media (min-width: 481px) {
  .project-screen {
    min-height: calc(100vh - 65px);
  }
}

/* Desktop responsive */
@media (min-width: 769px) {
  .project-screen {
    min-height: calc(100vh - 70px);
  }
}

.project-header {
  display: flex;
  align-items: center;
  gap: 12px; /* Smaller gap on mobile */
  flex: 0 0 auto; /* Fixed size, don't grow or shrink */
  flex-wrap: wrap; /* Allow wrapping on very small screens */
  min-height: 60px; /* Ensure minimum height */
}

.back-button {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px; /* Smaller padding on mobile */
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; /* Ensure minimum touch target */
  min-height: 36px;
}

.back-button:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--accent-blue);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Smaller gap on mobile */
  flex: 1;
  min-width: 0; /* Allow text truncation */
}

.project-name {
  font-size: 1.2rem; /* Smaller font on mobile */
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tablet responsive */
@media (min-width: 481px) {
  .project-screen {
    height: calc(100vh - 65px);
  }
  
  .project-header {
    gap: 14px;
    flex-wrap: nowrap;
    min-height: 65px;
  }
  
  .back-button {
    padding: 7px;
  }
  
  .project-info {
    gap: 7px;
  }
  
  .project-name {
    font-size: 1.3rem;
  }
}

/* Desktop responsive */
@media (min-width: 769px) {
  .project-screen {
    height: calc(100vh - 70px);
  }
  
  .project-header {
    gap: 16px;
    min-height: 70px;
  }
  
  .back-button {
    padding: 8px;
  }
  
  .project-info {
    gap: 8px;
  }
  
  .project-name {
    font-size: 1.5rem;
  }
}

.connection-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
  width: fit-content;
}

.connection-badge.connected {
  background: rgba(79, 195, 247, 0.2);
  color: var(--success-color);
}

.connection-badge.connecting {
  background: rgba(255, 165, 0, 0.2);
  color: var(--warning-color);
}

.connection-badge.disconnected {
  background: rgba(244, 135, 113, 0.2);
  color: var(--error-color);
}

.connection-badge.error {
  background: rgba(244, 135, 113, 0.3);
  color: var(--error-color);
}

.connection-status-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.connection-status-bar.connecting {
  background: rgba(255, 165, 0, 0.1);
  border-color: var(--warning-color);
}

.connection-status-bar.disconnected {
  background: rgba(244, 135, 113, 0.1);
  border-color: var(--error-color);
}

.connection-status-bar.error {
  background: rgba(244, 135, 113, 0.15);
  border-color: var(--error-color);
}

.status-message {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.status-icon {
  stroke-width: 1.5;
}

.reconnect-button {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.reconnect-button:hover {
  background: var(--accent-blue-hover);
}

.prompt-section {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 15px; /* Smaller padding on mobile */
  flex: 0 0 auto; /* Fixed size, don't grow */
  /* Removed max-height to allow natural content flow */
}

/* Tablet and Desktop responsive for prompt section */
@media (min-width: 481px) {
  .prompt-section {
    padding: 18px;
  }
}

@media (min-width: 769px) {
  .prompt-section {
    padding: 20px;
  }
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.prompt-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.prompt-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clear-button {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-button:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.prompt-status {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
}

.prompt-input-container {
  display: flex;
  gap: 8px; /* Smaller gap on mobile */
  align-items: flex-end;
  flex-direction: column; /* Stack vertically on very small screens */
}

.prompt-textarea {
  flex: 1;
  width: 100%; /* Full width on mobile */
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px; /* Smaller padding on mobile */
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 60px; /* Smaller min height on mobile */
  transition: border-color 0.2s ease;
}

.send-button {
  width: 100%; /* Full width on mobile */
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 10px 16px; /* Smaller padding on mobile */
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Tablet responsive */
@media (min-width: 481px) {
  .prompt-input-container {
    flex-direction: row;
    gap: 10px;
  }
  
  .prompt-textarea {
    padding: 11px;
    min-height: 70px;
  }
  
  .send-button {
    width: auto;
    padding: 11px 18px;
  }
}

/* Desktop responsive */
@media (min-width: 769px) {
  .prompt-input-container {
    gap: 12px;
  }
  
  .prompt-textarea {
    padding: 12px;
    min-height: 80px;
  }
  
  .send-button {
    padding: 12px 20px;
  }
}

.prompt-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.prompt-textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.send-button {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  height: fit-content;
}

.send-button:hover:not(:disabled) {
  background: var(--accent-blue-hover);
}

/* 🎯 Disabled state - make it very obvious - HIGHEST PRIORITY */
.send-button:disabled,
.send-button[disabled],
#send-btn:disabled,
#send-btn[disabled],
button.send-button:disabled,
button#send-btn:disabled,
button.send-button[disabled],
button#send-btn[disabled] {
  background: #2d2d2d !important;
  color: #5a5a5a !important;
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
  border: 1px solid #3a3a3a !important;
}

/* 🎯 Processing/disabled state with animation - EVEN HIGHER PRIORITY */
button.send-button.disabled,
button.send-button.processing,
button#send-btn.disabled,
button#send-btn.processing,
.send-button.disabled,
.send-button.processing,
#send-btn.disabled,
#send-btn.processing {
  background: #2d2d2d !important;
  color: #5a5a5a !important;
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
  border: 1px solid #3a3a3a !important;
}

.send-button.processing svg,
#send-btn.processing svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 🎯 Ensure all disabled states are highly visible and consistent */
button[disabled],
button:disabled,
.send-button[disabled],
.send-button:disabled,
#send-btn[disabled],
#send-btn:disabled,
.btn-primary[disabled],
.btn-primary:disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  background: #2d2d2d !important;
  color: #5a5a5a !important;
  pointer-events: none !important;
  border: 1px solid #3a3a3a !important;
  position: relative;
}

/* No overlay here — keep the button label visible when disabled. */

/* 🎯 ULTRA-SPECIFIC: Ensure disabled/processing buttons are NEVER blue */
button#send-btn.send-button.disabled[disabled],
button#send-btn.send-button.processing[disabled],
button#send-btn.send-button.disabled:disabled,
button#send-btn.send-button.processing:disabled,
button#send-btn.send-button[disabled],
button#send-btn.send-button:disabled,
button.send-button.disabled[disabled],
button.send-button.processing[disabled],
button.send-button.disabled:disabled,
button.send-button.processing:disabled {
  background: #2d2d2d !important;
  background-color: #2d2d2d !important;
  color: #5a5a5a !important;
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
  border: 1px solid #3a3a3a !important;
}

.response-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* Removed min-height constraint to allow natural content flow */
}

.response-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.response-header h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.response-controls {
  display: flex;
  gap: 8px;
}

.export-button {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.export-button:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.response-area {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Allow natural content flow - no overflow restrictions */
}

.message {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.message-avatar.user {
  background: var(--accent-blue);
  color: white;
}

.message-avatar.assistant {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.message-role {
  font-weight: 500;
  color: var(--text-primary);
}

.message-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-left: auto;
}

.message-content {
  margin-left: 44px;
}

.message-text {
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  line-height: 1.5;
}

/* Streaming cursor animation */
.message-text.streaming::after {
  content: '▋';
  color: var(--accent-blue);
  animation: cursor-blink 1s infinite;
  margin-left: 2px;
}

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

.message.user .message-text {
  background: rgba(0, 122, 204, 0.1);
  border-color: var(--accent-blue);
}

.message.error .message-text {
  background: rgba(244, 135, 113, 0.1);
  border-color: var(--error-color);
  color: var(--error-color);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

.welcome-message {
  text-align: center;
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.welcome-icon {
  margin-bottom: 20px;
  color: var(--accent-blue);
}

.welcome-message h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.welcome-message p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.connection-instructions {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  text-align: left;
}

.connection-instructions h4 {
  color: var(--text-primary);
  margin-bottom: 12px;
}

.connection-instructions ol {
  color: var(--text-secondary);
  padding-left: 20px;
}

.connection-instructions li {
  margin-bottom: 8px;
}

/* Loading States */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-tertiary);
  border-top: 3px solid var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.empty-state, .error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
  gap: 16px;
}

.empty-icon, .error-icon {
  color: var(--text-secondary);
}

.empty-state h3, .error-state h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.retry-button {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.retry-button:hover {
  background: var(--accent-blue-hover);
}

/* Repository responsive */
@media (max-width: 768px) {
  .repo-controls {
    flex-direction: column;
    gap: 8px;
  }
  
  .repository-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
  
  .repo-stats {
    margin-left: 0;
    margin-top: 8px;
  }
  
  .repo-meta {
    flex-wrap: wrap;
  }

  .repositories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .prompt-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .prompt-input-container {
    flex-direction: column;
  }

  .send-button {
    align-self: flex-end;
  }

  .response-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ===== PROMPT COMPONENT STYLES ===== */

/* Processing state styles */
.prompt-component.processing .prompt-textarea {
  border-color: var(--warning-color);
  animation: pulseBorder 2s infinite;
  opacity: 0.8;
}

.prompt-component.processing .send-button {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: not-allowed;
}

@keyframes pulseBorder {
  0%, 100% {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4);
  }
  50% {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.2);
  }
}

/* Loading indicator styles */
.loading-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid var(--warning-color);
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--warning-color);
}

.loading-indicator.hidden {
  display: none;
}

.loading-dots {
  display: flex;
  gap: 4px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning-color);
  animation: loadingPulse 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingPulse {
  0%, 80%, 100% { 
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% { 
    opacity: 1;
    transform: scale(1);
  }
}

/* Error message styles */
.prompt-error-message {
  background: rgba(244, 135, 113, 0.15);
  border: 1px solid var(--error-color);
  color: var(--error-color);
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt-error-message.hidden {
  display: none;
}

.error-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Timeout specific error styling */
.prompt-error-message.timeout {
  background: rgba(255, 165, 0, 0.15);
  border-color: var(--warning-color);
  color: var(--warning-color);
}

/* Success feedback styles */
.prompt-success-message {
  background: rgba(79, 195, 247, 0.15);
  border: 1px solid var(--success-color);
  color: var(--success-color);
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt-success-message.hidden {
  display: none;
}

.success-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Processing state for textarea placeholder */
.prompt-component.processing .prompt-textarea::placeholder {
  color: var(--warning-color);
  opacity: 0.8;
}

/* Enhanced visual feedback for different states */
.prompt-component.error .prompt-textarea {
  border-color: var(--error-color);
  background: rgba(244, 135, 113, 0.05);
}

.prompt-component.success .prompt-textarea {
  border-color: var(--success-color);
  background: rgba(79, 195, 247, 0.05);
}

/* Smooth transitions for all states */
.prompt-textarea,
.send-button,
.loading-indicator,
.prompt-error-message,
.prompt-success-message {
  transition: all 0.3s ease;
}

/* Mobile responsive adjustments for prompt component */
@media (max-width: 768px) {
  .loading-indicator {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .prompt-error-message,
  .prompt-success-message {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  
  .loading-dots span {
    width: 5px;
    height: 5px;
  }
}

@media (max-width: 480px) {
  .loading-indicator {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  
  .prompt-error-message,
  .prompt-success-message {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}

/* Founders Page Styles */
.founders-section {
  padding: 80px 0;
  min-height: calc(100vh - 70px);
}

.founders-header {
  text-align: center;
  margin-bottom: 60px;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-blue), #4fc3f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.founders-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.founder-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 123, 204, 0.1);
}

.founder-photo-placeholder {
  width: 150px;
  height: 150px;
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-color);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.founder-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 24px;
  overflow: hidden;
  border: 3px solid var(--border-color);
  transition: all 0.3s ease;
}

.founder-photo:hover {
  border-color: var(--accent-blue);
  transform: scale(1.05);
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.founder-photo-placeholder:hover {
  border-color: var(--accent-blue);
  background: rgba(0, 123, 204, 0.05);
}

.photo-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.6;
}

.photo-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.founder-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.founder-bio p:first-child {
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 16px;
  font-size: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-link.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
  color: white;
}

.social-link.github:hover {
  background: #333;
  border-color: #333;
  color: white;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Active navigation link */
.nav-links a.active {
  color: var(--accent-blue);
  font-weight: 600;
}

/* Responsive for founders page */
@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
  
  .page-subtitle {
    font-size: 1.125rem;
  }
  
  .founders-section {
    padding: 40px 0;
  }
  
  .founders-header {
    margin-bottom: 40px;
  }
  
  .founders-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .founder-card {
    padding: 30px 20px;
  }
  
  .founder-photo-placeholder {
    width: 120px;
    height: 120px;
  }
  
  .photo-icon {
    font-size: 1.5rem;
  }
  
  .founder-name {
    font-size: 1.25rem;
  }
}

/* Support Page Styles */
.support-section {
  padding: 80px 0;
  min-height: calc(100vh - 70px);
}

.support-header {
  text-align: center;
  margin-bottom: 60px;
}

.support-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

/* Contact Cards */
.contact-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 123, 204, 0.1);
  border-color: var(--accent-blue);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.contact-link {
  display: inline-block;
  background: var(--accent-blue);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-2px);
}

/* FAQ Section */
.faq-section h2, .contact-form-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--text-primary);
  text-align: center;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-tertiary);
}

.faq-question h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--accent-blue);
  font-weight: bold;
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Contact Form */
.contact-form-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  width: 100%;
  background: var(--accent-blue);
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-2px);
}

/* Responsive Support Page */
@media (max-width: 768px) {
  .support-section {
    padding: 40px 0;
  }
  
  .support-header {
    margin-bottom: 40px;
  }
  
  .support-grid {
    gap: 40px;
  }
  
  .contact-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-card {
    padding: 24px;
  }
  
  .contact-form-section {
    padding: 30px 20px;
  }
  
  .faq-question {
    padding: 16px;
  }
  
  .faq-question h4 {
    font-size: 1rem;
  }
}

/* Video Section Styles */
.video-section {
  background: var(--bg-primary);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.video-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.video-header {
  margin-bottom: 50px;
}

.video-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-blue), #4fc3f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.video-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.video-player {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumbnail:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 123, 204, 0.2);
}

.video-thumbnail:hover .video-info p {
  color: #007BCC;
}

.video-thumbnail:hover .video-info p svg {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 123, 204, 0.3);
}

.play-button:hover {
  background: var(--accent-blue-hover);
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 123, 204, 0.4);
}

.video-info h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.video-info p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.demo-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Video Section Responsive */
@media (max-width: 768px) {
  .video-section {
    padding: 60px 0;
  }
  
  .video-header h2 {
    font-size: 2rem;
  }
  
  .video-header p {
    font-size: 1.125rem;
  }
  
  .video-header {
    margin-bottom: 40px;
  }
  
  .video-thumbnail {
    min-height: 300px;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
  }
  
  .play-button svg {
    width: 40px;
    height: 40px;
  }
  
  .video-info h3 {
    font-size: 1.25rem;
  }
}

/* AI Controls (Mode & Terminal) */
.ai-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  align-items: center;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 60px;
}

.ai-selector {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  min-width: 140px;
}

.ai-selector:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue);
}

.ai-selector:hover {
  border-color: var(--text-secondary);
}

/* Responsive AI Controls */
@media (max-width: 768px) {
  .ai-controls {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .control-group {
    justify-content: space-between;
  }
  
  .control-label {
    min-width: auto;
  }
  
  .ai-selector {
    min-width: 120px;
  }
}

/* ========================================
   OPTION A: VS Code Session Management
   ======================================== */

.vscode-control-panel {
  margin-bottom: 20px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.session-selector {
  margin-bottom: 15px;
}

.sessions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.sessions-header h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.session-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
}

.btn.btn-sm {
  padding: 6px 10px;
  font-size: 11px;
}

.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.session-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.session-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.2);
  transform: translateY(-2px);
}

.session-card.selected {
  border-color: var(--accent-blue);
  background: rgba(0, 122, 204, 0.1);
}

.session-card.selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-blue);
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.session-title h4 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  margin-bottom: 4px;
}

.auto-badge {
  background: var(--success-color);
  color: var(--bg-primary);
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.session-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.status-dot.active {
  background: var(--success-color);
  box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.3);
  animation: pulse 2s infinite;
}

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

.status-text {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.session-details {
  margin-bottom: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}

.detail-label {
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 80px;
}

.detail-value {
  color: var(--text-primary);
  text-align: right;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-activity {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.activity-label {
  font-size: 11px;
  color: var(--accent-blue);
  font-weight: 500;
}

.session-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-danger {
  background: var(--error-color);
  border-color: var(--error-color);
  color: white;
}

.btn-danger:hover {
  background: #e74c3c;
  border-color: #e74c3c;
}

.no-sessions {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-primary);
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  margin-top: 15px;
}

.no-sessions-content {
  max-width: 400px;
  margin: 0 auto;
}

.no-sessions-icon {
  margin-bottom: 16px;
  opacity: 0.6;
}

.no-sessions h4 {
  color: var(--text-primary);
  font-size: 18px;
  margin-bottom: 8px;
}

.no-sessions p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 14px;
}

.connection-instructions-mini {
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 16px;
  text-align: left;
}

.connection-instructions-mini ol {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  padding-left: 20px;
}

.connection-instructions-mini li {
  margin-bottom: 6px;
}

.active-session {
  background: rgba(79, 195, 247, 0.1);
  border: 1px solid rgba(79, 195, 247, 0.3);
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 15px;
}

.session-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.session-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.session-info .project-name {
  background: var(--accent-blue);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.session-info .connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* Responsive Session Management */
@media (max-width: 768px) {
  .vscode-control-panel {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .sessions-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .sessions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .session-card {
    padding: 12px;
  }
  
  .session-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .session-actions {
    justify-content: flex-start;
  }
  
  .session-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .session-info .connection-status {
    margin-left: 0;
  }
}

/* Animation for new sessions */
.session-card.new-session {
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state for sessions */
.sessions-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-secondary);
  font-size: 14px;
}

.sessions-loading::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================
   INSTRUCTIONS PAGE STYLES
   ======================================== */

.instructions-page {
  max-width: 1200px;
  padding: 40px 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.instructions-hero {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(0, 122, 204, 0.1) 0%, rgba(0, 122, 204, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid rgba(0, 122, 204, 0.2);
}

.instructions-hero h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.setup-instructions-page {
  margin-bottom: 40px;
}

.setup-instructions-page .step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.requirements-section,
.tips-section {
  margin-bottom: 60px;
}

.requirements-section h3,
.tips-section h3,
.cta-section h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.requirement-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
}

.requirement-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 204, 0.1);
}

.requirement-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.requirement-card h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.requirement-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s ease;
}

.tip-card:hover {
  border-color: var(--accent-blue);
  background: var(--bg-tertiary);
}

.tip-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tip-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.tip-card strong {
  color: var(--text-primary);
}

.cta-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(0, 122, 204, 0.05) 0%, rgba(0, 122, 204, 0.1) 100%);
  border-radius: 12px;
  border: 1px solid rgba(0, 122, 204, 0.2);
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-large {
  padding: 12px 32px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .instructions-hero h2 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .setup-instructions-page .step-grid {
    grid-template-columns: 1fr;
  }
  
  .requirements-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn-large {
    width: 100%;
  }
  
  .header-left h1 {
    font-size: 1.2rem;
  }
}

/* ========================================
   TERMINAL TOGGLE SWITCH STYLES - Mobile First
   ======================================== */

.terminal-toggle-container {
  display: flex;
  align-items: center;
  gap: 8px; /* Smaller gap on mobile */
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.terminal-switch {
  position: relative;
  display: inline-block;
  width: 44px; /* Smaller on mobile */
  height: 22px; /* Smaller on mobile */
  cursor: pointer;
  flex-shrink: 0; /* Don't shrink the switch */
}

.terminal-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.terminal-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  border-radius: 22px; /* Adjust for smaller height */
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.terminal-slider:before {
  position: absolute;
  content: "";
  height: 16px; /* Smaller on mobile */
  width: 16px; /* Smaller on mobile */
  left: 2px;
  bottom: 2px;
  background-color: var(--text-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Tablet responsive */
@media (min-width: 481px) {
  .terminal-toggle-container {
    gap: 10px;
    flex-wrap: nowrap;
  }
  
  .terminal-switch {
    width: 47px;
    height: 23px;
  }
  
  .terminal-slider {
    border-radius: 23px;
  }
  
  .terminal-slider:before {
    height: 17px;
    width: 17px;
  }
}

/* Desktop responsive */
@media (min-width: 769px) {
  .terminal-toggle-container {
    gap: 12px;
  }
  
  .terminal-switch {
    width: 50px;
    height: 24px;
  }
  
  .terminal-slider {
    border-radius: 24px;
  }
  
  .terminal-slider:before {
    height: 18px;
    width: 18px;
  }
}

.terminal-switch input:checked + .terminal-slider {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.terminal-switch input:checked + .terminal-slider:before {
  transform: translateX(26px);
  background-color: white;
}

.terminal-switch:hover .terminal-slider {
  box-shadow: 0 0 8px rgba(0, 122, 204, 0.3);
}

.terminal-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 30px;
  transition: color 0.3s ease;
}

.terminal-status.active {
  color: var(--accent-blue);
}

/* Terminal mode indicator */
.prompt-input-container.terminal-mode {
  border-left: 3px solid var(--accent-blue);
}

.prompt-input-container.terminal-mode .prompt-textarea {
  background: linear-gradient(135deg, rgba(0, 122, 204, 0.05) 0%, var(--bg-secondary) 100%);
}

.prompt-input-container.terminal-mode .prompt-textarea::placeholder {
  color: var(--text-secondary);
  font-style: italic;
}

/* URL Link Styles */
.url-link {
  color: var(--accent-blue);
  text-decoration: none;
  border-radius: 4px;
  padding: 2px 6px;
  margin: 0 2px;
  display: inline-block;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-weight: 500;
}

.url-link:hover {
  background: rgba(0, 122, 204, 0.1);
  border-color: var(--accent-blue);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 122, 204, 0.3);
}

.url-link:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 122, 204, 0.2);
}

/* Ngrok URL specific styling */
.ngrok-link {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(0, 122, 204, 0.1) 100%);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.ngrok-link:hover {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(0, 122, 204, 0.2) 100%);
  border-color: #4caf50;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

/* Localhost URL specific styling */
.localhost-link {
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid rgba(255, 165, 0, 0.3);
  color: #ffa500;
}

.localhost-link:hover {
  background: rgba(255, 165, 0, 0.2);
  border-color: #ffa500;
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4);
}

/* Mobile improvements for links */
@media (max-width: 480px) {
  .url-link {
    padding: 4px 8px;
    margin: 2px 0;
    display: inline-block;
    word-break: break-all;
    font-size: 14px;
  }
  
  .url-link:hover {
    transform: none; /* Disable transform on mobile for better touch experience */
  }
}

/* Response content improvements for links */
.response-content {
  line-height: 1.8;
  word-wrap: break-word;
}

.response-content .url-link {
  vertical-align: middle;
}

/* Action Panel Styles */
.action-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-top: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 122, 204, 0.1);
  border-bottom: 1px solid var(--border-color);
}

.action-header h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-blue);
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.action-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-count {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.clear-actions-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.clear-actions-btn:hover {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.action-list {
  max-height: 300px;
  overflow-y: auto;
}

.action-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(60, 60, 60, 0.3);
  transition: background 0.2s ease;
}

.action-item:hover {
  background: rgba(37, 37, 38, 0.5);
}

.action-item:last-child {
  border-bottom: none;
}

.action-info {
  flex: 1;
  min-width: 0;
}

.action-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(0, 122, 204, 0.2);
  color: var(--accent-blue);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
}

.action-description {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.action-details {
  color: var(--text-secondary);
  font-size: 11px;
  font-family: 'Consolas', 'Monaco', monospace;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 6px;
  border-radius: 4px;
  white-space: pre-wrap;
  overflow-x: auto;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.execute-action-btn {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  min-width: 70px;
  justify-content: center;
}

.execute-action-btn:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.execute-action-btn:disabled {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.action-status {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
  padding: 2px;
}

.action-status.executing {
  color: #ff9800;
}

.action-status.success {
  color: #4caf50;
}

.action-status.error {
  color: #f44336;
}

/* Action type specific colors */
.action-type.code {
  background: rgba(156, 39, 176, 0.2);
  color: #e91e63;
}

.action-type.file {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

.action-type.command {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

/* Mobile responsive adjustments for actions */
@media (max-width: 768px) {
  .action-item {
    flex-direction: column;
    gap: 8px;
  }
  
  .action-buttons {
    flex-direction: row;
    align-self: stretch;
  }
  
  .execute-action-btn {
    flex: 1;
  }
  
  .action-details {
    font-size: 10px;
    max-width: 100%;
  }
}

/* Instructions Page Important Notice Styles */
.important-notice {
  background: linear-gradient(145deg, rgba(255, 152, 0, 0.1), rgba(244, 67, 54, 0.05));
  border: 2px solid rgba(255, 152, 0, 0.3);
  border-radius: 12px;
  margin: 30px 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 152, 0, 0.1);
}

.notice-header {
  background: rgba(255, 152, 0, 0.15);
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 152, 0, 0.2);
}

.notice-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.notice-header h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.notice-content {
  padding: 25px;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.notice-item {
  background: rgba(37, 37, 38, 0.7);
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.notice-item.critical {
  border-left-color: #f44336;
  background: rgba(244, 67, 54, 0.08);
}

.notice-item.warning {
  border-left-color: #ff9800;
  background: rgba(255, 152, 0, 0.08);
}

.notice-item.info {
  border-left-color: #2196f3;
  background: rgba(33, 150, 243, 0.08);
}

.notice-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.notice-item .item-icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}

.notice-item h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.notice-item p {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.notice-footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 14px;
}

.footer-tip .tip-icon {
  font-size: 16px;
  color: #4caf50;
}

/* ========================================
   TERMINAL KILL CONFIRMATION DIALOG STYLES
   ======================================== */

/* Mobile responsive for important notice */
@media (max-width: 768px) {
  .notice-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .notice-header {
    padding: 15px 20px;
  }
  
  .notice-header h3 {
    font-size: 18px;
  }
  
  .notice-content {
    padding: 20px;
  }
  
  .notice-item {
    padding: 15px;
  }
  
  .footer-tip {
    font-size: 13px;
  }
}
