/* ==========================================================================
   STYLES GÉNÉRAUX DU PANNEAU DE MODÉRATION
   ========================================================================== */

/* Variables de couleur (issues de votre style.css) */
:root {
    --main-purple: #6f42c1;
    --dark-purple: #4a2b8e;
}

body {
    background-color: #eef2f7; /* Un fond neutre et clair */
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

/* Conteneur principal pour toutes les pages de modération */
#moderation-panel,
.container {
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px; /* Assez large pour les tableaux */
    margin: 40px auto;
    box-sizing: border-box;
}

/* En-tête des pages */
.mod-header {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mod-header h1 {
    color: var(--dark-purple);
    margin: 0;
    font-size: 1.8em;
}

.back-link {
    color: var(--main-purple);
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Styles pour les tableaux (utilisés par crashlogs, auditlogs, bugtracker) */
.table-container,
.logs-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

thead th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
}

tbody tr:hover {
    background-color: #f1f3f5;
}

/* ==========================================================================
   STYLES SPÉCIFIQUES POUR BUGTRACKER.HTML
   ========================================================================== */

#bug-reports-table .description-col {
    width: 40%; /* Donne plus de place à la description */
}

.description-cell .description-content {
    max-height: 120px;
    overflow-y: auto;
    white-space: pre-wrap; /* Respecte les sauts de ligne */
    word-break: break-word; /* Coupe les mots trop longs */
}

.category-cell {
    text-transform: capitalize; /* "bug_graphique" -> "Bug graphique" */
}

.status-cell {
    font-weight: bold;
}

/* Couleurs pour les statuts des rapports */
tr.status-nouveau {
    background-color: #e7f3ff; /* Bleu clair */
}

tr.status-en-cours {
    background-color: #fff8e1; /* Jaune clair */
}

tr.status-résolu {
    background-color: #e8f5e9; /* Vert clair */
}

tr.status-rejeté {
    background-color: #fdecea; /* Rouge clair */
    color: #777;
    text-decoration: line-through;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow: visible;
}
