@import './fonts.css';

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

/* Font Awesome icon spacing */
.fas, .far, .fab {
  margin-right: 0.5rem;
}

/* Special cases for buttons and navigation */
.tab .fas, .tab .far, .tab .fab,
button .fas, button .far, button .fab {
  margin-right: 0.5rem;
}

/* Special cases for inline status messages */
.status .fas, .status .far, .status .fab {
  margin-right: 0.5rem;
}

/* Header title icon */
h1 .fas, h1 .far, h1 .fab,
h2 .fas, h2 .far, h2 .fab,
h3 .fas, h3 .far, h3 .fab,
h4 .fas, h4 .far, h4 .fab {
  margin-right: 0.5rem;
}

/* Theme toggle specific spacing */
.theme-toggle .fas, .theme-toggle .far, .theme-toggle .fab {
  margin-right: 0.4rem;
}

/* Loading spinner */
.fa-spin {
  margin-right: 0.5rem;
}

:root {
  /* Light theme (default) */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #93c5fd;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;

  --bg: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --divider: #f1f5f9;
  --shadow: rgba(0, 0, 0, 0.04);
  --shadow-lg: rgba(0, 0, 0, 0.08);

  /* Syntax highlighting for light theme */
  --code-bg: #f8fafc;
  --code-text: #1e293b;

  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-hover: #3b82f6;
  --primary-light: #1e3a8a;
  --danger: #f87171;
  --danger-hover: #ef4444;
  --success: #34d399;
  --success-light: #065f46;
  --warning: #fbbf24;

  --bg: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1e293b;
  --bg-elevated: #111827;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --divider: #1e293b;
  --shadow: rgba(0, 0, 0, 0.2);
  --shadow-lg: rgba(0, 0, 0, 0.4);

  --code-bg: #0a0e1a;
  --code-text: #e2e8f0;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: var(--bg-secondary);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header p {
  display: none;
}

.theme-toggle {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-muted);
}

.tabs {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--divider);
  padding: 0 2rem;
  gap: 0.5rem;
  position: sticky;
  top: 72px;
  z-index: 90;
}

.tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  position: relative;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.content {
  flex: 1;
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.producer,
.consumer,
.topic-info,
.message-list,
.settings {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1rem;
  margin: 2rem 0 1rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h4 {
  font-size: 1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  font-family: 'Source Code Pro', 'Fira Code', 'Courier New', monospace;
  resize: vertical;
}

.button-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

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

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-tertiary);
}

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

.btn-danger:hover:not(:disabled) {
  background: var(--danger-hover);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.status.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

[data-theme="dark"] .status.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.status.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

[data-theme="dark"] .status.error {
  background: rgba(239, 68, 68, 0.15);
}

.status.info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

[data-theme="dark"] .status.info {
  background: rgba(59, 130, 246, 0.15);
}

.messages-container {
  margin-top: 2rem;
}

.messages-list {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  max-height: none;
  overflow-y: visible;
}

.no-messages {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.message-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  box-shadow: none;
}

.message-item:hover {
  border-color: var(--text-muted);
}

.message-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.message-time,
.message-offset,
.message-key,
.message-partition {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.message-value {
  background: var(--bg);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Source Code Pro', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--code-text);
  border: 1px solid var(--border);
}

.topic-details {
  margin-top: 2rem;
}

.detail-section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 2rem;
}

.partition-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.partition-item:hover {
  border-left-color: var(--primary-hover);
}

.partition-item p {
  margin: 0.5rem 0;
  color: var(--text);
  font-size: 0.9rem;
}

.footer {
  background: transparent;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid var(--divider);
  color: var(--text-muted);
  margin-top: 4rem;
  font-size: 0.85rem;
}

/* Smooth transitions */
* {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .tabs {
    overflow-x: auto;
    padding: 0 1rem;
  }
  
  .content {
    padding: 1rem;
  }
  
  .theme-toggle {
    width: 100%;
  }
}

/* Settings Component Styles */
.settings-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.settings-section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section h3 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  border-bottom: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.field-hint {
  display: none;
}

.field-with-tooltip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.field-label-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.5rem;
  min-height: 24px;
}

.field-label-wrapper label {
  margin: 0;
  flex: 0 1 auto; /* Don't let label grow to fill space */
  min-width: 0;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--primary);
  font-size: 14px;
  cursor: help;
  position: relative;
  border: 1px solid var(--border);
  flex-shrink: 0;
  margin-left: 6px;
  transition: all 0.2s ease;
}

.tooltip-icon:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.1);
}

.tooltip-icon i {
  display: block;
  line-height: 1;
}

.tooltip-icon::before {
  /* Remove the old "?" content */
  content: none;
}

.tooltip-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 400;
  white-space: normal;
  width: max-content;
  max-width: 280px;
  min-width: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  
  /* Prevent tooltip from going outside viewport */
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Smart tooltip positioning */
.tooltip-icon:hover::after {
  opacity: 1;
}

/* Dynamic positioning classes for JavaScript control */
.tooltip-positioned-left::after {
  left: 0 !important;
  transform: translateX(0) !important;
}

.tooltip-positioned-right::after {
  left: auto !important;
  right: 0 !important;
  transform: translateX(0) !important;
}

/* Smart positioning for tooltips near screen edges */
.tooltip-icon:hover::after {
  opacity: 1;
}

/* JavaScript-based tooltip positioning for better screen edge handling */
.tooltip-positioned-left::after {
  left: 0 !important;
  transform: translateX(0) !important;
}

