/**
 * Dolphin Pool Cleaner Setup Wizard Styles
 */

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

.wizard-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 12px;
}

.wizard-step {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.wizard-step.active {
  display: block;
}

@keyframes fadeIn {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}

/* Step Header */
.step-header {
  text-align: center;
  margin-bottom: 16px;
}

.step-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.step-icon.success {
  color: var(--bs-success);
  background: rgba(var(--bs-success-rgb), 0.1);
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 50%;
  display: inline-block;
  font-size: 28px;
}

.step-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Robot Card with Image */
.robot-card {
  background: linear-gradient(135deg, var(--bs-secondary-bg) 0%, var(--bs-body-bg) 100%);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.robot-image-container {
  position: relative;
  background: linear-gradient(180deg, #e8f4fc 0%, #c9e4f6 100%);
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

[data-bs-theme="dark"] .robot-image-container {
  background: linear-gradient(180deg, #1e3a4c 0%, #0d2233 100%);
}

.robot-image {
  max-width: 200px;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* SVG Robot Illustration */
.robot-svg {
  width: 200px;
  height: 150px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.robot-svg svg {
  width: 100%;
  height: 100%;
}

.robot-image-fallback {
  display: none;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
}

.robot-emoji {
  font-size: 40px;
}

.robot-status-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .robot-status-badge {
  background: rgba(45, 45, 45, 0.95);
  color: #e9ecef;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--bs-secondary-color);
}

.status-dot.green {
  background-color: var(--bs-success);
  box-shadow: 0 0 4px var(--bs-success);
}

.robot-card-content {
  padding: 12px 14px;
}

.robot-card-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--bs-body-color);
}

.robot-card-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.robot-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--bs-border-color);
}

.robot-detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 12px;
  color: var(--bs-secondary-color);
  font-weight: 500;
}

.detail-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--bs-body-color);
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Configured Robots List */
#configured-robots-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* Clickable robot card — horizontal layout (image left, details right) */
.robot-card-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: stretch;
}

.robot-card-clickable .robot-image-container {
  width: 50%;
  min-height: 160px;
  flex-shrink: 0;
}

.robot-card-clickable .robot-svg {
  width: 160px;
  height: 120px;
}

.robot-card-clickable .robot-image {
  max-width: 160px;
  max-height: 120px;
}

.robot-card-clickable .robot-card-content {
  width: 50%;
  min-width: 0;
}

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

[data-bs-theme="dark"] .robot-card-clickable:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}


/* Cleaning Mode Info Box */
#cleaning-mode-info {
  border-left: 3px solid var(--bs-info);
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
}

.mode-info-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.mode-info-icon {
  font-size: 12px;
}

.mode-info-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--bs-info);
}

.mode-info-content {
  font-size: 12px;
  color: var(--bs-body-color);
  line-height: 1.4;
  margin-bottom: 8px;
}

.mode-info-duration {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 122, 255, 0.15);
}

.duration-icon {
  font-size: 12px;
}

#mode-duration-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--bs-secondary-color);
}

@media (max-width: 600px) {
  .wizard-container {
    max-width: 480px;
  }
}

/* Inline Bootstrap-icons SVGs (self-hosted; no icon-font CDN).
   Mirrors the bootstrap-icons font sizing: 1em, currentColor, baseline nudge. */
svg.bi {
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
}
