/* Customer portal — small additions on top of Bootstrap 5.3 */

.auth-container { max-width: 440px; }
.narrow-card { max-width: 560px; }
.min-w-0 { min-width: 0; }

.auth-bg {
    background:
        radial-gradient(circle at 15% 10%, rgba(var(--bs-primary-rgb), .10), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(var(--bs-info-rgb), .10), transparent 45%),
        var(--bs-tertiary-bg);
}

.avatar-circle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis);
    font-weight: 600; font-size: .9rem; flex-shrink: 0;
}

.icon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3.5rem; height: 3.5rem; border-radius: 50%; font-size: 1.5rem;
    background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis);
}
.icon-badge-warning { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }

.otp-input { letter-spacing: .5em; }

.nav-pills-sm .nav-link { padding: .3rem .75rem; font-size: .875rem; }

.ticket-table td a { color: var(--bs-body-color); }
.ticket-table td a:hover { color: var(--bs-primary); }

.priority-dot {
    display: inline-block; width: .5rem; height: .5rem; border-radius: 50%;
    margin-right: .4rem; vertical-align: middle;
}

.ticket-text { white-space: normal; overflow-wrap: anywhere; }

/* Activity timeline */
.timeline { position: relative; padding-left: 2.75rem; }
.timeline::before {
    content: ""; position: absolute; left: 1rem; top: .5rem; bottom: .5rem;
    width: 2px; background: var(--bs-border-color);
}
.timeline-item { position: relative; margin-bottom: 1rem; scroll-margin-top: 1rem; }
.timeline-marker {
    position: absolute; left: -2.75rem; top: .75rem;
    width: 2rem; height: 2rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: .9rem; box-shadow: 0 0 0 4px var(--bs-body-bg);
}

.sidebar-sticky { top: 1rem; z-index: 1; }

[data-bs-theme="dark"] .card { background-color: var(--bs-tertiary-bg); }
[data-bs-theme="dark"] .card-header.bg-body,
[data-bs-theme="dark"] .card-footer.bg-body { background-color: var(--bs-tertiary-bg) !important; }

.ticket-table thead th {
    font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
    color: var(--bs-secondary-color); font-weight: 600;
    background: var(--bs-tertiary-bg);
}

.context-pill { max-width: 22rem; font-weight: 500; }
.btn-close-sm { width: .6em; height: .6em; padding: .1em; background-size: .6em; }

/* Internal (hidden) notes, agents only */
.step-internal { background: var(--bs-warning-bg-subtle) !important; border-left: 3px solid var(--bs-warning) !important; }

/* Brand logo (config app.logo) */
.brand-logo { height: 1.75rem; width: auto; }
.brand-logo-lg { height: 3.5rem; width: auto; }

/* Inline image attachments in the ticket timeline */
.attachment-images { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; }
.attachment-image {
    position: relative; display: block; overflow: hidden;
    border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius);
    background: var(--bs-tertiary-bg); max-width: 100%;
}
.attachment-image img {
    display: block; max-width: 100%; max-height: 320px; width: auto; height: auto;
    object-fit: contain; transition: opacity .15s;
}
/* Several images: uniform-height thumbnails side by side */
.attachment-images:has(.attachment-image:nth-child(2)) .attachment-image img { height: 160px; max-height: none; max-width: 300px; object-fit: cover; }
.attachment-image-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: .3rem .5rem;
    font-size: .75rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65));
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .15s;
}
.attachment-image:hover .attachment-image-caption,
.attachment-image:focus-visible .attachment-image-caption { opacity: 1; }
.attachment-image:hover img { opacity: .92; }
