* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { min-height: 100vh; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #f2f3f5; background: #0b0d10; overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.page { min-height: 100vh; position: relative; }
.login-panel { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(430px, calc(100% - 32px)); padding: 34px; border: 1px solid #202329; border-radius: 14px; background: #111317; box-shadow: 0 24px 70px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.025) inset; }
.login-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 15px; background: #5865f2; color: #fff; font-weight: 800; letter-spacing: .06em; box-shadow: 0 12px 30px rgba(88,101,242,.24); margin-bottom: 18px; }
.eyebrow { color: #727780; font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.login-panel h1 { margin-top: 7px; font-size: 25px; letter-spacing: -.025em; }
.login-panel input { width: 100%; margin-top: 24px; padding: 13px 14px; border: 1px solid #2a2e35; border-radius: 7px; outline: none; background: #0b0d10; color: #f2f3f5; }
.login-panel input:focus { border-color: #5865f2; box-shadow: 0 0 0 3px rgba(88,101,242,.14); }
.login-panel > button { width: 100%; margin-top: 10px; padding: 13px 16px; border: 0; border-radius: 7px; background: #5865f2; color: #fff; font-weight: 700; transition: .18s ease; }
.login-panel > button:hover { background: #4752c4; transform: translateY(-1px); }
#error { min-height: 18px; margin-top: 10px; color: #ed4245; font-size: 12px; }
.dashboard { width: min(900px, calc(100% - 32px)); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 26px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; border: 1px solid #202329; border-radius: 14px; background: #111317; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.card { min-height: 150px; padding: 24px; display: flex; align-items: center; gap: 15px; border: 1px solid #24272d; border-radius: 10px; background: #181a1f; color: #f2f3f5; text-align: left; font-size: 17px; font-weight: 700; transition: .18s ease; }
.card:hover { background: #1c1f25; border-color: #5865f2; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.card-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 9px; background: #22252b; color: #8b93f8; font-size: 18px; }
.card:last-child { grid-column: 1 / -1; }
.moderation { position: fixed; inset: 0; display: grid; grid-template-columns: 270px minmax(0,1fr); background: #0b0d10; }
.files-sidebar { min-width: 0; border-right: 1px solid #202329; background: #101216; padding: 22px 12px; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 18px; }
.sidebar-header h2 { margin-top: 3px; font-size: 20px; letter-spacing: -.02em; }
.plus-button { width: 32px; height: 32px; border: 1px solid #30343c; border-radius: 7px; background: #181a1f; color: #b9bdc6; font-size: 22px; line-height: 1; transition: .18s ease; }
.plus-button:hover { color: #fff; border-color: #5865f2; background: #202329; }
.file-list { display: grid; gap: 3px; overflow: auto; max-height: calc(100vh - 105px); }
.file-item { width: 100%; min-width: 0; padding: 10px 9px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 6px; background: transparent; color: #aeb2ba; text-align: left; transition: .15s ease; }
.file-item:hover { background: #191c21; color: #e7e9ec; }
.file-item.active { background: #24283a; color: #fff; }
.file-dot { color: #7f8792; font-size: 14px; }
.file-item.active .file-dot { color: #8b93f8; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; font-size: 13px; }
.file-count { color: #6f747d; font-size: 11px; }
.no-files { padding: 20px 9px; color: #656a73; font-size: 12px; line-height: 1.5; }
.records-area { min-width: 0; padding: 24px 28px 32px; overflow: auto; }
.records-topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.back-button { border: 0; background: transparent; color: #9499a3; font-size: 13px; transition: .15s ease; }
.back-button:hover { color: #fff; }
.search-wrap { flex: 1; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #292d34; border-radius: 8px; background: #111317; color: #737984; }
.search-wrap input { width: 100%; padding: 11px 0; border: 0; outline: 0; background: transparent; color: #f2f3f5; }
.empty-state { min-height: calc(100vh - 120px); display: grid; place-content: center; justify-items: center; text-align: center; color: #777c85; }
.empty-icon { width: 55px; height: 55px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 13px; background: #181a1f; color: #5865f2; font-size: 23px; }
.empty-state h2 { color: #dfe1e5; font-size: 18px; margin-bottom: 7px; }
.empty-state p { max-width: 420px; font-size: 13px; line-height: 1.6; }
.file-view { min-width: 0; }
.file-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.file-header h2 { margin-top: 4px; font-size: 25px; letter-spacing: -.03em; }
.create-record { padding: 10px 14px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 7px; background: #5865f2; color: #fff; font-size: 13px; font-weight: 700; transition: .18s ease; }
.create-record:hover { background: #4752c4; transform: translateY(-1px); }
.create-record span { font-size: 18px; line-height: 12px; }
.table-shell { overflow: auto; border: 1px solid #24272d; border-radius: 9px; background: #111317; }
table { width: 100%; min-width: 950px; border-collapse: collapse; table-layout: fixed; }
th { padding: 12px 13px; border-bottom: 1px solid #24272d; background: #15171b; color: #777d87; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-align: left; text-transform: uppercase; }
td { padding: 6px; border-bottom: 1px solid #1f2228; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #15171b; }
td input, td select { width: 100%; padding: 10px 9px; border: 1px solid transparent; border-radius: 5px; outline: none; background: transparent; color: #e4e6e9; font-size: 13px; }
td input::placeholder { color: #5f646d; }
td input:focus, td select:focus { border-color: #5865f2; background: #0d0f12; }
td select { color: #bfc3ca; cursor: pointer; }
td select option { background: #181a1f; color: #fff; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.68); backdrop-filter: blur(5px); }
.modal-card { width: min(430px,100%); padding: 25px; border: 1px solid #2a2e35; border-radius: 12px; background: #15171b; box-shadow: 0 25px 70px rgba(0,0,0,.5); }
.modal-card h2 { margin-top: 5px; font-size: 22px; }
.modal-card > input { width: 100%; margin-top: 20px; padding: 12px; border: 1px solid #2a2e35; border-radius: 7px; outline: none; background: #0b0d10; color: #fff; }
.modal-card > input:focus { border-color: #5865f2; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 15px; }
.modal-actions button { padding: 10px 14px; border-radius: 7px; font-size: 13px; font-weight: 700; }
.modal-actions .secondary { border: 1px solid #30343b; background: #1c1f24; color: #c7c9ce; }
.modal-actions .primary { border: 0; background: #5865f2; color: #fff; }
.modal-error { min-height: 16px; margin-top: 9px; color: #ed4245; font-size: 12px; }
[hidden] { display: none !important; }
@media (max-width: 760px) { .moderation { grid-template-columns: 205px minmax(0,1fr); } .records-area { padding: 18px; } .dashboard { grid-template-columns: 1fr; } .card:last-child { grid-column: auto; } .file-header { align-items: flex-start; flex-direction: column; } }

/* Staff Overview */
.staff-overview {
  min-height: 100vh;
  padding: 34px;
  background: #0b0d10;
}

.staff-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.staff-topbar h2 { margin: 3px 0 0; }

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

.staff-card {
  border: 1px solid #272a31;
  border-radius: 14px;
  background: #181a1f;
  color: #fff;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.staff-card:hover { transform: translateY(-2px); border-color: #5865f2; background: #1d2027; }

.staff-card-top { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:18px; }
.staff-name { font-size: 1.08rem; font-weight: 700; }
.staff-username { color:#9a9da5; margin-top:4px; font-size:.9rem; }
.staff-rank { color:#b7b9c0; font-size:.86rem; }
.staff-meta { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.staff-stat { background:#111317; border:1px solid #25282f; border-radius:10px; padding:11px 12px; }
.staff-stat-label { display:block; color:#858991; font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:5px; }
.staff-stat-value { font-weight:600; word-break:break-word; }

.standing-good { color:#57f287; }
.standing-notice { color:#faa61a; }
.standing-risk { color:#ff8a65; }
.standing-removal { color:#ed4245; }

.staff-empty { padding: 70px 24px; text-align:center; color:#8f9299; border:1px dashed #30333a; border-radius:14px; background:#111317; }
.staff-empty h3 { color:#fff; margin-bottom:8px; }

.staff-profile {
  min-height:100vh;
  padding:34px;
  background:#0b0d10;
}

.profile-card { max-width: 850px; margin: 26px auto 0; background:#181a1f; border:1px solid #272a31; border-radius:16px; padding:28px; }
.profile-heading { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; padding-bottom:22px; border-bottom:1px solid #292c33; }
.profile-heading h2 { margin:4px 0 5px; }
.profile-subtitle { color:#92959d; }
.profile-fields { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; padding:22px 0; }
.profile-field { background:#111317; border:1px solid #25282f; border-radius:10px; padding:14px; }
.profile-field span { display:block; color:#858991; font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.profile-actions { display:flex; flex-wrap:wrap; gap:12px; padding-top:20px; border-top:1px solid #292c33; }
.danger-button { background:#ed4245; color:#fff; border:0; border-radius:8px; padding:12px 16px; font:inherit; font-weight:700; cursor:pointer; }
.danger-button:hover { background:#c9363a; }

.punish-modal .modal-card { max-width: 520px; }
.punish-modal textarea { width:100%; min-height:130px; resize:vertical; margin-top:12px; }
.strike-history { margin-top:20px; }
.strike-history h3 { margin-bottom:10px; }
.strike-entry { padding:12px 14px; border:1px solid #292c33; border-radius:9px; background:#111317; margin-top:9px; }
.strike-entry strong { color:#fff; }
.strike-entry small { color:#858991; display:block; margin-top:4px; }

@media (max-width:760px) {
  .staff-overview, .staff-profile { padding:20px; }
  .profile-fields { grid-template-columns:1fr; }
  .profile-heading { flex-direction:column; }
}


/* Staff Onboarding */
.staff-onboarding { min-height:100vh; padding:34px; background:#0b0d10; overflow:auto; }
.onboarding-card { width:min(700px,100%); margin:36px auto; padding:34px; border:1px solid #272a31; border-radius:16px; background:#181a1f; box-shadow:0 24px 70px rgba(0,0,0,.25); }
.onboarding-heading { text-align:center; padding-bottom:26px; border-bottom:1px solid #292c33; }
.onboarding-heading h1 { margin:6px 0 8px; font-size:26px; letter-spacing:-.03em; }
.onboarding-heading p:last-child { color:#92959d; font-size:13px; }
.onboarding-form { display:grid; gap:18px; margin-top:26px; }
.onboarding-form label { display:grid; gap:8px; }
.onboarding-form label > span { color:#dfe1e5; font-size:13px; font-weight:700; }
.onboarding-form input, .onboarding-form select { width:100%; padding:13px 14px; border:1px solid #2a2e35; border-radius:8px; outline:none; background:#0b0d10; color:#f2f3f5; }
.onboarding-form input:focus, .onboarding-form select:focus { border-color:#5865f2; box-shadow:0 0 0 3px rgba(88,101,242,.14); }
.onboarding-form select option { background:#181a1f; color:#fff; }
.onboarding-submit { justify-content:center; margin-top:4px; }
.onboarding-success { min-height:16px; color:#57f287; font-size:12px; text-align:center; }
@media (max-width:760px) { .staff-onboarding { padding:20px; } .onboarding-card { padding:22px; margin-top:24px; } .onboarding-heading h1 { font-size:22px; } }

/* Tasks */
.tasks-page { min-height: 100vh; padding: 28px 34px 48px; overflow-y: auto; }
.tasks-toolbar { margin-top: 34px; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:26px; background:#111317; border:1px solid #272a31; border-radius:16px; }
.tasks-toolbar h1 { margin:0 0 6px; font-size:30px; }
.tasks-toolbar p { margin:0; color:#9a9da7; }
.task-filters { display:flex; gap:8px; margin:18px 0; padding:6px; width:max-content; max-width:100%; background:#111317; border:1px solid #272a31; border-radius:12px; }
.task-filter { border:0; background:transparent; color:#9a9da7; padding:9px 15px; border-radius:8px; cursor:pointer; font:inherit; font-weight:600; }
.task-filter:hover,.task-filter.active { background:#232633; color:#fff; }
.task-list { display:grid; gap:12px; }
.task-card { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:20px 22px; background:#111317; border:1px solid #272a31; border-radius:14px; transition:.18s ease; }
.task-card:hover { border-color:#3a3e49; transform:translateY(-1px); }
.task-card.overdue { border-left:3px solid #ed4245; }
.task-main { min-width:0; flex:1; }
.task-title-row { display:flex; align-items:center; gap:10px; margin-bottom:7px; }
.task-title-row h3 { margin:0; font-size:17px; color:#f2f3f5; }
.task-description { margin:0 0 12px; color:#8e929b; white-space:pre-wrap; overflow-wrap:anywhere; }
.task-priority,.task-status { display:inline-flex; align-items:center; padding:4px 8px; border-radius:6px; font-size:12px; font-weight:700; }
.task-priority { background:#272a31; color:#cfd2d8; }
.priority-high { background:rgba(237,66,69,.14); color:#ed6467; }
.priority-medium { background:rgba(250,166,26,.14); color:#f0ad45; }
.priority-low { background:rgba(87,242,135,.12); color:#69d98a; }
.task-details { display:flex; gap:9px; flex-wrap:wrap; color:#8e929b; font-size:13px; }
.task-due,.task-status { background:#1a1c21; }
.task-card.overdue .task-due { color:#ed6467; }
.task-actions { display:flex; gap:7px; flex-shrink:0; }
.task-actions button { border:1px solid #30333b; background:#181a1f; color:#c9ccd2; padding:8px 11px; border-radius:7px; cursor:pointer; font:inherit; font-size:13px; }
.task-actions button:hover { background:#24272e; color:#fff; }
.task-actions .task-complete { border-color:rgba(88,101,242,.45); color:#aeb5ff; }
.task-actions .task-delete:hover { border-color:rgba(237,66,69,.5); color:#ed6467; }
.task-modal-card { max-width:620px; }
.task-modal-label { display:block; color:#b5b8bf; font-size:13px; font-weight:600; margin-top:15px; }
.task-modal-label span { color:#777b85; font-weight:400; }
.task-modal-label input,.task-modal-label select,.task-modal-label textarea { width:100%; margin-top:7px; background:#0d0f12; border:1px solid #30333b; color:#f2f3f5; border-radius:8px; padding:11px 12px; font:inherit; outline:none; }
.task-modal-label textarea { min-height:100px; resize:vertical; }
.task-modal-label input:focus,.task-modal-label select:focus,.task-modal-label textarea:focus { border-color:#5865f2; }
.task-modal-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:760px) { .tasks-page{padding:20px 16px 36px}.tasks-toolbar{align-items:flex-start;flex-direction:column}.task-card{align-items:flex-start;flex-direction:column}.task-actions{width:100%}.task-actions button{flex:1}.task-filters{width:100%;overflow-x:auto}.task-modal-grid{grid-template-columns:1fr} }

/* Staff announcements */
.announcement-panel {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid #2b2d31;
  border-radius: 14px;
  background: #111317;
}
.announcement-header h3 { margin: 3px 0 4px; font-size: 18px; }
.announcement-subtitle { margin: 0; color: #949ba4; font-size: 13px; }
.announcement-input {
  width: 100%;
  min-height: 110px;
  margin-top: 16px;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid #303338;
  border-radius: 10px;
  outline: none;
  background: #181a1f;
  color: #f2f3f5;
  font: inherit;
}
.announcement-input:focus { border-color: #5865f2; }
.announcement-actions { display:flex; align-items:center; justify-content:flex-end; gap:14px; margin-top:12px; }
.announcement-status { margin-right:auto; color:#8f9299; font-size:13px; }

/* Staff Handbook - Notion-style editor */
.handbook-admin { min-height:100vh; padding:28px 34px 48px; overflow:auto; background:#0b0d10; }
.handbook-topbar { display:flex; align-items:center; gap:18px; }
.notion-shell { display:grid; grid-template-columns:230px 1fr; min-height:620px; margin-top:28px; border:1px solid #272a31; border-radius:14px; overflow:hidden; background:#111317; }
.notion-sidebar { background:#0f1114; border-right:1px solid #272a31; padding:14px 10px; }
.notion-sidebar-head { display:flex; align-items:center; justify-content:space-between; padding:7px 8px 12px; color:#b9bdc5; font-size:13px; }
.notion-add { width:28px; height:28px; border:0; border-radius:6px; background:transparent; color:#b9bdc5; font-size:20px; cursor:pointer; }
.notion-add:hover { background:#202329; color:#fff; }
.handbook-pages { display:grid; gap:3px; }
.handbook-page-item { width:100%; text-align:left; border:0; border-radius:6px; padding:9px 10px; background:transparent; color:#b9bdc5; cursor:pointer; font:inherit; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.handbook-page-item:hover,.handbook-page-item.active { background:#202329; color:#fff; }
.handbook-pages-empty { padding:12px 9px; color:#656a73; font-size:12px; line-height:1.5; }
.notion-editor-panel { min-width:0; display:flex; flex-direction:column; background:#111317; }
.notion-title { width:100%; padding:38px 48px 15px; border:0; outline:0; background:transparent; color:#f2f3f5; font-size:34px; font-weight:750; letter-spacing:-.04em; }
.notion-title::placeholder { color:#4e535c; }
.notion-toolbar { display:flex; flex-wrap:wrap; gap:4px; padding:10px 48px; border-top:1px solid #202329; border-bottom:1px solid #202329; background:#15171b; }
.notion-toolbar button { border:0; border-radius:6px; background:transparent; color:#aeb2ba; padding:7px 9px; cursor:pointer; font:inherit; font-size:13px; }
.notion-toolbar button:hover { background:#24272e; color:#fff; }
.notion-editor { flex:1; min-height:390px; padding:28px 48px 50px; outline:0; color:#dfe1e5; font-size:15px; line-height:1.7; }
.notion-editor:empty::before { content:'Start writing...'; color:#555a63; pointer-events:none; }
.notion-editor h1,.notion-editor h2 { color:#f2f3f5; margin:20px 0 8px; }
.notion-editor p { margin:8px 0; }
.notion-editor ul,.notion-editor ol { padding-left:25px; }
.handbook-dropdown { margin:14px 0; padding:10px 14px; border:1px solid #292c33; border-radius:8px; background:#181a1f; }
.handbook-dropdown summary { cursor:pointer; font-weight:700; color:#f2f3f5; }
.handbook-dropdown > div { padding:12px 2px 4px; color:#b5bac1; }
.notion-footer { display:flex; align-items:center; justify-content:flex-end; gap:14px; padding:12px 48px; border-top:1px solid #202329; color:#70757e; font-size:12px; }
@media(max-width:760px){ .handbook-admin{padding:20px 16px 36px}.notion-shell{grid-template-columns:1fr}.notion-sidebar{border-right:0;border-bottom:1px solid #272a31}.notion-title,.notion-toolbar,.notion-editor{padding-left:20px;padding-right:20px}.notion-footer{padding-left:20px;padding-right:20px} }
