/* === Feedback Widget (MoguLab Style) === */

#feedback-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Botón flotante */
#feedback-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #2f6f4e;
    color: #d7e3d7;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

#feedback-toggle:hover {
    background: #264936;
    transform: scale(1.05);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}

/* Panel */
#feedback-panel {
    width: 320px;
    background: #d8e3d7;
    color: #27425f;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

/* Header */
#feedback-panel header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #686a65;
    color: #ffffff;
    font-weight: 600;
}

#feedback-panel header button {
    background: none;
    border: none;
    color: #d7e3d7;
    font-size: 16px;
    cursor: pointer;
}

#feedback-panel header button:hover {
    color: #ffffff;
}

/* Controles */
#feedback-panel select,
#feedback-panel input,
#feedback-panel textarea {
    background: #ffffff;
    border: 1px solid #686a65;
    color: #27425f;
    padding: 10px;
    margin: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

#feedback-panel input:focus,
#feedback-panel textarea:focus {
    border-color: #2f6f4e;
    box-shadow: 0 0 0 2px rgba(47, 111, 78, 0.2);
}

.feedback-inputs {
    display: flex;
    flex-direction: column;
}

.feedback-inputs input {
    margin-bottom: 0 !important;
}

#feedback-panel textarea {
    min-height: 90px;
    resize: none;
}

/* Botón enviar */
#feedback-send {
    margin: 10px;
    padding: 10px;
    background: #2f6f4e;
    border: none;
    border-radius: 8px;
    color: #d7e3d7;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
}

#feedback-send:hover {
    background: #264936;
    transform: translateY(-1px);
}

/* Toast */
.feedback-toast {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #686a65;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 10000;
}

.feedback-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Estado colapsado */
.feedback-collapsed #feedback-panel {
    display: none;
}

.feedback-actions {
    display: flex;
    gap: 6px;
}

.feedback-actions button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#feedback-toggle {
    transition: opacity .2s ease, transform .2s ease;
}

.feedback-collapsed #feedback-toggle {
    opacity: 1;
    transform: scale(1);
}