.step-connector {
    width: 100px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 4px;
    margin-top: 16px;
    transition: background 0.3s;
}

.step-connector.active {
    background: #2563eb;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

@keyframes fadeInRow {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sensor-row-new {
    animation: fadeInRow 0.2s ease;
}

@keyframes expandSection {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section-expand {
    animation: expandSection 0.3s ease;
}

.address-dropdown {
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 200px;
}

.address-suggestion {
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.address-suggestion:last-child {
    border-bottom: none;
}

.address-suggestion:hover,
.address-suggestion.active {
    background: #eff6ff;
    color: #1d4ed8;
}

/* ActiveForm error message styling.
   Plain class (no Tailwind `dark:` colon) so ActiveForm's CSS selector works. */
.order-field-error {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1rem;
    color: #ef4444;
}

@media (prefers-color-scheme: dark) {
    .step-connector            { background: #374151; }
    .step-connector.active     { background: #3b82f6; }
    .address-dropdown          { background: #1f2937; border-color: #374151; }
    .address-suggestion        { color: #e5e7eb; border-color: #374151; }
    .address-suggestion:hover,
    .address-suggestion.active { background: #374151; color: #60a5fa; }
    .order-field-error         { color: #f87171; }
}