/* =========================================================
   FEEDBACK TOOLING (UNIFIED)
========================================================= */

/* =========================================================
   TOOLBAR FEEDBACK (INLINE)
========================================================= */

.message-toolbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.45rem;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.message-toolbar:hover {
    opacity: 1;
}

.toolbar-btn {
    border: none;
    background: transparent;
    color: #9aa0a6;
    cursor: pointer;

    width: 28px;
    height: 28px;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.15s ease;
}

.toolbar-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
}

.toolbar-btn.active {
    color: #8ab4f8;
    background: rgba(138,180,248,0.12);
}

.toolbar-btn .material-symbols-outlined {
    font-size: 18px;
}

/* =========================================================
   CHIPS (NEGATIVE FEEDBACK)
========================================================= */

.reason-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;

    margin-top: 1rem;
    margin-bottom: 1rem;
}

.chip {
    border: 1px solid #303134;
    background: #202124;
    color: #bdc1c6;

    padding: 0.65rem 0.9rem;

    border-radius: 10px;

    cursor: pointer;

    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;

    transition:
            background 0.15s ease,
            border-color 0.15s ease,
            color 0.15s ease,
            box-shadow 0.15s ease;
}

.chip:hover {
    background: #282a2d;
    border-color: #5f6368;
    color: #ffffff;
}

.chip.selected {
    background: rgba(138,180,248,0.18);
    border-color: #8ab4f8;
    color: #ffffff;

    box-shadow:
            0 0 0 1px rgba(138,180,248,0.35),
            0 0 16px rgba(138,180,248,0.15);
}

.chip.selected::before {
    content: "✓ ";
}

/* =========================================================
   MODAL BASE BUTTONS
========================================================= */

.modal-content .btn-outline,
.modal-content .btn-primary {
    font-family: inherit;
    font-size: 0.85rem;
    border-radius: 10px;
    cursor: pointer;

    border: 1px solid transparent;

    transition: all 0.15s ease;
}

/* CANCEL BUTTON */
.modal-content .btn-outline {
    background: #262626;
    border: 1px solid #3a3a3a;
    color: #d0d0d0;
}

.modal-content .btn-outline:hover {
    background: #303030;
    border-color: #555;
    color: #ffffff;
}

/* PRIMARY BUTTON */
.modal-content .btn-primary {
    background: rgba(138,180,248,0.18);
    border: 1px solid #8ab4f8;
    color: #ffffff;
}

.modal-content .btn-primary:hover {
    background: rgba(138,180,248,0.25);
}
.btn-submit-feedback:disabled,
.btn-submit-pos:disabled {
    background: #2b2b2b;
    border: 1px solid #3a3a3a;
    color: #8a8a8a;

    opacity: 1;

    cursor: not-allowed;

    box-shadow: none;
}
.btn-submit-feedback:disabled:hover,
.btn-submit-pos:disabled:hover {
    background: #2b2b2b;
    border: 1px solid #3a3a3a;
    color: #8a8a8a;
}
/* =========================================================
   MODAL LAYOUT
========================================================= */

.feedback-modal-actions {
    margin-top: 1.25rem;

    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

/* POSITIVE MODAL */
.positive-feedback-modal {
    display: flex;
    flex-direction: column;
}

.positive-feedback-modal .modal-header {
    text-align: center;
}

.positive-feedback-modal textarea {
    width: 100%;
    background-color: #212121;
    border: 1px solid #444;
    color: #fff;

    padding: 10px;
    border-radius: 6px;

    resize: vertical;
    min-height: 80px;

    margin-top: 1rem;
    margin-bottom: 1rem;

    font-family: inherit;
}

.positive-feedback-modal textarea:focus {
    outline: none;
    border-color: #8ab4f8;
}

/* NEGATIVE MODAL */
.negative-feedback-modal textarea {
    width: 100%;
    background-color: #212121;
    border: 1px solid #444;

    color: #fff;

    padding: 10px;
    border-radius: 8px;

    resize: vertical;
    min-height: 90px;

    font-family: inherit;
}

.negative-feedback-modal textarea:focus {
    outline: none;
    border-color: #8ab4f8;
}

/* =========================================================
   TOASTS
========================================================= */

#toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9000;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: #262626;
    color: #e0e0e0;

    padding: 12px 18px;

    border-radius: 8px;
    border: 1px solid #444;

    box-shadow: 0 4px 20px rgba(0,0,0,0.4);

    font-size: 0.9rem;

    display: flex;
    align-items: center;
    gap: 12px;

    animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast.fade-out {
    animation: fadeOutDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-link {
    color: #8ab4f8;
    background: none;
    border: none;

    font-family: inherit;
    font-size: inherit;

    cursor: pointer;
    text-decoration: underline;

    padding: 0;
}

.toast-link:hover {
    color: #aecbfa;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes slideInUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOutDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}

.reason-select {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.reason-dropdown {
    width: 100%;
    padding: 0.85rem 1rem;

    background: #202124;
    border: 1px solid #303134;
    border-radius: 10px;

    color: #e0e0e0;

    font-family: inherit;
    font-size: 0.9rem;

    cursor: pointer;

    transition: all 0.15s ease;
    outline: none;
}

.reason-dropdown:hover {
    border-color: #5f6368;
    background: #262626;
}

.reason-dropdown:focus {
    border-color: #8ab4f8;
    box-shadow: 0 0 0 3px rgba(138,180,248,0.12);
}
