#audit-log-panel {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#log-container {
    margin-top: 1rem;
    background-color: #2c3e50; /* Fond sombre pour les logs */
    color: #ecf0f1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    padding: 1rem;
    border-radius: 5px;
    height: 60vh;
    overflow-y: auto;
    border: 1px solid #34495e;
}

.log-entry {
    padding: 0.5rem 0.2rem;
    border-bottom: 1px solid #34495e;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-timestamp {
    color: #95a5a6;
    min-width: 150px;
}

.log-admin {
    color: #3498db;
    font-weight: bold;
    min-width: 120px;
}

.log-action {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    text-align: center;
    min-width: 120px;
}

.log-target {
    color: #e67e22;
    min-width: 120px;
}

.log-details {
    color: #bdc3c7;
    flex-grow: 1;
}

.log-ip {
    color: #7f8c8d;
    font-size: 0.8em;
}

/* Couleurs pour les actions */
.log-action.kick_player,
.log-action.delete_user {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.log-action.mute_player {
    background-color: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.log-action.set_user_role {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.log-action.login_success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.log-action.login_failure {
    background-color: rgba(211, 84, 0, 0.2);
    color: #d35400;
}

/* Styles for the new audit table */
.audit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: #2c3e50; /* Dark background for the table */
    color: #ecf0f1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.audit-table th,
.audit-table td {
    border: 1px solid #34495e;
    padding: 8px;
    text-align: left;
}

.audit-table thead th {
    background-color: #34495e;
    color: #ecf0f1;
    cursor: pointer; /* Indicate sortable columns */
    position: relative;
}

.audit-table tbody tr:nth-child(even) {
    background-color: #3a536b; /* Slightly lighter dark for even rows */
}

.audit-table tbody tr:hover {
    background-color: #4a698c; /* Highlight on hover */
}

.filter-row td {
    padding: 5px 8px;
    background-color: #2c3e50;
}

.filter-input {
    width: calc(100% - 10px);
    padding: 5px;
    border: 1px solid #555;
    background-color: #3a536b;
    color: #ecf0f1;
    border-radius: 3px;
}

.filter-input::placeholder {
    color: #bbb;
}

.sort-arrow {
    position: absolute;
    right: 5px;
    font-size: 0.8em;
}

/* Adjust existing log-action styles for table cells */
.audit-table .log-action {
    display: block; /* Ensure it takes full cell width */
    text-align: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}
