/*
 * Tampilan umum menggunakan komponen Bootstrap 5 dari theme.
 * CSS plugin hanya menangani elemen khusus tiket dan scanner QR.
 */

[x-cloak] {
    display: none !important;
}

header.fl-builder-content {
    position: relative;
    z-index: 9 !important;
}
.bg-accent {
    background-color: var(--fl-global-accent) !important;
}
.text-accent {
    color: var(--fl-global-accent) !important;
}
.bg-dark .form-control,
.bg-dark .form-select,
.bg-dark .form-control:focus,
.bg-dark .form-select:focus {
    background-color: #1e1e1e !important;
    border-color: #444 !important;
    color: #fff !important;
}

.bg-dark .form-control::placeholder {
    color: #aaa !important;
}

.vet-schedule-list .vet-schedule-card {
    cursor: pointer;
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.vet-schedule-card .card-body {
    color: #fff;
}

.vet-schedule-card:hover {
    border-color: var(--fl-global-accent);
}

.vet-schedule-card.selected {
    background-color: #332b14;
    border-color: var(--fl-global-accent);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.35);
}

.vet-schedule-card.disabled {
    cursor: not-allowed;
    opacity: 0.55;
    border-color: #444;
}

.vet-schedule-card.disabled:hover {
    border-color: #444;
    box-shadow: none;
}

.vet-qr {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    margin: 1.25rem auto;
}

.vet-camera-preview {
    position: relative;
    overflow: hidden;
    max-width: 480px;
    border-radius: var(--bs-border-radius-lg, 0.5rem);
    background: #0f172a;
    aspect-ratio: 4 / 3;
}

.vet-camera-preview video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vet-camera-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(62%, 250px);
    border: 3px solid #fff;
    border-radius: var(--bs-border-radius-lg, 0.5rem);
    box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.35);
    transform: translate(-50%, -50%);
    aspect-ratio: 1;
    pointer-events: none;
}

.vet-event-list {
    --vet-list-line: #dfe4ec;
}

.vet-event-list__row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 140px;
}

.vet-event-list__date-column {
    position: relative;
    display: flex;
    justify-content: center;
}

.vet-event-list__date-column::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 0;
    border-left: 1px dashed var(--vet-list-line);
    content: "";
}

.vet-event-list__date {
    position: relative;
    z-index: 1;
    display: flex;
    width: 72px;
    height: 96px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    text-transform: uppercase;
}

.vet-event-list__date span,
.vet-event-list__date small {
    font-size: 0.75rem;
    font-weight: 700;
}

.vet-event-list__date strong {
    margin: 0.35rem 0;
    font-size: 1.5rem;
}

.vet-event-list__content {
    min-width: 0;
}

.vet-event-list__content > div {
    min-width: 0;
}

.vet-event-list__image {
    width: 192px;
    height: 90px;
    flex: 0 0 auto;
    border-radius: 0.75rem;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .vet-event-list__row {
        grid-template-columns: 64px minmax(0, 1fr);
        min-height: 125px;
    }

    .vet-event-list__date {
        width: 54px;
        height: 78px;
    }

    .vet-event-list__image {
        width: 92px;
        height: 68px;
    }
}
