.bug-report-trigger {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bug-report-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
    transform: translateY(-1px);
}

.bug-report-trigger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bug-report-modal .modal-dialog {
    width: min(960px, calc(100vw - 1rem));
    margin: 0.75rem auto;
}

.bug-report-modal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 1.5rem);
}

.bug-report-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.bug-report-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.bug-report-modal.bug-report-capture-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.bug-report-capture-in-progress .modal-backdrop.show {
    opacity: 0 !important;
    visibility: hidden !important;
}

.bug-report-consent-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.85rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(190, 48, 42, 0.05), rgba(248, 249, 250, 0.45));
}

.bug-report-preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bug-report-preview-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    font-size: 0.92rem;
}

.bug-report-preview-list li:last-child {
    border-bottom: 0;
}

.bug-report-status {
    min-height: 1.5rem;
}

.bug-report-dropzone {
    border: 1px dashed var(--bs-border-color);
    border-radius: 0.85rem;
    padding: 0.9rem;
    background: var(--bs-tertiary-bg);
}

.bug-report-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    background: rgba(190, 48, 42, 0.12);
    color: #8d231f;
    font-size: 0.78rem;
    font-weight: 600;
}

[data-bs-theme="dark"] .bug-report-trigger {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .bug-report-consent-card {
    background: linear-gradient(180deg, rgba(190, 48, 42, 0.18), rgba(33, 37, 41, 0.55));
}

@media (max-width: 767.98px) {
    .bug-report-modal .modal-dialog {
        width: calc(100vw - 0.5rem);
        margin: 0.25rem auto;
    }

    .bug-report-modal .modal-content {
        max-height: calc(100vh - 0.5rem);
    }
}
