@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --accent: #246BCE;
    --accent-dim: #1a518f;
    --bg: #0b0d10;
    --surface: #12151a;
    --surface2: #1a1e26;
    --border: rgba(255,255,255,0.07);
    --text: #f0f2f5;
    --muted: #8891a0;
    --radius: 12px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    background-image: 
        linear-gradient(rgba(36, 107, 206, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 107, 206, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    min-height: 100vh;
    color: var(--text);
}

.toolbar-frame {
    width: 100%;
    height: 70px;
    border: none;
    display: block;
    background: transparent;
}

.page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    font-family: 'Syne', sans-serif;
}

.subtitle {
    color: var(--muted);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.sync-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.sync-btn svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.sync-btn:hover {
    background: var(--accent-dim);
    transform: translateY(-2px);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.staff-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    transition: all 0.2s ease;
}

.staff-card:hover {
    border-color: rgba(36, 107, 206, 0.3);
    transform: translateY(-2px);
}

.staff-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.staff-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-identity {
    flex: 1;
    min-width: 0;
}

.staff-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Syne', sans-serif;
}

.staff-discord {
    font-size: 12px;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
}

.staff-risk {
    text-align: right;
}

.risk-label {
    font-size: 11px;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 4px;
}

.risk-score {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    font-family: 'Syne', sans-serif;
}

.risk-score.low { color: var(--accent); }
.risk-score.medium { color: #ef9f27; }
.risk-score.high { color: #e24b4a; }

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

.stat-box {
    background: var(--surface2);
    border-radius: 8px;
    padding: 12px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    font-family: 'Syne', sans-serif;
}

.stat-label {
    font-size: 11px;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
}

.staff-behaviors {
    margin-bottom: 16px;
}

.behaviors-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 10px;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
}

.behavior-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.behavior-tag {
    padding: 6px 10px;
    background: var(--surface2);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    border: 1px solid var(--border);
}

.behavior-tag.flagged {
    background: rgba(226, 75, 74, 0.15);
    color: #e24b4a;
    border-color: #e24b4a;
}

.staff-progress {
    margin-top: 12px;
}

.progress-item {
    margin-bottom: 12px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 6px;
}

.progress-bar {
    height: 6px;
    background: #2a2a2a;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-fill.green { background: var(--accent); }
.progress-fill.orange { background: #ef9f27; }
.progress-fill.red { background: #e24b4a; }

.staff-actions {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.action-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.action-btn.view {
    background: var(--surface2);
    color: var(--muted);
}

.action-btn.view:hover {
    background: #1f2430;
    color: var(--text);
}

.action-btn.alert {
    background: var(--surface2);
    color: var(--muted);
}

.action-btn.alert:hover {
    background: rgba(226, 75, 74, 0.15);
    color: #e24b4a;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    stroke: #444;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: #888;
    margin-bottom: 0.5rem;
    font-family: 'Syne', sans-serif;
}

.empty-state p {
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
