/* Dark theme color palette */
:root {
  --bg-primary: #0d1117;
  --text-primary: #c9d1d9;
  --panel-bg: #161b22;
  --panel-border: #30363d;
  --border-color: #21262d;
  --accent-blue: #2f81f7;
  --text-on-accent: #ffffff;
  --accent-green: #238636;
  --text-on-green: #ffffff;
  --muted-bg: #484f58;
  --text-muted: #8b949e;
  --success-color: #7ce38b;
  --error-color: #f85149;
  --section-background: #0f141a;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

/* Top Navigation */
.top-nav {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.top-nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  fill: var(--text-primary);
}

.title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.title-main {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
}

.title-secondary {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
}

.publisher-badge {
  padding: 4px 12px;
  background-color: rgba(35, 134, 54, 0.2);
  border: 1px solid rgba(35, 134, 54, 0.3);
  border-radius: 6px;
}

.publisher-badge span {
  font-size: 14px;
  color: var(--accent-green);
  font-weight: 500;
}

/* Main Container */
.page-wrapper {
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 24px;
}

.main-panel {
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Content Sections */
.download-panel,
.install-panel {
  background-color: var(--section-background);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
}

.panel-header {
  margin-bottom: 16px;
}

.panel-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.panel-header p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Status Display */
.status-panel {
  background-color: rgba(72, 79, 88, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.status-indicator {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.status-indicator.loading {
  border: 2px solid var(--accent-blue);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

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

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

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

.status-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent-blue);
}

.status-label.success {
  color: var(--success-color);
}

.status-label.error {
  color: var(--error-color);
}

.btn-retry {
  padding: 4px 12px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-retry:hover {
  background-color: rgba(72, 79, 88, 0.2);
}

/* Progress Indicator */
.progress-wrapper {
  margin-top: 12px;
}

.progress-track {
  width: 100%;
  height: 4px;
  background-color: rgba(72, 79, 88, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--accent-blue);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Console Output */
.console {
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  margin-top: 12px;
}

.console-title {
  color: #7ce38b;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 12px;
}

.console-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 128px;
  overflow-y: auto;
}

.console-line {
  color: #7ce38b;
  opacity: 0.9;
}

.prompt-line {
  display: flex;
  color: #7ce38b;
}

.prompt-cursor {
  margin-left: 4px;
  animation: cursorPulse 1s infinite;
}

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

/* Video Container */
.video-container {
  background-color: rgba(72, 79, 88, 0.3);
  border-radius: 6px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.video-icon {
  fill: var(--accent-blue);
  margin-bottom: 8px;
}

.video-container p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Installation Steps */
.steps-panel h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.step-badge {
  width: 20px;
  height: 20px;
  background-color: var(--accent-blue);
  color: var(--text-on-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.step-description {
  color: var(--text-primary);
}

/* Bottom Navigation */
.bottom-nav {
  margin-top: 48px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  padding: 24px 0;
}

.bottom-nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.bottom-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bottom-logo {
  fill: var(--text-muted);
}

.copyright-text {
  font-size: 12px;
  color: var(--text-muted);
}

.bottom-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.bottom-nav-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bottom-nav-link:hover {
  color: var(--text-primary);
}

/* Utility Classes */
.is-hidden {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 16px;
  }
  
  .main-panel {
    padding: 16px;
    gap: 16px;
  }
  
  .top-nav-wrapper {
    padding: 8px 16px;
  }
  
  .video-container {
    height: 240px;
  }
  
  .bottom-nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .bottom-nav-links {
    gap: 16px;
  }
}