/* Feedback Button */
.feedback-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.feedback-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.feedback-button:focus {
    outline: 2px solid var(--k-color-primary, #1e88e5);
    outline-offset: 2px;
}

/* Feedback Window */
.feedback-window {
    z-index: 10001;
    border: 2px solid #1976d2;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(25, 118, 210, 0.15);
}

.feedback-window .k-window-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feedback-placeholder {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Feedback Chat Panel */
.feedback-chat-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.feedback-chat-container {
    flex: 1;
    overflow: hidden;
}

.feedback-welcome {
    padding: 16px;
    text-align: center;
    color: #666;
}

.feedback-welcome p {
    margin: 0;
}

/* Thank You Message */
.thank-you-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 32px;
    text-align: center;
}

.thank-you-message .k-svg-icon {
    color: #2e7d32;
}

.thank-you-message h3 {
    margin: 16px 0 8px 0;
    color: #2e7d32;
}

.thank-you-message p {
    margin: 0 0 16px 0;
    color: #666;
}

.submission-summary {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}

.submission-summary h4 {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submission-summary p {
    margin: 0;
    font-size: 13px;
    color: #333;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* Loading State */
.panel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 32px;
}

.panel-loading p {
    margin-top: 16px;
    color: #666;
}

/* Admin Feedback List Page */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background-color: #1976d2;
    color: white;
}

.badge-secondary {
    background-color: #757575;
    color: white;
}

.badge-success {
    background-color: #388e3c;
    color: white;
}

.badge-danger {
    background-color: #d32f2f;
    color: white;
}

.badge-warning {
    background-color: #f57c00;
    color: white;
}

.badge-info {
    background-color: #0288d1;
    color: white;
}

/* Grid Container */
.grid-container {
    margin-top: 16px;
}

/* Grid Error State */
.grid-error {
    padding: 48px;
    text-align: center;
}

.grid-error p {
    margin-bottom: 16px;
    color: #d32f2f;
}

/* Feedback Detail Page */
.feedback-detail {
    max-width: 900px;
}

.detail-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    color: #333;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-field label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.detail-content {
    padding: 16px;
    border-radius: 4px;
}

.detail-content p {
    margin: 0;
    white-space: pre-wrap;
}

.detail-content pre {
    margin: 0;
    white-space: pre-wrap;
    font-size: 13px;
}

.json-display {
    background: #263238;
    color: #a5d6a7;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
}

.text-muted {
    color: #999;
}

/* Feedback Fallback Banner */
.feedback-fallback-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background-color: #fff3e0;
    border-top: 1px solid #ffe0b2;
    flex-shrink: 0;
}

.feedback-fallback-banner p {
    margin: 0;
    font-size: 13px;
    color: #e65100;
}

/* Manual Feedback Form */
.feedback-manual-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    height: 100%;
    overflow-y: auto;
}

.feedback-manual-form h4 {
    margin: 0;
    color: #333;
}

.manual-form-hint {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.feedback-manual-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feedback-manual-form .form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.manual-form-error {
    padding: 8px 12px;
    background-color: #ffebee;
    border: 1px solid #ef9a9a;
    border-radius: 4px;
    color: #c62828;
    font-size: 13px;
}

.manual-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}
