/* Simple, small, static first time banner */
.first-time-banner {
  position: fixed;
  left: 50%;
  top: calc(50% - 28px);
  transform: translate(-50%, -100%);
  background: #007AFF;
  color: #fff;
  padding: 5px 16px 8px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(0, 122, 255, 0.10);
  z-index: 2000;
  letter-spacing: 0.03em;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .first-time-banner {
    transition: none;
  }
}

/* Focus styles for accessibility */
.first-time-banner:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 2px 8px 0 rgba(0, 122, 255, 0.10), 0 0 0 3px rgba(0, 122, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .first-time-banner {
    font-size: 13px;
    padding: 4px 14px 6px 14px;
    top: calc(50% - 24px);
  }
}

@media (max-width: 480px) {
  .first-time-banner {
    font-size: 12px;
    padding: 3px 12px 5px 12px;
    top: calc(50% - 20px);
  }
}
.first-time-banner .arrow-down {
  display: block;
  width: 0;
  height: 0;
  margin-top: 2px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #007AFF;
  filter: none;
}
/* Base styles and CSS variables */
:root {
  --primary-color: #007AFF;
  --primary-hover: #005BBB;
  --background: #f5f5f5;
  --text-primary: #1c1c1c;
  --text-secondary: #555;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s ease;
}

.dark-theme {
  --background: #1c1c1c;
  --text-primary: #f5f5f5;
  --text-secondary: #aaa;
  --surface: rgba(40, 40, 40, 0.9);
  --surface-solid: #2a2a2a;
  --border: rgba(255, 255, 255, 0.1);
}

/* Address Search Components */
.address-search-container {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
  margin: 0 auto;
}

.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

.search-input-container:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1), var(--shadow-md);
}

.search-icon {
  padding: 12px 15px;
  color: var(--text-secondary);
  font-size: 16px;
  pointer-events: none;
}

.address-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 8px;
  font-size: 16px;
  color: var(--text-primary);
  background: transparent;
  font-family: inherit;
}

.address-input::placeholder {
  color: var(--text-secondary);
}

