/**
 * Feedback Admin - Liste et gestion des feedbacks
 */

/* ===== TABLE CONTAINER ===== */
.feedback-table-container {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.feedback-table {
    width: 100%;
    border-collapse: collapse;
}

.feedback-table thead {
    background: linear-gradient(135deg, rgba(12, 129, 228, 0.05) 0%, rgba(58, 184, 232, 0.05) 100%);
}

.feedback-table th {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(12, 129, 228, 0.1);
}

.feedback-table tbody tr {
    border-bottom: 1px solid var(--color-gray);
    transition: background var(--transition-fast);
}

.feedback-table tbody tr:last-child {
    border-bottom: none;
}

.feedback-table tbody tr:hover {
    background: rgba(12, 129, 228, 0.02);
}

.feedback-table td {
    padding: var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--color-black);
    vertical-align: top;
}

/* ===== BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}

.status-badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge--rewarded {
    background: #d1fae5;
    color: #065f46;
}

.status-badge--rejected {
    background: #fee2e2;
    color: #991b1b;
}

.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}

.category-badge--bug {
    background: #fee2e2;
    color: #991b1b;
}

.category-badge--improvement {
    background: #dbeafe;
    color: #1e40af;
}

.category-badge--suggestion {
    background: #fef3c7;
    color: #92400e;
}

.category-badge--other {
    background: #e5e7eb;
    color: #374151;
}

/* ===== COLONNE FEEDBACK (titre + message) ===== */
.feedback-content {
    max-width: 600px;
}

.feedback-title-wrapper {
    margin-bottom: var(--spacing-sm);
}

.feedback-title-text {
    color: var(--color-black);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    display: block;
}

.feedback-message-full {
    color: var(--color-text-medium);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    word-wrap: break-word;
    margin-bottom: var(--spacing-sm);
}

.feedback-page-url {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-gray);
}

.feedback-page-url svg {
    flex-shrink: 0;
    color: var(--color-text-light);
}

.feedback-page-url a {
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    text-decoration: none;
    word-break: break-all;
    transition: color var(--transition-fast);
}

.feedback-page-url a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ===== AUTRES COLONNES ===== */
.feedback-user {
    color: var(--color-text-medium);
}

.feedback-date {
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
}

.credits-value {
    color: var(--color-success);
    font-weight: var(--font-weight-semibold);
}

.no-credits {
    color: var(--color-gray-dark);
}

/* ===== ACTIONS RAPIDES ===== */
.action-buttons-group {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.action-form-validate,
.action-form-reject {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
    margin: 0;
}

.credits-input {
    width: 80px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-align: center;
    transition: all var(--transition-fast);
}

.credits-input:focus {
    outline: none;
    border-color: var(--color-success);
    box-shadow: 0 0 0 3px rgba(48, 147, 68, 0.1);
}

.btn-action-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-white);
}

.btn-action-main svg {
    width: 20px;
    height: 20px;
}

.btn-action-main--success {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-light) 100%);
}

.btn-action-main--success:hover {
    box-shadow: 0 4px 12px rgba(48, 147, 68, 0.3);
    transform: translateY(-2px);
}

.btn-action-main--danger {
    background: linear-gradient(135deg, var(--color-error) 0%, #f87171 100%);
}

.btn-action-main--danger:hover {
    box-shadow: 0 4px 12px rgba(209, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Statut pour feedbacks déjà traités */
.action-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--border-radius-md);
}

.action-status svg {
    width: 20px;
    height: 20px;
}

.action-status--success {
    background: rgba(48, 147, 68, 0.1);
    color: var(--color-success);
}

.action-status--danger {
    background: rgba(209, 0, 0, 0.1);
    color: var(--color-error);
}

/* ===== STAT CARDS ===== */
.stat-card--danger .stat-card__content {
    color: #d10000;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .feedback-table-container {
        overflow-x: auto;
    }

    .feedback-table {
        min-width: 1100px;
    }

    .feedback-content {
        max-width: 500px;
    }
}
