/* گزارش مشکل ابزار */
.tool-report-issue-block { margin-top: 0.75rem; }
.tool-report-issue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tool-report-issue-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}
.tool-report-issue-hint {
    font-size: 0.7rem;
    color: #9ca3af;
    margin: 0.4rem 0 0;
    text-align: center;
}

.tool-report-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.tool-report-modal.tool-hidden { display: none; }
.tool-report-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}
.tool-report-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 26rem;
    animation: toolReportIn 0.3s ease-out;
}
@keyframes toolReportIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.tool-report-modal__card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
    position: relative;
}
.tool-report-modal__close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
}
.tool-report-modal__close:hover { color: #4b5563; }
.tool-report-modal__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.tool-report-modal__title {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.35rem;
}
.tool-report-modal__subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1rem;
}
.tool-report-modal__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.35rem;
}
.tool-report-modal__textarea {
    width: 100%;
    min-height: 7rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
}
.tool-report-modal__textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.tool-report-modal__counter {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: left;
    margin: 0.35rem 0 0.75rem;
}
.tool-report-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.tool-report-modal__submit {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.tool-report-modal__submit:disabled { opacity: 0.6; cursor: not-allowed; }
.tool-report-modal__cancel {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    color: #4b5563;
    font-weight: 700;
    cursor: pointer;
}
.tool-report-modal__alert {
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}
.tool-report-modal__alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.tool-report-modal__alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Border radius generator preview */
.cbr-preview-box {
    width: 12rem;
    height: 8rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    transition: border-radius 0.2s ease;
}
.cbr-preset-btn--active {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 700;
}