.tooltip-positioned-right::after {
  left: auto !important;
  right: 0 !important;
  transform: translateX(0) !important;
}

.form-group-checkbox {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.form-group-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  min-height: 24px;
}

.form-group-checkbox input[type="checkbox"] {
  margin-top: 0;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.form-group-checkbox span {
  flex: 0 1 auto; /* Don't grow to fill space */
  min-width: 0;
  line-height: 1.5;
}

/* Prevent unnecessary wrapping on desktop */
@media (min-width: 769px) {
  .form-group-checkbox span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px; /* Limit width to prevent stretching */
  }
}

/* Allow wrapping on smaller screens */
@media (max-width: 768px) {
  .form-group-checkbox span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

/* Fix spacing for checkbox labels with tooltips */
.form-group-checkbox label:has(.tooltip-icon) {
  gap: 0.75rem;
}

.form-group-checkbox label .tooltip-icon {
  margin-left: 0; /* Remove extra margin since we have gap */
}

.settings-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.settings-note {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-left: 3px solid var(--warning);
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 2rem;
}

[data-theme="dark"] .settings-note {
  background: rgba(245, 158, 11, 0.1);
}

.settings-note h4 {
  color: var(--warning);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.settings-note ul {
  margin-left: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.settings-note li {
  margin-bottom: 0.5rem;
}

.settings-note strong {
  color: var(--text);
  font-weight: 600;
}

/* Test Connection Button */
.btn-test {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  background: var(--warning);
  color: white;
}

.btn-test:hover:not(:disabled) {
  background: #d97706;
}

/* Test Results Styles */
.test-results {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  animation: fadeIn 0.3s ease-in;
}

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

.test-results h3 {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  border-bottom: none;
  padding-bottom: 0;
  font-weight: 700;
}

.test-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-bottom: 2rem;
  border: none;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 1.5rem;
}

.test-status {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.test-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

[data-theme="dark"] .test-status.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.test-status.failed {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

[data-theme="dark"] .test-status.failed {
  background: rgba(239, 68, 68, 0.15);
}

.test-timestamp {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.test-error {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-left: 3px solid var(--danger);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}

[data-theme="dark"] .test-error {
  background: rgba(239, 68, 68, 0.1);
}

.test-error h4 {
  color: var(--danger);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.error-details {
  font-family: 'Source Code Pro', 'Fira Code', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.error-details div {
  margin-bottom: 0.5rem;
}

.error-details strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 0.5rem;
}

.error-details details {
  margin-top: 1rem;
  cursor: pointer;
}

.error-details summary {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border-radius: 4px;
  user-select: none;
}

.error-details summary:hover {
  background: var(--bg-tertiary);
}

.error-details pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  font-family: 'Source Code Pro', 'Fira Code', 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.5;
}

.test-steps {
  margin-top: 2rem;
}

.test-steps h4 {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.test-step {
  background: transparent;
  border: none;
  border-left: 3px solid var(--border);
  border-radius: 0;
  padding: 1rem 0 1rem 1.25rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
}

.test-step:hover {
  border-left-color: var(--text-muted);
}

.test-step.success {
  border-left-color: var(--success);
}

.test-step.error {
  border-left-color: var(--danger);
}

.test-step.warning {
  border-left-color: var(--warning);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.step-number {
  background: transparent;
  color: var(--text-muted);
  width: auto;
  height: auto;
  display: inline;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-name {
  flex: 1;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.step-status {
  font-size: 1rem;
  flex-shrink: 0;
}

.step-details {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  margin-top: 0.75rem;
}

.detail-item {
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-item strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 0.5rem;
}

.detail-item span {
  color: var(--text-secondary);
}

.detail-item pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.65rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-top: 0.4rem;
  border: 1px solid var(--border);
  font-family: 'Source Code Pro', 'Fira Code', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.4;
}

.step-timestamp {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive improvements for test results */
@media (max-width: 768px) {
  .test-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .settings-actions {
    flex-direction: column;
  }

  .settings-actions button {
    width: 100%;
  }

  .step-header {
    flex-wrap: wrap;
  }
}

/* ==================== Overview Page Styles ==================== */

.overview-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.welcome-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.welcome-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.welcome-section .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.version-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

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

.feature-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: white;
}

.producer-color {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.consumer-color {
  background: linear-gradient(135deg, #10b981, #059669);
}

.messages-color {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.admin-color {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.settings-color {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.theme-color {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.feature-card ul {
  list-style: none;
  padding-left: 0;
}

.feature-card ul li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.feature-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.getting-started {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.getting-started h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text);
  text-align: center;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.step-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.additional-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-box {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-box h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.info-box p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.info-box ul {
  list-style: none;
  padding-left: 0;
}

.info-box ul li {
  padding: 0.5rem 0;
}

.info-box a {
  color: var(--primary);
  text-decoration: none;
}

.info-box a:hover {
  text-decoration: underline;
}

.cli-commands {
  background: var(--input-bg);
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  margin-top: 1rem;
}

.cli-commands code {
  color: var(--primary);
  font-weight: 600;
}

.quick-tips {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-tips h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-align: center;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.tip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--input-bg);
  border-radius: 8px;
}

.tip i {
  color: var(--success);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.tip span {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Responsive adjustments for Overview */
@media (max-width: 768px) {
  .overview-container {
    padding: 1rem;
  }

  .welcome-section h2 {
    font-size: 1.8rem;
  }

  .welcome-section .subtitle {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .additional-info {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 1rem;
  }

  .step {
    flex-direction: column;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }
}
