/* Bug report module */

.bug-report-fab {
    position: fixed;
    left: 0;
    bottom: 18px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 24px);
    padding: 11px 16px 11px 13px;
    border-radius: 0 12px 12px 0;
    background: #d93025;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(10, 38, 71, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.bug-report-fab:hover,
.bug-report-fab:focus {
    color: #fff;
    background: #b3261e;
    transform: translateY(-2px);
}

.bug-report-fab i {
    font-size: 0.95rem;
}

.bug-report-section {
    padding: 36px 0 80px;
    background:
        radial-gradient(circle at 10% 0%, rgba(217, 48, 37, 0.07), transparent 26rem),
        radial-gradient(circle at 90% 8%, rgba(15, 111, 255, 0.07), transparent 28rem),
        #f7f9fd;
}

.bug-report-hero {
    max-width: 720px;
    margin: 0 auto 24px;
    text-align: center;
}

.bug-report-hero .bug-report-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(217, 48, 37, 0.1);
    color: #b3261e;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bug-report-hero h1 {
    margin: 14px 0 10px;
    color: #0a2647;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
}

.bug-report-hero p {
    margin: 0;
    color: #5b6b82;
    font-size: 1rem;
    line-height: 1.7;
}

.bug-report-card {
    padding: 28px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(10, 38, 71, 0.08);
}

.bug-report-card h2 {
    margin: 0 0 6px;
    color: #0a2647;
    font-size: 1.2rem;
    font-weight: 800;
}

.bug-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bug-report-field {
    margin-bottom: 16px;
}

.bug-report-field label {
    display: block;
    margin-bottom: 6px;
    color: #13233a;
    font-size: 0.86rem;
    font-weight: 700;
}

.bug-report-field .form-control,
.bug-report-field .form-select {
    min-height: 44px;
    border-color: #dbe3ef;
    border-radius: 10px;
}

.bug-report-field textarea.form-control {
    min-height: 190px;
    resize: vertical;
}

.bug-report-field .form-control:focus,
.bug-report-field .form-select:focus {
    border-color: #0f6fff;
    box-shadow: 0 0 0 3px rgba(15, 111, 255, 0.14);
}

.bug-report-help {
    margin: 6px 0 0;
    color: #5b6b82;
    font-size: 0.8rem;
    line-height: 1.55;
}

.bug-report-error {
    margin: 5px 0 0;
    color: #b3261e;
    font-size: 0.8rem;
    font-weight: 600;
}

.bug-report-alert {
    margin-bottom: 18px;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.bug-report-alert-error {
    border: 1px solid rgba(217, 48, 37, 0.3);
    background: rgba(217, 48, 37, 0.08);
    color: #842019;
}

.bug-report-alert-success {
    border: 1px solid rgba(15, 157, 88, 0.3);
    background: rgba(15, 157, 88, 0.08);
    color: #0b6b3d;
}

.bug-report-page-url {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px dashed #c3d0e2;
    border-radius: 10px;
    background: #f4f7fb;
    color: #5b6b82;
    font-size: 0.8rem;
    line-height: 1.5;
    word-break: break-word;
}

.bug-report-page-url strong {
    color: #13233a;
    white-space: nowrap;
}

.bug-report-file {
    width: 100%;
    padding: 10px;
    border: 1px dashed #c3d0e2;
    border-radius: 10px;
    background: #f9fbfe;
}

.bug-report-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 22px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #d93025, #b3261e);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bug-report-submit:hover,
.bug-report-submit:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(217, 48, 37, 0.25);
}

.bug-report-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

.bug-report-side {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #fff;
    color: #5b6b82;
    font-size: 0.86rem;
    line-height: 1.7;
}

.bug-report-side strong {
    color: #0a2647;
}

.bug-report-success {
    max-width: 720px;
    margin: 0 auto;
    padding: 34px 30px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(10, 38, 71, 0.08);
    text-align: center;
}

.bug-report-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(15, 157, 88, 0.12);
    color: #0f9d58;
    font-size: 1.7rem;
}

.bug-report-success h1 {
    margin: 0 0 10px;
    color: #0a2647;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
}

.bug-report-success p {
    color: #5b6b82;
    line-height: 1.7;
}

.bug-report-reference {
    display: inline-block;
    margin: 14px 0;
    padding: 10px 16px;
    border-radius: 10px;
    background: #f4f7fb;
    color: #0a2647;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.bug-report-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.bug-report-success-actions a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    color: #0a2647;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.bug-report-success-actions a.primary {
    border-color: transparent;
    background: #0a2647;
    color: #fff;
}

@media (max-width: 767px) {
    .bug-report-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bug-report-card,
    .bug-report-success {
        padding: 20px;
        border-radius: 13px;
    }

    .bug-report-fab {
        bottom: 14px;
        padding: 10px 13px;
        font-size: 0.78rem;
    }
}

@media print {
    .bug-report-fab {
        display: none !important;
    }
}

.bug-report-success-subtitle {
    margin: 6px 0 8px;
    color: #0a2647;
    font-size: 1rem;
    font-weight: 800;
}
