/* Home Dashboard — Custom Styles */

.service-card {
  transition: all 0.2s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.4);
}

.ha-widget {
  transition: all 0.2s ease;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.online { background: #22c55e; box-shadow: 0 0 6px #22c55e80; }
.status-dot.offline { background: #ef4444; }
.status-dot.unknown { background: #6b7280; }

.ha-iframe-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse-soft {
  animation: pulse-soft 2s ease-in-out infinite;
}

.loading-skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Thermostat dial */
.thermostat-ring {
  stroke-dasharray: 283;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.entity-row {
  transition: background-color 0.15s ease;
}
.entity-row:hover {
  background-color: rgba(255, 255, 255, 0.03);
}
