/* Custom Design System for AeroCheck */
:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(22, 30, 49, 0.7);
  --bg-input: rgba(15, 23, 42, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  
  /* Accent colors */
  --color-primary: #6366f1; /* Cyber Indigo */
  --color-primary-glow: rgba(99, 102, 241, 0.15);
  --color-success: #10b981; /* Emerald */
  --color-success-glow: rgba(16, 185, 129, 0.15);
  --color-error: #ff4d6d; /* Neon Rose */
  --color-error-glow: rgba(255, 77, 109, 0.22);
  --color-warning: #ffb703; /* Neon Amber */
  --color-warning-glow: rgba(255, 183, 3, 0.22);
  --color-info: #06b6d4; /* Cyan */
  --color-info-glow: rgba(6, 182, 212, 0.15);
  
  /* Text colors */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #090d16;

  /* Layout & Borders */
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.35);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Scrollbar customizations */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* App Container */
.app-container {
  max-width: 1400px;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
}

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

.logo-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-info));
  color: white;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.app-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-badge {
  font-size: 0.7rem;
  color: var(--color-info);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* AI Status Card */
.ai-status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.status-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.1);
}

.status-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-warning), var(--color-success));
  width: 0%;
  transition: width 0.3s ease;
}

/* Indeterminate (Pulse/Loading) State */
.status-progress-bar.indeterminate .status-progress-fill {
  width: 30% !important;
  position: absolute;
  left: -30%;
  animation: indeterminate-loading 1.5s infinite linear;
  background: linear-gradient(90deg, var(--color-warning), var(--color-success));
}

@keyframes indeterminate-loading {
  0% {
    left: -30%;
  }
  50% {
    left: 40%;
    width: 40% !important;
  }
  100% {
    left: 100%;
  }
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
}

.status-indicator::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  animation: pulse 2s infinite;
  opacity: 0.5;
}

.status-active {
  background-color: var(--color-success);
}
.status-active::after {
  background-color: var(--color-success);
}

.status-initializing {
  background-color: var(--color-warning);
}
.status-initializing::after {
  background-color: var(--color-warning);
}

.status-disabled {
  background-color: var(--color-error);
}
.status-disabled::after {
  background-color: var(--color-error);
}

.status-unknown {
  background-color: var(--text-muted);
}
.status-unknown::after {
  background-color: var(--text-muted);
}

.status-text {
  font-weight: 500;
  color: var(--text-main);
}

.info-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.info-btn:hover {
  color: var(--text-main);
}

/* Main Workspace */
.app-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex-grow: 1;
  min-height: 0;
}

@media (max-width: 968px) {
  .app-workspace {
    grid-template-columns: 1fr;
  }
}

/* Panel Card */
.panel-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

@media (max-width: 968px) {
  .panel-card {
    height: auto;
    min-height: 400px;
  }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(15, 23, 42, 0.2);
}

.panel-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-icon {
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.panel-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.panel-actions {
  display: flex;
  gap: 12px;
}

.issue-counter-badge {
  background: var(--color-primary-glow);
  color: var(--color-primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Editor Panel Specifics */
.editor-container {
  flex-grow: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#text-input {
  width: 100%;
  height: 100%;
  flex-grow: 1;
  background: var(--bg-input);
  border: none;
  overflow-y: auto;
  outline: none;
  padding: 20px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  transition: background-color var(--transition-fast);
  white-space: pre-wrap;
  word-wrap: break-word;
}

#text-input:empty::before {
  content: attr(placeholder);
  color: var(--text-muted);
  cursor: text;
  pointer-events: none;
  display: block;
}

#text-input:focus {
  background: rgba(15, 23, 42, 0.8);
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background-color: rgba(15, 23, 42, 0.2);
}

.stats-area {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-badge {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.language-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--color-info-glow);
  color: var(--color-info);
  border-color: rgba(6, 182, 212, 0.2);
}

.action-buttons {
  display: flex;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #4f46e5);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-info), #0891b2);
  color: white;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.4);
}

.btn-icon-only {
  padding: 10px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

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

.toolbar-separator {
  width: 1px;
  height: 14px;
  background-color: var(--border-color);
  margin: 0 8px;
  align-self: center;
}

.btn-text-danger {
  color: var(--color-error);
}
.btn-text-danger:hover {
  color: #ff5f7e;
}

/* Analysis Container & Placeholder */
.analysis-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.placeholder-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  margin: auto 0;
  max-width: 480px;
  align-self: center;
}

.placeholder-art {
  color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px dashed var(--border-color);
}

.placeholder-state h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.placeholder-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Success Card State (when no errors found) */
.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  background-color: rgba(16, 185, 129, 0.03);
  border: 1px dashed rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-lg);
  margin: auto 0;
  max-width: 480px;
  align-self: center;
}

.success-icon {
  margin-bottom: 20px;
  animation: pulse-success 2s infinite;
}

.success-state h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.success-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
}

