/* --- Base Styles for Feedback Widget --- */
.page-feedback {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    background-color: #f6f8fa;
    max-width: 600px;
    box-sizing: border-box;
}

.theme-dark .page-feedback {
    background-color: #1e1e1e;
    border-color: #444;
}

.feedback-question {
    margin: 0 0 15px 0;
    font-weight: bold;
    font-size: 1.1em;
    color: #555;
}

.theme-dark .feedback-question {
    color: #ccc;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.feedback-vote-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.2s ease;
    width: 70px;
}

.theme-dark .feedback-vote-btn {
    background-color: #333;
    border-color: #555;
    color: #eee;
}

.feedback-vote-btn:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.theme-dark .feedback-vote-btn:hover {
    background-color: #444;
    border-color: #777;
}

.feedback-content {
    width: 100%;
    box-sizing: border-box;
    max-width: 500px;
    min-height: 80px;
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.9em;
    line-height: 1.4;
}

.theme-dark .feedback-content {
    background-color: #222;
    border-color: #555;
    color: #ddd;
}

.feedback-submit-area {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.feedback-submit-btn,
.feedback-cancel-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.feedback-submit-btn {
    background-color: #2c844d;
    color: white;
    border: 1px solid #2c844d;
}

.feedback-cancel-btn {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #555;
}

.theme-dark .feedback-cancel-btn {
    color: #ccc;
    border-color: #555;
}

.feedback-message {
    font-weight: bold;
}

.feedback-message.error {
    color: #cb2431;
}

.theme-dark .feedback-message.error {
    color: #ff8e8e;
}

.feedback-final-state p {
    font-weight: bold;
    color: #2c844d;
}

.theme-dark .feedback-final-state p {
    color: #5ddea3;
}


/* --- Mobile Responsive Refinements --- */
@media screen and (max-width: 480px) {
    .page-feedback {
        padding: 15px 10px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .feedback-vote-btn {
        width: auto;      /* Remove fixed width */
        flex-grow: 1;     /* Allow buttons to grow */
        max-width: 45%;   /* Prevent them from becoming too wide */
        padding: 8px 10px;
    }

    .feedback-submit-area {
        flex-direction: column;      /* Stack submit/cancel buttons */
        align-items: stretch;        /* Make buttons full width of their container */
    }

    .feedback-submit-btn,
    .feedback-cancel-btn {
        width: 100%;
    }
}
