* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0c0a12;
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
    color: #eef2ff;
    line-height: 1.5;
    min-height: 100vh;
}

.staff-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 20% 30%, #1a1030 0%, #0c0a12 55%);
    z-index: -2;
}

.staff-header {
    background: rgba(12, 10, 18, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid #8b5cf6;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.staff-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.staff-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.staff-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.staff-logo i {
    font-size: 1.8rem;
    color: #8b5cf6;
}

.staff-logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
}

.staff-logo span {
    color: #a78bfa;
}

.staff-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: center;
}

.staff-links a {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.staff-links a:hover,
.staff-links a.active {
    color: #c4b5fd;
    border-bottom-color: #8b5cf6;
}

.staff-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.staff-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    border: 1px solid #2a2c35;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.staff-btn:hover {
    border-color: #8b5cf6;
    color: #c4b5fd;
}

.staff-btn-primary {
    background: #8b5cf6;
    color: #0c0a12;
    border-color: #8b5cf6;
    font-weight: 600;
}

.staff-btn-primary:hover {
    filter: brightness(1.1);
    color: #0c0a12;
}

.staff-btn-danger:hover {
    border-color: #ef4444;
    color: #fca5a5;
}

.staff-hero {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
}

.staff-hero h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.staff-hero h2 span {
    color: #a78bfa;
}

.staff-hero p {
    color: #9ca3af;
}

.staff-card {
    background: rgba(24, 20, 36, 0.75);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 20px;
    padding: 1.6rem;
    margin-bottom: 1.5rem;
}

.staff-card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #8b5cf6;
    padding-left: 1rem;
}

.staff-card-title i {
    color: #8b5cf6;
}

.staff-list {
    list-style: none;
}

.staff-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.staff-list li i {
    color: #8b5cf6;
    margin-top: 0.2rem;
    font-size: 0.75rem;
}

.staff-prose p {
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

.staff-rank-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-rank-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.staff-rank-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.staff-rank-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.staff-rank-head h3 {
    font-size: 1.1rem;
}

.staff-rank-meta {
    font-size: 0.7rem;
    color: #6b7280;
    margin-left: auto;
}

.staff-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.6rem;
}

.staff-member {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.staff-member-avatar {
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.staff-member-text {
    min-width: 0;
}

.staff-live-badge {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.staff-member small {
    display: block;
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.staff-empty {
    color: #6b7280;
    font-style: italic;
    font-size: 0.9rem;
}

.staff-functies-card {
    margin-bottom: 1.25rem;
}

.staff-functie-sectie,
.staff-functie-extra {
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.staff-functie-sectie:last-child,
.staff-functie-extra:last-child {
    border-bottom: none;
}

.staff-functie-toggle {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1rem 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #e5e7eb;
    font: inherit;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    line-height: 1.45;
}

.staff-functie-toggle:hover {
    color: #fff;
}

.staff-functie-toggle:hover .staff-functie-chevron {
    color: #c4b5fd;
}

.staff-functie-chevron {
    color: #a78bfa;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.staff-functie-toggle.open .staff-functie-chevron {
    transform: rotate(90deg);
}

.staff-functie-toggle-label {
    flex: 1;
}

.staff-functie-panel {
    display: none;
    padding: 0 0 1rem 1.35rem;
}

.staff-functie-panel.open {
    display: block;
}

.staff-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.staff-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #eef2ff;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    max-width: 100%;
}

.staff-role-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #6b7280;
}

.staff-role-chip-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 0;
}

.staff-role-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}

.staff-role-id-hint {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.68rem;
    color: #9ca3af;
    font-weight: 400;
}

.staff-role-chip-unknown .staff-role-name {
    color: #fca5a5;
}

.staff-role-chip:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.12);
}

.staff-role-chip.copied {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

.staff-functie-uitleg {
    color: #d1d5db;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    line-height: 1.5;
}

.staff-functie-vanaf-label {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: 0.65rem;
    margin-bottom: 0.35rem;
}

.staff-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0 3rem;
}

.staff-dash-card {
    background: rgba(24, 20, 36, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.staff-dash-card:hover {
    transform: translateY(-4px);
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.12);
}

.staff-dash-card i {
    font-size: 2rem;
    color: #8b5cf6;
    margin-bottom: 0.75rem;
}

.staff-dash-card h3 {
    margin-bottom: 0.35rem;
}

.staff-dash-card p {
    font-size: 0.8rem;
    color: #9ca3af;
}

.staff-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2rem;
}

.staff-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.35);
}

/* Staff dossiers */
.staff-dossiers-page { padding-bottom: 3rem; }

.staff-dossiers-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.staff-dossiers-search {
    flex: 1;
    min-width: 200px;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #eef2ff;
    font: inherit;
}

.staff-dossiers-toolbar-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.staff-dossiers-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
}

.staff-dossiers-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 1.25rem;
    align-items: start;
}

.staff-dossiers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.staff-dossiers-person {
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(24, 20, 36, 0.8);
    color: inherit;
    cursor: pointer;
    font: inherit;
    transition: 0.15s;
}

.staff-dossiers-person:hover,
.staff-dossiers-person.active {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
}

.staff-dossiers-person-name {
    display: block;
    font-weight: 600;
    color: #e9d5ff;
}

.staff-dossiers-person-disc {
    display: block;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

.staff-dossiers-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.staff-dossier-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
}

.staff-dossier-badge--warn {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
}

.staff-dossier-badge--ontslag {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.staff-dossiers-detail {
    min-height: 320px;
}

.staff-dossiers-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.staff-dossiers-detail-head h3 {
    font-size: 1.25rem;
    color: #e9d5ff;
}

.staff-btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

.staff-dossier-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.staff-dossier-entry {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border-left: 4px solid #6b7280;
    background: rgba(0, 0, 0, 0.28);
}

.staff-dossier-entry--warn { border-left-color: #eab308; }
.staff-dossier-entry--ontslag { border-left-color: #ef4444; }
.staff-dossier-entry--bericht { border-left-color: #3b82f6; }
.staff-dossier-entry--notitie { border-left-color: #6b7280; }

.staff-dossier-entry-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.staff-dossier-type {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #c4b5fd;
}

.staff-dossier-entry time {
    font-size: 0.75rem;
    color: #6b7280;
}

.staff-dossier-del {
    margin-left: auto;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
}

.staff-dossier-del:hover { color: #f87171; }

.staff-dossier-entry h4 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: #eef2ff;
}

.staff-dossier-entry p {
    white-space: pre-wrap;
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.5;
}

.staff-dossier-entry footer {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #6b7280;
}

.staff-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.staff-modal[hidden] { display: none; }

.staff-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.staff-modal-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.staff-modal-title {
    margin-bottom: 1rem;
    color: #e9d5ff;
}

.staff-form-field {
    margin-bottom: 1rem;
}

.staff-form-field label {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.35rem;
}

.staff-form-field input,
.staff-form-field select,
.staff-form-field textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #2a2c35;
    background: rgba(0, 0, 0, 0.35);
    color: #eef2ff;
    font: inherit;
}

.staff-form-field textarea { resize: vertical; min-height: 100px; }

.staff-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.staff-discord-err { color: #fca5a5; }

@media (max-width: 768px) {
    .staff-dossiers-layout {
        grid-template-columns: 1fr;
    }
    .staff-dossiers-list { max-height: 220px; }
}

@media (max-width: 768px) {
    .staff-links { justify-content: center; width: 100%; }
    .staff-nav { justify-content: center; }
}
