/* ECP Shared UI Components */

:root {
    --ecp-primary: #0066cc;
    --ecp-success: #28a745;
    --ecp-danger: #dc3545;
    --ecp-warning: #ffc107;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    background: var(--accent-light);
    color: var(--text-color);
}

.badge.active {
    background: var(--ecp-success);
    color: white;
}

.badge.inactive {
    background: var(--ecp-danger);
    color: white;
}

.badge.user {
    background: #007bff;
    color: white;
}

.badge.actor {
    background: #6f42c1;
    color: white;
}

.badge.device {
    background: #fd7e14;
    color: white;
}

.badge.organization {
    background: #20c997;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table th {
    background: var(--accent-light);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

table tr:hover {
    background: var(--accent-light);
}

[data-theme="dark"] table th {
    background: #2a2a2a;
}

[data-theme="dark"] table tr:hover {
    background: #2a2a2a;
}
