/* ============================================================================
   Report Issue — floating button + modal
   Designed to be very subtle and non-intrusive.
   ============================================================================ */

/* ---- Floating trigger button ---- */
.report-issue-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    transition: background 0.25s, transform 0.15s;
    opacity: 0.45;
    font-size: 16px;
    line-height: 1;
    color: #666;
}

.report-issue-fab:hover {
    opacity: 0.85;
    background: rgba(0, 0, 0, 0.12);
    transform: scale(1.08);
}

/* ---- Modal overlay ---- */
.ri-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.ri-overlay.open { display: flex; }

/* ---- Modal box ---- */
.ri-box {
    background: white;
    border-radius: 16px;
    padding: 28px 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.ri-title {
    font-size: 1.15em;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
}

.ri-subtitle {
    font-size: 13px;
    color: #999;
    margin: 0 0 22px;
}

.ri-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.ri-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.ri-input {
    padding: 10px 13px;
    border: 2px solid #e0e0e0;
    border-radius: 9px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.ri-input:focus { border-color: var(--brand-teal); }

textarea.ri-input {
    resize: vertical;
    min-height: 80px;
}

select.ri-input {
    cursor: pointer;
    background: white;
}

.ri-error {
    color: #c0392b;
    font-size: 13px;
    min-height: 16px;
    margin-bottom: 10px;
}

.ri-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.ri-btn-cancel {
    padding: 9px 18px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.ri-btn-cancel:hover { border-color: #bbb; color: #555; }

.ri-btn-submit {
    padding: 9px 22px;
    background: var(--brand-teal);
    color: white;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ri-btn-submit:hover:not(:disabled) { background: var(--brand-teal-hover); }
.ri-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---- Screenshot file input ---- */
.ri-file-label {
    display: inline-block;
    padding: 7px 14px;
    background: #f5f5f5;
    border: 1.5px dashed #ccc;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ri-file-label:hover { border-color: var(--brand-teal); color: #333; }

.ri-file-name {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* ---- Success state ---- */
.ri-success {
    text-align: center;
    padding: 20px 0;
}

.ri-success-icon {
    font-size: 2.4em;
    margin-bottom: 8px;
}

.ri-success-text {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    margin-bottom: 4px;
}

.ri-success-sub {
    font-size: 13px;
    color: #888;
}

/* ---- Mobile ---- */
@media screen and (max-width: 640px) {
    .report-issue-fab {
        bottom: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .ri-overlay { align-items: flex-end; }

    .ri-box {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        max-height: 88vh;
        padding: 24px 20px;
    }

    .ri-input { font-size: 16px; }
}
