/* ============ SENTINEL UI ============ */
/* Pattern identique à nugget_ft.css — variables CSS du thème agent */

.sentinel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.sentinel-card {
    background: var(--bg);
    border: 1px solid #ffffff12;
    border-radius: 10px;
    padding: 14px;
}

.sentinel-card.full { grid-column: span 2; }

.sentinel-card-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sentinel-card-value {
    font-size: 22px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.sentinel-card-value.ok     { color: var(--success); }
.sentinel-card-value.warn   { color: var(--warning); }
.sentinel-card-value.alert  { color: var(--primary); }

/* ── Tabs ── */
.sentinel-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid #ffffff12;
    padding-bottom: 8px;
}

.sentinel-tab {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-dim);
    background: transparent;
    border: none;
    transition: all 0.15s;
}

.sentinel-tab:hover    { color: var(--text); background: #ffffff0a; }
.sentinel-tab.active   { color: var(--text); background: var(--surface); }

/* ── Snapshot ── */
.sentinel-snapshot {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ffffff12;
    background: #000;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.sentinel-snapshot-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    border: 1px solid #ffffff12;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 13px;
}

/* ── Events list ── */
.sentinel-event-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
}

.sentinel-event {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg);
    border: 1px solid #ffffff0a;
    border-radius: 8px;
    font-size: 12px;
}

.sentinel-event-icon  { font-size: 16px; flex-shrink: 0; }
.sentinel-event-info  { flex: 1; min-width: 0; }
.sentinel-event-label { color: var(--text); font-weight: 500; }
.sentinel-event-meta  { color: var(--text-dim); margin-top: 2px; }
.sentinel-event-time  { color: var(--text-dim); font-size: 11px; white-space: nowrap; }

/* ── Persons list ── */
.sentinel-person-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.sentinel-person {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg);
    border: 1px solid #ffffff0a;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.sentinel-person:hover { background: #ffffff08; }

.sentinel-person-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface);
    flex-shrink: 0;
    border: 1px solid #ffffff18;
}

.sentinel-person-photo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.sentinel-person-info  { flex: 1; min-width: 0; }
.sentinel-person-name  { color: var(--text); font-size: 13px; font-weight: 500; }
.sentinel-person-meta  { color: var(--text-dim); font-size: 11px; margin-top: 2px; }

.sentinel-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 99px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sentinel-badge.member   { background: #4ade8022; color: var(--success); }
.sentinel-badge.animal   { background: #fbbf2422; color: var(--warning); }
.sentinel-badge.fauna    { background: #60a5fa22; color: #60a5fa; }
.sentinel-badge.visitor  { background: #a78bfa22; color: #a78bfa; }
.sentinel-badge.forbidden { background: #ef444422; color: #ef4444; }
.sentinel-badge.unknown  { background: #ffffff12; color: var(--text-dim); }

/* ── Queue ── */
.sentinel-queue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg);
    border: 1px solid var(--warning);
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 6px;
}

/* ── Camera selector ── */
.sentinel-camera-select {
    background: var(--bg);
    border: 1px solid #ffffff18;
    border-radius: 6px;
    color: var(--text);
    padding: 4px 8px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* ── Status dot ── */
.sentinel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.sentinel-dot.ok    { background: var(--success); }
.sentinel-dot.off   { background: var(--primary); }
.sentinel-dot.warn  { background: var(--warning); }

/* ── Add person form ── */
.sentinel-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sentinel-input {
    background: var(--bg);
    border: 1px solid #ffffff18;
    border-radius: 6px;
    color: var(--text);
    padding: 8px 10px;
    font-size: 13px;
    width: 100%;
}

.sentinel-input:focus {
    outline: none;
    border-color: #ffffff30;
}

.sentinel-select {
    background: var(--bg);
    border: 1px solid #ffffff18;
    border-radius: 6px;
    color: var(--text);
    padding: 8px 10px;
    font-size: 13px;
    width: 100%;
}

.sentinel-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.sentinel-btn:hover     { opacity: 0.85; }
.sentinel-btn.primary   { background: var(--primary); color: #fff; }
.sentinel-btn.secondary { background: #ffffff12; color: var(--text); }
.sentinel-btn.danger    { background: #ef444422; color: #ef4444; border: 1px solid #ef444444; }
