.demo-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem;
}

.demo-content h1 {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
}

.demo-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* Widget Container */
.widget-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.widget-container.hidden {
  display: none;
}

.weather-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Weather Dialog */
.weather-dialog {
  position: relative;
  max-width: 20rem;
  backdrop-filter: blur(12px);
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  background: rgba(255, 255, 255, 0.98);
}

.weather-dialog.unsafe {
  background: rgba(254, 242, 242, 0.98);
  border-color: rgba(239, 68, 68, 0.3);
}

.close-btn {
  position: absolute;
  right: -0.5rem;
  top: -0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #4b5563;
  line-height: 1;
  transition: background-color 0.2s;
}

.close-btn:hover {
  background: #e5e7eb;
}

.dialog-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Loading dots */
.loading-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #06724e;
  animation: bounce 0.6s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.1s;
}

.dot:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.5rem);
  }
}

/* Error state */
.error-state {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.error-message {
  font-size: 0.875rem;
  color: #dc2626;
}

.default-location-btn {
  font-size: 0.75rem;
  background: #06724e;
  color: white;
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.default-location-btn:hover {
  background: #4f46e5;
}

/* Weather content */
.location-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 0.75rem;
}

.location-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #6366f1;
  flex-shrink: 0;
}

.location-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
}

.weather-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.stat-label {
  color: #6b7280;
  font-weight: 500;
}

.stat-value {
  color: #1f2937;
  font-weight: 600;
  font-family: "Courier New", monospace;
}

.stat-value.safe {
  color: #059669;
}

.stat-value.unsafe {
  color: #dc2626;
}

.advice-message {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1f2937;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #6366f1;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-dot.unsafe {
  background: #ef4444;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: #4b5563;
}

/* Dialog arrow */
.dialog-arrow {
  position: absolute;
  bottom: -0.5rem;
  right: 2rem;
  width: 1rem;
  height: 1rem;
  background: rgba(255, 255, 255, 0.98);
  border-right: 2px solid rgba(99, 102, 241, 0.2);
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  transform: rotate(45deg);
}

.dialog-arrow.unsafe {
  background: rgba(254, 242, 242, 0.98);
  border-right-color: rgba(239, 68, 68, 0.3);
  border-bottom-color: rgba(239, 68, 68, 0.3);
}

.widget-avatar {
  position: relative;
  width: 5em;
  height: 5rem;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid white;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.drone-icon {
  width: 2rem;
  height: 2rem;
  color: white;
}

.avatar-pulse {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #6366f1;
  border: 2px solid white;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive */
@media (max-width: 640px) {
  .widget-container {
    bottom: 1rem;
    right: 1rem;
  }

  .weather-dialog {
    max-width: 16rem;
  }
}