@keyframes pulse-success {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.sample-prompts {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.sample-chip {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 8px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sample-chip:hover {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--text-main);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Active Visual Preview Box */
.visual-preview-wrapper {
  padding: 20px;
  flex: 1 1 50%;
  min-height: 0;
  overflow-y: auto;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(15, 23, 42, 0.2);
}

.interactive-preview {
  font-size: 1.05rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Highlights */
.grammar-error {
  border-bottom: 2px wavy var(--color-error);
  background-color: var(--color-error-glow);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  border-radius: 2px;
}

.grammar-error:hover {
  background-color: rgba(244, 63, 94, 0.25);
}

.rephrase-suggestion {
  border-bottom: 2px wavy var(--color-warning);
  background-color: var(--color-warning-glow);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  border-radius: 2px;
}

.rephrase-suggestion:hover {
  background-color: rgba(245, 158, 11, 0.25);
}

/* Bottom Issues List Section */
.issues-list-section {
  padding: 20px;
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background-color: rgba(15, 23, 42, 0.4);
}

.issues-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.issues-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 4px;
}

.issue-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: rgba(15, 23, 42, 0.4);
  align-items: flex-start;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.issue-card:hover {
  transform: translateX(2px);
  border-color: var(--border-hover);
}

.issue-card-error {
  border-left: 3px solid var(--color-error);
}

.issue-card-warning {
  border-left: 3px solid var(--color-warning);
}

.issue-type-indicator {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.issue-card-error .issue-type-indicator {
  background-color: var(--color-error-glow);
  color: var(--color-error);
}

.issue-card-warning .issue-type-indicator {
  background-color: var(--color-warning-glow);
  color: var(--color-warning);
}

.issue-details {
  flex-grow: 1;
}

.issue-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.issue-label {
  font-size: 0.75rem;
  font-weight: 700;
}

.issue-card-error .issue-label { color: var(--color-error); }
.issue-card-warning .issue-label { color: var(--color-warning); }

.issue-phrase {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.issue-desc {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.issue-fix-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

.btn-pill-success {
  background-color: var(--color-success-glow);
  color: var(--color-success);
  border-color: rgba(16, 185, 129, 0.2);
}

.btn-pill-success:hover {
  background-color: rgba(16, 185, 129, 0.25);
}

/* Tooltip Suggestions Popover */
.suggestion-tooltip {
  position: absolute;
  z-index: 1000;
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 16px;
  width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.2) inset;
  animation: fadeIn 0.15s ease-out;
}

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

.tooltip-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
}

.tag-error {
  background-color: var(--color-error-glow);
  color: var(--color-error);
}

.tag-warning {
  background-color: var(--color-warning-glow);
  color: var(--color-warning);
}

.tooltip-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.tooltip-close:hover {
  color: var(--text-main);
}

.tooltip-message {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-main);
}

.tooltip-original-wrapper {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  display: flex;
  gap: 6px;
}

.original-label {
  color: var(--text-muted);
}

.original-val {
  color: #ff5f7e;
  font-weight: 500;
}

.tooltip-suggestions-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggestion-option-btn {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.suggestion-option-btn:hover {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
}

.suggestion-option-btn::after {
  content: '✓';
  font-size: 0.75rem;
  opacity: 0.7;
}

.tooltip-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.tooltip-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Tooltip directions styling */
.tooltip-arrow-top {
  bottom: -6px;
  left: calc(50% - 6px);
  border-width: 6px 6px 0 6px;
  border-color: rgba(17, 24, 39, 0.95) transparent transparent transparent;
}
.tooltip-arrow-bottom {
  top: -6px;
  left: calc(50% - 6px);
  border-width: 0 6px 6px 6px;
  border-color: transparent transparent rgba(17, 24, 39, 0.95) transparent;
}

/* Modal dialogs */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

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

.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setup-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setup-list li {
  line-height: 1.4;
}

.flag-link {
  font-family: var(--font-mono);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-info);
  word-break: break-all;
}

.alert {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.4;
}

.alert-info {
  background-color: var(--color-primary-glow);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--text-main);
}

.alert-info svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.info-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-muted);
  font-weight: 500;
}

.info-val {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-info);
}

.info-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  background-color: rgba(15, 23, 42, 0.2);
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
  border-left: 3px solid var(--color-success);
}

.toast-error {
  border-left: 3px solid var(--color-error);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 cubic-bezier(0.4, 0, 0.2, 1); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0); }
  100% { transform: scale(1); }
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

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

.icon-spin {
  animation: spin 1.2s linear infinite;
}

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

/* Markdown report formatting styles */
.markdown-report {
  font-family: var(--font-sans);
  color: var(--text-main);
  line-height: 1.6;
}

.markdown-report h1, 
.markdown-report h2, 
.markdown-report h3 {
  color: #ffffff;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.markdown-report h1 { 
  font-size: 1.4rem; 
}

.markdown-report h2 { 
  font-size: 1.2rem; 
  border-bottom: 1px solid var(--border-color); 
  padding-bottom: 6px; 
}

.markdown-report h3 { 
  font-size: 1.05rem; 
}

.markdown-report p {
  margin-bottom: 1rem;
}

.markdown-report ul {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style-type: disc;
}

.markdown-report li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.markdown-report code {
  font-family: var(--font-mono);
  background-color: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-info);
  font-size: 0.9em;
}

.markdown-report strong {
  color: #ffffff;
  font-weight: 600;
}

/* Scanning Loader Animation */
.scanning-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.scanning-loader p {
  font-size: 0.9rem;
  margin: 0;
}

.scanner-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  animation: scan 1.5s infinite linear;
}

@keyframes scan {
  0% { transform: translateY(-20px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

/* Developer Profile Card */
.developer-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px 16px;
  max-width: 480px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

.developer-profile:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.dev-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  background: linear-gradient(to right, #ffffff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dev-title {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  text-align: center;
}

.dev-meta {
  display: flex;
  gap: 8px;
  font-size: 0.65rem;
  color: var(--text-muted);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.dev-meta a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.dev-meta a:hover {
  color: var(--color-primary);
}

@media (max-width: 968px) {
  .developer-profile {
    display: none;
  }
  
  html, body {
    height: auto;
    overflow-y: auto;
  }
  
  .app-container {
    height: auto;
    max-height: none;
    overflow: visible;
  }
}
