/**
 * RMGCaptcha Math Guard — Logs Styles
 * Clean tables for log display.
 */

.rmgc-logs-page {
    margin: 20px 20px 20px 0;
    padding: 20px;
}

.rmgc-logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.rmgc-logs-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--rmgc-gray-900);
}

.rmgc-logs-stats {
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
}
.rmgc-log-stat {
    background: var(--rmgc-white);
    padding: 16px 20px;
    border-radius: var(--rmgc-radius);
    border: 1px solid var(--rmgc-gray-200);
    box-shadow: var(--rmgc-shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 200px;
}
.rmgc-log-stat .stat-icon {
    font-size: 24px;
}
.rmgc-log-stat .stat-label {
    font-size: 13px;
    color: var(--rmgc-gray-500);
    font-weight: 500;
}
.rmgc-log-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--rmgc-gray-900);
}

/* ── Table ──────────────────────────────────────────── */
.rmgc-table-container {
    background: var(--rmgc-white);
    border-radius: var(--rmgc-radius);
    border: 1px solid var(--rmgc-gray-200);
    box-shadow: var(--rmgc-shadow-sm);
    overflow: hidden;
}

.rmgc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.rmgc-table th,
.rmgc-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--rmgc-gray-200);
    font-size: 13px;
}
.rmgc-table th {
    background: var(--rmgc-gray-50);
    font-weight: 600;
    color: var(--rmgc-gray-700);
}
.rmgc-table tr:last-child td {
    border-bottom: none;
}
.rmgc-table tbody tr:hover {
    background: var(--rmgc-gray-50);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.user-name {
    font-weight: 600;
    color: var(--rmgc-gray-900);
    font-size: 13px;
}
.user-info {
    display: flex;
    flex-direction: column;
}

.ip-badge {
    background: var(--rmgc-gray-100);
    padding: 4px 8px;
    border-radius: var(--rmgc-radius-sm);
    font-family: monospace;
    font-size: 12px;
    color: var(--rmgc-gray-700);
}

.time-cell {
    color: var(--rmgc-gray-500);
}

.status-badge.failed {
    background: var(--rmgc-danger-light);
    color: var(--rmgc-danger);
    padding: 4px 8px;
    border-radius: var(--rmgc-radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ── Empty State ────────────────────────────────────── */
.rmgc-empty-state {
    text-align: center;
    padding: 40px 20px;
}
.rmgc-empty-state .empty-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--rmgc-gray-400);
}
.rmgc-empty-state .empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--rmgc-gray-900);
    margin-bottom: 6px;
}
.rmgc-empty-state .empty-description {
    font-size: 13px;
    color: var(--rmgc-gray-500);
}