.clear-search, .use-location-btn {
  background: none;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-search:hover, .use-location-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

.dark-theme .clear-search:hover, 
.dark-theme .use-location-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.use-location-btn {
  border-left: 1px solid var(--border);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

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

.search-result-item:hover, 
.search-result-item.selected {
  background: var(--primary-color);
  color: white;
}

.search-result-item:hover .result-details,
.search-result-item.selected .result-details {
  color: rgba(255, 255, 255, 0.8);
}

.result-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.result-details {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.result-name mark {
  background: rgba(255, 255, 0, 0.3);
  color: inherit;
  padding: 0;
}

.search-result-item:hover .result-name mark,
.search-result-item.selected .result-name mark {
  background: rgba(255, 255, 255, 0.3);
}

.no-results {
  padding: 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.search-loading {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.search-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .address-search-container {
    left: 10px;
    right: 10px;
    top: 10px;
  }
  
  .search-input-container {
    border-radius: var(--radius-md);
  }
  
  .address-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

@media (max-width: 480px) {
  .address-search-container {
    left: 5px;
    right: 5px;
    top: 5px;
  }
}

/* Distance Circles and Labels */
.distance-circle {
  pointer-events: none;
}

.distance-label {
  pointer-events: none;
}

.distance-label div {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  user-select: none;
}

.distance-label .label-5km {
  border-color: #007AFF;
  color: #007AFF;
}

.distance-label .label-10km {
  border-color: #34C759;
  color: #34C759;
}

.distance-label .label-15km {
  border-color: #FF9500;
  color: #FF9500;
}

/* Dark theme adjustments for labels */
.dark-theme .distance-label div {
  background: var(--surface-solid);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for labels */
@media (max-width: 768px) {
  .distance-label div {
    font-size: 11px;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .distance-label div {
    font-size: 10px;
    padding: 2px 5px;
  }
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
}

/* Map container */
#map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  background: var(--surface-solid);
}

/* Controls panel */
.controls-panel {
  position: fixed;
  z-index: 100;
}

.start-point {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.start-point:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 122, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
  }
}

/* Distance options */
.distance-options {
  position: fixed;
  top: 50%;
  left: calc(50% + 50px);
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.distance-btn {
  background: linear-gradient(180deg, var(--surface-solid) 0%, rgba(247, 247, 247, 0.9) 100%);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  min-width: 90px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.dark-theme .distance-btn {
  background: linear-gradient(180deg, #3a3a3a 0%, #2d2d2d 100%);
}

.distance-btn:hover {
  background: linear-gradient(180deg, rgba(247, 247, 247, 0.95) 0%, rgba(240, 240, 240, 0.9) 100%);
  box-shadow: var(--shadow-md);
}

.distance-btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

/* Weather container */
.weather-container {
  position: fixed;
  top: 80px;
  left: 20px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
  width: 280px;
  max-width: calc(100vw - 40px);
  z-index: 100;
  border: 1px solid var(--border);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  transition: all 0.3s ease;
}

.weather-container.mobile-collapsed {
  width: 60px;
  height: 60px;
  padding: 8px;
  overflow: hidden;
  cursor: pointer;
}

.weather-container.mobile-collapsed #weather-content,
.weather-container.mobile-collapsed .weather-card {
  display: none;
}

.weather-container.mobile-collapsed #weather-header {
  font-size: 10px;
  text-align: center;
  margin: 0;
  padding: 0;
  border: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  transform: rotate(180deg);
}

#weather-header {
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weather-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: none;
}

.weather-close-btn:hover {
  background: var(--border);
  color: var(--text-primary);
}

.weather-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  margin-bottom: 8px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.weather-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.weather-card:last-child {
  margin-bottom: 0;
}

.weather-time {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

.weather-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

.weather-temp {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin: 4px 0;
  color: var(--text-primary);
}

.weather-feels {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 4px;
}

.weather-description {
  font-size: 14px;
  text-align: center;
  margin-bottom: 8px;
  text-transform: capitalize;
}

.weather-details {
  display: flex;
  justify-content: space-around;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 8px;
}

.weather-feels {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 4px;
}

.weather-description {
  font-size: 14px;
  text-align: center;
  text-transform: capitalize;
  margin: 4px 0;
}

.weather-details {
  display: flex;
  justify-content: space-around;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Route info panel */
.route-info-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
  width: 260px;
  z-index: 100;
  border: 1px solid var(--border);
}

.route-info-panel h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.stat-label {
  color: var(--text-secondary);
}

.stat-value {
  font-weight: 500;
}

#route-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

/* Export buttons */
.export-buttons {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: none;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 100;
}

.export-btn {
  padding: 10px 16px;
  background: var(--surface-solid);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

/* Settings toggle */
.settings-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 1000;
}

.icon-btn {
  width: 36px;
  height: 36px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.icon-btn:hover {
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  display: none;
  text-align: center;
  border: 1px solid var(--border);
}

.loading-overlay.active {
  display: block;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border: 3px solid var(--border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Footer */
.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  z-index: 100;
}

.app-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.app-footer a:hover {
  text-decoration: underline;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.modal-active {
  opacity: 1;
}

.modal {
  background: var(--surface-solid);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

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

.modal-header h2 {
  font-size: 20px;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast messages */
.error-toast,
.success-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 10001;
  animation: slideDown 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.error-toast {
  background: #ff3b30;
  color: white;
}

.success-toast {
  background: #34c759;
  color: white;
}

.error-toast.fade-out,
.success-toast.fade-out {
  animation: slideUp 0.3s ease;
  opacity: 0;
}

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

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

/* Button styles */
.btn-primary,
.btn-secondary,
.btn-danger {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

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

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

.btn-secondary:hover {
  background: var(--surface);
}

.btn-danger {
  background: #ff3b30;
  color: white;
}

.btn-danger:hover {
  background: #d70015;
}

/* Form elements */
.setting-group {
  margin-bottom: 16px;
}

.setting-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.setting-group input[type="text"],
.setting-group input[type="number"],
.setting-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  color: var(--text-primary);
  font-size: 14px;
}

.setting-group input[type="checkbox"] {
  margin-right: 8px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .weather-container {
    width: calc(100vw - 32px);
    left: 16px;
    right: 16px;
    top: 70px;
    max-height: calc(100vh - 140px);
  }
  
  .weather-close-btn {
    display: block;
  }
  
  .route-info-panel {
    width: calc(100vw - 32px);
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 100px;
  }

  .export-buttons {
    bottom: 60px;
    right: 10px;
    left: 10px;
    flex-direction: row;
    justify-content: center;
  }

  .modal {
    width: 95%;
    max-height: 90vh;
  }

  .distance-options {
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    top: 50%;
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .weather-container {
    width: calc(100vw - 24px);
    left: 12px;
    right: 12px;
    top: 60px;
    padding: 12px;
    max-height: calc(100vh - 120px);
  }
  
  .weather-container.mobile-collapsed {
    width: 50px;
    height: 50px;
    top: 10px;
    right: 10px;
    left: auto;
    border-radius: 50%;
    padding: 0;
  }
  
  .weather-container.mobile-collapsed #weather-header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
    font-size: 8px;
    margin: 0;
    padding: 0;
    border: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
  }
  
  .weather-card {
    padding: 8px;
    margin-bottom: 6px;
  }
  
  .weather-temp {
    font-size: 20px;
  }
  
  .weather-icon {
    width: 40px;
    height: 40px;
  }
  
  .weather-description {
    font-size: 13px;
  }
  
  .weather-details {
    font-size: 11px;
    gap: 4px;
  }
}

/* Mobile specific */
.mobile-view .weather-container {
  position: absolute;
  top: 60px;
}

.mobile-view .route-info-panel {
  position: absolute;
  bottom: 80px;
}

/* Accessibility */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus {
  outline-offset: 1px;
}

/* Keyboard navigation indicators */
.keyboard-focus {
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3);
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Tooltip styles */
.tooltip {
  position: absolute;
  background: var(--surface-solid);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  z-index: 10000;
  pointer-events: none;
  white-space: nowrap;
}

/* History list */
.history-list {
  max-height: 400px;
  overflow-y: auto;
}

.history-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--surface-solid);
}

.history-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.history-details {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.history-actions button {
  padding: 4px 12px;
  font-size: 12px;
}

/* Settings content */
.settings-content h3 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-primary);
}

.settings-content h3:first-child {
  margin-top: 0;
}

/* Help content */
.help-content h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 16px;
}

.help-content h3:first-child {
  margin-top: 0;
}

.help-content ol,
.help-content ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.help-content li {
  margin-bottom: 8px;
}

.shortcuts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.shortcut-item kbd {
  padding: 2px 6px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: monospace;
  font-size: 12px;
}