/* ============================================================
   Unico SDHV Selection Tool — Custom Styles
   Mobile-first, Bootstrap 5 base
   ============================================================ */

:root {
    --unico-red:   #cd202c;
    --unico-navy:  #1e3a5f;
    --unico-blue:  #2d7dd2;
    --unico-light: #f5f7fa;
}

/* ---- Base ---- */
body {
    background-color: var(--unico-light);
    color: #1e1e1e;
    font-size: 15px;
}

/* ---- Navbar ---- */
.unico-navbar {
    background-color: var(--unico-navy) !important;
    min-height: 52px;
    overflow: visible; /* allow dropdowns to escape navbar bounds */
}

.unico-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--unico-red);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ---- Step Progress ---- */
.unico-steps {
    background: #fff;
}

.steps-row {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.steps-row::-webkit-scrollbar { display: none; }

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 4px 12px;
    white-space: nowrap;
    transition: background .15s;
    border-radius: 4px;
    gap: 2px;
}

.step-icon {
    font-size: 1.1rem;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.step-done   { color: #198754; }
.step-active { color: var(--unico-red); background: #fdf0f0; }
.step-pending { color: #adb5bd; }

.step-done:hover,
.step-pending:hover { background: #f0f4f8; color: var(--unico-navy); }

.step-divider {
    flex: 1;
    min-width: 10px;
    height: 1px;
    background: #dee2e6;
}

/* ---- Cards ---- */
.card { border-radius: 10px; }

.unico-card-header-red {
    background-color: var(--unico-red);
}

/* ---- AHU Badge ---- */
.ahu-badge {
    background: linear-gradient(135deg, #e8eef8 0%, #f0f4fb 100%);
    border: 2px solid #c5d5ea;
}

/* ---- Tables ---- */
.table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    font-weight: 600;
}

/* ---- Modal header ---- */
.unico-modal-header {
    background-color: var(--unico-navy);
    color: #fff;
}

/* ---- Footer ---- */
.unico-footer {
    background-color: #fff;
}

/* ---- Utility ---- */
.text-unico-red   { color: var(--unico-red) !important; }
.text-unico-navy  { color: var(--unico-navy) !important; }
.bg-unico-red     { background-color: var(--unico-red) !important; }
.bg-unico-navy    { background-color: var(--unico-navy) !important; }
.text-orange      { color: #e07000 !important; }

/* ---- Floor plan outlet pin (installer read-only view) ---- */
.fp-outlet-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ---- Mobile tweaks ---- */
@media (max-width: 575.98px) {
    body { font-size: 14px; }
    .card-body { padding: .75rem; }
    .btn-sm { font-size: .78rem; }
    h1.h4 { font-size: 1.1rem; }
    .display-6 { font-size: 1.4rem; }
}

/* ---- Progress bar ---- */
.progress { border-radius: 4px; }

/* ---- Alert link ---- */
.alert a { font-weight: 600; }

/* ---- Totals cards ---- */
.card .fs-4, .card .fs-5 { line-height: 1.2; }


/* ---- Floor Plan Tool button — subtle pulse to aid discoverability ---- */
@keyframes fp-btn-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.45); }
    70%  { box-shadow: 0 0 0 7px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}
.fp-tool-btn {
    animation: fp-btn-pulse 2s ease-in-out 3;  /* pulses 3 times then stops */
}
