body.feedback-mode-on {
    outline: 3px dashed #f59e0b;
    outline-offset: -3px;
}

body.feedback-mode-on [data-feedback-type]:hover,
body.feedback-mode-on .card:hover,
body.feedback-mode-on [data-chart]:hover,
body.feedback-mode-on table:hover,
body.feedback-mode-on canvas:hover {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
    cursor: crosshair;
}

body.feedback-mode-on header a:hover,
body.feedback-mode-on header button:hover,
body.feedback-mode-on nav a:hover,
body.feedback-mode-on nav button:hover,
body.feedback-mode-on aside a:hover,
body.feedback-mode-on aside button:hover,
body.feedback-mode-on [role="navigation"] a:hover,
body.feedback-mode-on [role="navigation"] button:hover {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
    cursor: crosshair;
}

body.feedback-mode-on .feedback-target-active {
    outline: 3px solid #f59e0b !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, .14);
}

body.feedback-mode-on main:hover,
body.feedback-mode-on section:hover,
body.feedback-mode-on .row:empty:hover,
body.feedback-mode-on .container-fluid:empty:hover,
body.feedback-mode-on .page-wrapper:empty:hover {
    outline: 2px dashed #f59e0b;
    outline-offset: 2px;
    cursor: crosshair;
}

.feedback-mode-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    min-width: 86px;
    padding: .15rem .45rem;
    white-space: nowrap;
}

.feedback-mode-toggle__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 1.5rem;
    margin: 0;
}

.feedback-mode-toggle .form-check-input {
    float: none;
    margin: 0;
    cursor: pointer;
    background-color: #e2e8f0;
    border-color: #94a3b8;
}

.feedback-mode-toggle .form-check-input:checked {
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.feedback-mode-toggle .form-check-input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 .2rem rgba(217, 119, 6, .2);
}

.feedback-mode-toggle label {
    color: #334155;
    font-size: .67rem;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
}

.feedback-mode-toggle__control .form-check-label {
    color: #64748b;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1;
}


.feedback-modal {
    overflow: hidden !important;
    padding: .5rem !important;
}

.feedback-modal-dialog,
.feedback-modal-dialog.modal-dialog-centered {
    width: min(100% - 1rem, 980px);
    height: auto;
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    margin: .5rem auto;
}

.feedback-modal .modal-content,
.feedback-modal-dialog.modal-dialog-scrollable .modal-content {
    display: flex;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
}

.feedback-modal #feedbackForm {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.feedback-modal-header {
    gap: 1rem;
    flex: 0 0 auto;
    padding: .75rem 1.1rem;
    border-bottom-color: #edf1f5;
}

.feedback-modal-header-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .8rem;
}

.feedback-modal-heading {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.feedback-modal-heading p {
    color: #64748b;
}

.feedback-modal-icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .85rem;
    background: #fff4d6;
    color: #b45309;
    font-size: 1.35rem;
}

.feedback-modal-body,
.feedback-modal-dialog.modal-dialog-scrollable .feedback-modal-body {
    min-height: 0;
    flex: 0 1 auto;
    max-height: calc(100vh - 8rem);
    max-height: calc(100dvh - 8rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .75rem 1.1rem;
}

.feedback-modal-body .row {
    --bs-gutter-y: .55rem;
    margin-bottom: 0 !important;
}

.feedback-modal-body .form-label {
    color: #334155;
    font-size: .82rem;
    font-weight: 650;
}

.feedback-modal-body .form-control,
.feedback-modal-body .form-select {
    min-height: 2.35rem;
    padding-top: .35rem;
    padding-bottom: .35rem;
    border-color: #dbe3ec;
    border-radius: .65rem;
    box-shadow: none;
}

.feedback-modal-body .form-control:focus,
.feedback-modal-body .form-select:focus {
    border-color: #f2b740;
    box-shadow: 0 0 0 .2rem rgba(245, 158, 11, .14);
}

.feedback-modal-body .feedback-description {
    min-height: 5rem;
    resize: vertical;
}

.feedback-screenshot-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .35rem;
}

.feedback-add-btn {
    position: fixed;
    z-index: 1085;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .75rem;
    border: 1px solid #d97706;
    border-radius: .55rem;
    background: #f59e0b;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .2);
    color: #1f2937;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.feedback-add-btn:hover,
.feedback-add-btn:focus-visible {
    border-color: #b45309;
    background: #fbbf24;
    color: #111827;
    outline: 3px solid rgba(245, 158, 11, .25);
    outline-offset: 2px;
}

.feedback-success-modal .modal-content {
    border-radius: 1rem;
    border: 1px solid #bbf7d0;
    background: linear-gradient(145deg, #f0fdf4, #ffffff 68%);
}

.feedback-success-icon {
    display: inline-grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 2rem;
}

.feedback-success-title {
    color: #15803d;
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -.015em;
}

.feedback-screenshot-preview {
    display: flex;
    min-height: 8rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: .3rem;
    border: 1px dashed #cbd5e1;
    border-radius: .65rem;
    background: #f8fafc;
}

.feedback-screenshot-preview img {
    display: block;
    width: 100%;
    max-width: 760px;
    max-height: 280px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .feedback-mode-toggle {
        min-width: 72px;
        padding-inline: .25rem;
    }

    .feedback-mode-toggle label {
        font-size: .62rem;
    }

    .feedback-modal-dialog {
        width: min(100%, 900px);
        height: auto;
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        margin: .5rem auto;
    }

    .feedback-modal-body,
    .feedback-modal-dialog.modal-dialog-scrollable .feedback-modal-body {
        max-height: calc(100vh - 7rem);
        max-height: calc(100dvh - 7rem);
    }

    .feedback-modal-header,
    .feedback-modal-body {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .feedback-modal-header {
        padding-top: .65rem;
        padding-bottom: .65rem;
    }

    .feedback-modal-heading {
        gap: .55rem;
    }

    .feedback-modal-icon {
        width: 2rem;
        height: 2rem;
    }

    .feedback-modal-header-actions {
        gap: .55rem;
    }

    .feedback-modal-header-actions #feedbackSubmitButton {
        padding-right: .55rem !important;
        padding-left: .55rem !important;
    }

    .feedback-screenshot-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .2rem;
    }

    .feedback-screenshot-preview img {
        max-height: 240px;
    }
}
