/**
 * Autopilot Dashboard Styles
 * Follows existing design system (GitHub theme, Inter/Montserrat fonts)
 */

/* Autopilot Badge */
#autopilot-badge-container {
  margin: 24px 0;
}

.autopilot-badge {
  background: var(--gh-bg-secondary);
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: all 0.3s ease;
}

.autopilot-badge:hover {
  border-color: var(--gh-border-hover);
  box-shadow: var(--gh-card-shadow-hover);
}

.autopilot-badge.autopilot-eligible {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.autopilot-badge.autopilot-enabled {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
}

.autopilot-badge-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.autopilot-badge-content {
  flex: 1;
  min-width: 0;
}

.autopilot-badge-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gh-text-primary);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}

.autopilot-badge-progress {
  font-size: 14px;
  color: var(--gh-text-secondary);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}

.autopilot-badge-match {
  font-size: 13px;
  color: var(--gh-text-tertiary);
  font-family: 'Inter', sans-serif;
}

.btn-enable-autopilot,
.btn-disable-autopilot {
  background: var(--gh-bg-tertiary);
  color: var(--gh-text-primary);
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.btn-enable-autopilot:hover,
.btn-disable-autopilot:hover {
  background: var(--gh-bg-tertiary);
  transform: translateY(-2px);
  border-color: var(--gh-border-hover);
}

.btn-enable-autopilot:active,
.btn-disable-autopilot:active {
  transform: translateY(0);
}

/* Comparison Chart */
#autopilot-comparison-chart {
  margin: 24px 0;
}

.comparison-chart {
  background: var(--gh-bg-secondary);
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  padding: 20px;
  font-family: 'Inter', sans-serif;
}

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

.chart-header h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gh-text-primary);
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.chart-period-select {
  background: var(--gh-bg-tertiary);
  color: var(--gh-text-primary);
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

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

.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
}

.chart-bar-label {
  font-size: 12px;
  color: var(--gh-text-secondary);
  width: 60px;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

.chart-bars-container {
  flex: 1;
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 24px;
}

.chart-bar {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  font-family: 'Inter', sans-serif;
  transition: width 0.3s ease;
}

.chart-bar.ai-bar {
  background: rgba(59, 130, 246, 0.8);
}

.chart-bar.user-bar {
  background: rgba(34, 197, 94, 0.8);
}

.chart-bar-value {
  white-space: nowrap;
}

.chart-bar-count {
  font-size: 12px;
  color: var(--gh-text-tertiary);
  width: 40px;
  text-align: right;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

.chart-legend {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gh-border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gh-text-secondary);
  font-family: 'Inter', sans-serif;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-color.ai-color {
  background: rgba(59, 130, 246, 0.8);
}

.legend-color.user-color {
  background: rgba(34, 197, 94, 0.8);
}

.chart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gh-text-tertiary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

/* Suggestion Notification */
.suggestion-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--gh-bg-secondary);
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  padding: 16px;
  max-width: 400px;
  box-shadow: var(--gh-card-shadow-hover);
  z-index: 10000;
  animation: slideInRight 0.3s ease;
  font-family: 'Inter', sans-serif;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.suggestion-notification-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.suggestion-notification-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.suggestion-notification-text {
  flex: 1;
  min-width: 0;
}

.suggestion-notification-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gh-text-primary);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}

.suggestion-notification-text p {
  font-size: 13px;
  color: var(--gh-text-secondary);
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.btn-view-suggestion {
  background: var(--gh-bg-tertiary);
  color: var(--gh-text-primary);
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.btn-view-suggestion:hover {
  background: var(--gh-bg-tertiary);
  transform: translateY(-1px);
  border-color: var(--gh-border-hover);
}

.btn-dismiss-notification {
  background: transparent;
  color: var(--gh-text-tertiary);
  border: none;
  padding: 4px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: color 0.3s ease;
}

.btn-dismiss-notification:hover {
  color: var(--gh-text-primary);
}

/* Suggestion Modal */
.suggestion-modal {
  max-width: 900px;
  max-height: 90vh;
}

.suggestion-reason {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gh-border);
}

.suggestion-reason strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gh-text-primary);
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.suggestion-reason p {
  font-size: 14px;
  color: var(--gh-text-secondary);
  margin: 0;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.suggestion-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.suggestion-section {
  display: flex;
  flex-direction: column;
}

.suggestion-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gh-text-primary);
  margin: 0 0 12px 0;
  font-family: 'Inter', sans-serif;
}

.suggestion-text {
  background: var(--gh-bg-tertiary);
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  padding: 12px;
  font-size: 13px;
  color: var(--gh-text-secondary);
  line-height: 1.6;
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Inter', monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.suggestion-text.current {
  border-color: rgba(251, 191, 36, 0.3);
}

.suggestion-text.suggested {
  border-color: rgba(34, 197, 94, 0.3);
}

.suggestion-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--gh-border);
}

/* Responsive */
@media (max-width: 768px) {
  .suggestion-comparison {
    grid-template-columns: 1fr;
  }
  
  .autopilot-badge {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-enable-autopilot,
  .btn-disable-autopilot {
    width: 100%;
  }
}

















