/*
 * admin-app.css
 *
 * Admin panel custom styles and overrides.
 * Loaded after core.css and page-auth.css so these rules take precedence.
 *
 * Growing file: add section comments as new pages are built.
 */

/* ── Auth page ──────────────────────────────────────────────────────────────
   The login page uses Font Awesome icons instead of Sneat's Boxicons.
   Sneat's "icon-base" class adds sizing; we replicate that for FA here so the
   show/hide password icon in the input-group toggle looks correct.
   --------------------------------------------------------------------------- */

/* Match the size Sneat applies via .icon-base (typically ~1.125rem / 18px). */
#togglePassword {
    z-index: 4;
}

#togglePassword .fa-solid {
    font-size: 1rem;
    line-height: 1;
    color: var(--bs-secondary-color, #6c757d);
}

#togglePassword:hover .fa-solid {
    color: var(--bs-body-color, #495057);
}

/* ── Vendors list page ─────────────────────────────────────────────────────
   Hover effect on vendor rows and action button spacing.
   --------------------------------------------------------------------------- */

.vendor-row:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.04);
}

.vendor-row .btn-icon {
    width: 30px;
    height: 30px;
    padding: 0;
}

/* ── Vendor detail page ────────────────────────────────────────────────────
   Timeline for status history, avatar sizing, definition list layout.
   --------------------------------------------------------------------------- */

.avatar-xl {
    width: 80px;
    height: 80px;
}

.avatar-xl .avatar-initial {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline {
    list-style: none;
    padding-left: 1.5rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--bs-border-color, #d9dee3);
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
}

.timeline-point {
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bs-primary);
    background-color: var(--bs-body-bg, #fff);
    z-index: 1;
}

/* SweetAlert2 — nudge the z-index above Sneat's sidebar (1080). */
.swal2-container {
    z-index: 1100 !important;
}
