﻿/* ================================================
   Chicago City Roleplay — DASHBOARD CSS (CLEAN REBUILD)
   Sidebar style matching Judah's Customs reference.
   ================================================ */

/* ---- LAYOUT ---- */
.dash-body { display: flex; min-height: 100vh; background: #050508; overflow: hidden; }

/* ---- SIDEBAR ---- */
.dash-sidebar {
  width: 232px;
  flex-shrink: 0;
  background: #0b0b13;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.dash-sidebar::-webkit-scrollbar { display: none; }

/* Sidebar logo */
.dash-sidebar-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.1rem 1rem .85rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: .25rem;
  text-decoration: none;
}
.dash-sidebar-logo span {
  font-size: .88rem;
  font-weight: 700;
  color: #f0f0f8;
}

/* Sidebar user block */
.sidebar-user-block {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1rem;
  margin: .25rem .5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.sidebar-user-block:hover { background: rgba(255,255,255,0.04); }
.sidebar-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; color: #fff;
  overflow: hidden;
}
.sidebar-av img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-name { font-size: .82rem; font-weight: 600; color: #f0f0f8; display: block; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: .7rem; color: #5865f2; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; flex-shrink: 0; margin-left: auto; }

/* ---- NAV ---- */
.dash-nav { padding: .25rem .5rem; flex: 1; }

.nav-group-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #3a3d52;
  padding: .8rem .5rem .3rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .48rem .65rem;
  border-radius: 7px;
  font-size: .83rem;
  color: #6b7280;
  font-weight: 500;
  transition: all .12s;
  margin-bottom: .05rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: #d1d5db; }
.nav-item.active { background: rgba(59,130,246,0.12); color: #fff; font-weight: 600; }
.nav-item.active .nav-icon { color: #3b82f6; }
.nav-item.danger { color: #4b5563; }
.nav-item.danger:hover { color: #ef4444; background: rgba(239,68,68,0.06); }

.nav-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: #4b5563;
  transition: color .12s;
}
.nav-item:hover .nav-icon { color: #9ca3af; }

.nav-divider { height: 1px; background: rgba(255,255,255,0.05); margin: .5rem .5rem; }

/* Sidebar bottom */
.sidebar-bottom { padding: .5rem .5rem 1rem; margin-top: auto; }

/* ---- MAIN AREA ---- */
.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; overflow-y: auto; }

/* ---- TOPBAR ---- */
.dash-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: .75rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.dash-topbar-title { font-size: .9rem; font-weight: 700; color: #f0f0f8; flex: 1; }
.dash-topbar-right { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.dash-menu-toggle { display: none; background: none; border: none; color: #6b7280; font-size: 1.1rem; cursor: pointer; }

/* Command palette */
.command-palette {
  display: flex; align-items: center; gap: .6rem;
  background: #0e0e1a;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: .38rem .85rem;
  font-size: .78rem; color: #4b5563; cursor: pointer;
  transition: border-color .15s;
}
.command-palette:hover { border-color: rgba(59,130,246,0.4); color: #9ca3af; }
.command-palette kbd { background: rgba(255,255,255,0.06); border-radius: 4px; padding: .1rem .35rem; font-size: .68rem; color: #4b5563; }

/* Notif bell */
.dash-notif { position: relative; cursor: pointer; color: #4b5563; padding: .35rem; font-size: .9rem; transition: color .15s; }
.dash-notif:hover { color: #9ca3af; }
.notif-badge { position: absolute; top: 0; right: 0; background: #ef4444; color: #fff; width: 14px; height: 14px; border-radius: 50%; font-size: .58rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---- CONTENT ---- */
.dash-content { flex: 1; padding: 1.75rem 1.5rem; }
.dash-page { display: none; }
.dash-page.active { display: block; }

.dash-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.dash-page-header h1 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: #f0f0f8; }
.dash-page-sub { color: #6b7280; font-size: .82rem; margin-top: .2rem; }

/* ---- STAT CARDS ---- */
.dash-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .85rem; margin-bottom: 1.25rem; }
.dash-stat-card {
  background: #0e0e1a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  display: flex; align-items: center; gap: .85rem;
  transition: border-color .2s;
}
.dash-stat-card:hover { border-color: rgba(59,130,246,0.2); }
.dsc-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.dsc-icon.blue   { background: rgba(59,130,246,.12); }
.dsc-icon.green  { background: rgba(16,185,129,.12); }
.dsc-icon.purple { background: rgba(139,92,246,.12); }
.dsc-icon.orange { background: rgba(249,115,22,.12); }
.dsc-icon.red    { background: rgba(239,68,68,.12); }
.dsc-icon.cyan   { background: rgba(6,182,212,.12); }
.dsc-icon.yellow { background: rgba(245,158,11,.12); }
.dsc-num { display: block; font-size: 1.45rem; font-weight: 900; color: #f0f0f8; line-height: 1; }
.dsc-label { font-size: .72rem; color: #6b7280; margin-top: .2rem; }

/* ---- PANELS ---- */
.dash-panel { background: #0e0e1a; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.1rem 1.25rem; }
.panel-header { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; font-weight: 700; color: #d1d5db; margin-bottom: .9rem; padding-bottom: .7rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.panel-btn { background: none; border: 1px solid rgba(255,255,255,0.07); color: #6b7280; font-size: .72rem; padding: .2rem .6rem; border-radius: 5px; cursor: pointer; }
.panel-btn:hover { border-color: rgba(59,130,246,0.3); color: #9ca3af; }

/* ---- TWO COL ---- */
.dash-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:900px) { .dash-two-col { grid-template-columns: 1fr; } }

/* ---- SHIFT BAR ---- */
.shift-status-bar {
  display: flex; align-items: center; gap: .85rem;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 10px;
  padding: .65rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: .85rem; font-weight: 500; color: #d1d5db;
}
.shift-live-dot { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; animation: pulse 1.5s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); } 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
.btn-end-shift { margin-left: auto; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #ef4444; padding: .3rem .85rem; border-radius: 6px; font-size: .78rem; font-weight: 600; cursor: pointer; }
.btn-end-shift:hover { background: rgba(239,68,68,.18); }

/* ---- ACTIVITY FEED ---- */
.activity-feed { display: flex; flex-direction: column; }
.feed-item { display: flex; align-items: flex-start; gap: .55rem; padding: .45rem .1rem; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: .8rem; color: #6b7280; }
.feed-item:last-child { border: none; }
.feed-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: .35rem; }
.feed-dot.blue { background: #3b82f6; }
.feed-dot.green { background: #22c55e; }
.feed-dot.red { background: #ef4444; }
.feed-dot.yellow { background: #f59e0b; }
.feed-dot.purple { background: #8b5cf6; }
.feed-time { color: #374151; font-size: .72rem; margin-left: .25rem; }
.feed-empty { padding: 1.25rem; text-align: center; color: #374151; font-size: .82rem; }

/* ---- TOOLBOX ---- */
.toolbox-section { background: #0e0e1a; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.1rem 1.25rem; margin-bottom: 1.1rem; }
.toolbox-header { font-size: .78rem; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .85rem; }
.toolbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.tool-btn { padding: .55rem .85rem; border-radius: 8px; font-size: .8rem; font-weight: 600; text-align: center; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.03); color: #9ca3af; cursor: pointer; transition: all .15s; }
.tool-btn:hover { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #f0f0f8; }

/* ---- MODERATION ---- */
.mod-filters { display: flex; gap: .75rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.mod-search { max-width: 280px; }
.mod-filter-select { max-width: 180px; }
.plog-list { display: flex; flex-direction: column; gap: .65rem; }
.plog-item { background: #0e0e1a; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.1rem 1.15rem; display: flex; gap: .85rem; align-items: flex-start; transition: border-color .15s; }
.plog-item:hover { border-color: rgba(59,130,246,0.2); }
.plog-av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#3b82f6,#1d4ed8); display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.plog-av.ban  { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.plog-av.kick { background: linear-gradient(135deg,#f59e0b,#d97706); }
.plog-av.warn { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.plog-body { flex: 1; min-width: 0; }
.plog-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; flex-wrap: wrap; }
.plog-user { font-weight: 700; font-size: .88rem; color: #f0f0f8; }
.plog-tag { padding: .15rem .55rem; border-radius: 4px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.plog-tag.ban  { background: rgba(139,92,246,.15); color: #8b5cf6; }
.plog-tag.kick { background: rgba(245,158,11,.15); color: #f59e0b; }
.plog-tag.warn { background: rgba(59,130,246,.15); color: #3b82f6; }
.plog-dept-tag { font-size: .68rem; color: #374151; background: rgba(255,255,255,.04); padding: .15rem .45rem; border-radius: 4px; }
.plog-body p { font-size: .8rem; color: #6b7280; margin-bottom: .15rem; line-height: 1.55; }
.plog-meta { font-size: .72rem; color: #374151; }
.plog-del-btn { background: none; border: none; color: #374151; font-size: .85rem; padding: .2rem; cursor: pointer; border-radius: 4px; flex-shrink: 0; align-self: flex-start; }
.plog-del-btn:hover { color: #ef4444; }
.evidence-link { color: #3b82f6; font-size: .78rem; }

/* ---- LOGS TABLE ---- */
.logs-stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: .85rem; margin-bottom: 1.25rem; }
.lstat { background: #0e0e1a; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1rem; text-align: center; }
.lstat-num { display: block; font-size: 1.7rem; font-weight: 900; color: #f0f0f8; }
.lstat-label { font-size: .7rem; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; }
.logs-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.logs-table th { text-align: left; padding: .65rem .9rem; background: #080810; color: #4b5563; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid rgba(255,255,255,0.05); }
.logs-table td { padding: .75rem .9rem; border-bottom: 1px solid rgba(255,255,255,0.04); color: #d1d5db; }
.logs-table tr:last-child td { border: none; }
.logs-table tr:hover td { background: rgba(255,255,255,0.015); }
.tbl-icon-btn { background: none; border: 1px solid rgba(255,255,255,0.07); color: #4b5563; padding: .2rem .45rem; border-radius: 5px; font-size: .78rem; cursor: pointer; }
.tbl-icon-btn:hover { border-color: rgba(59,130,246,0.3); color: #9ca3af; }

/* ---- SHIFT PAGE ---- */
.shift-big-card { background: #0e0e1a; border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 2.5rem; text-align: center; margin-bottom: 1.5rem; }
.sbc-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #4b5563; margin-bottom: .6rem; }
.sbc-timer { font-size: 2.8rem; font-weight: 900; letter-spacing: -.03em; color: #3b82f6; margin-bottom: 1.25rem; font-variant-numeric: tabular-nums; }
.sbc-buttons { display: flex; gap: .75rem; justify-content: center; }
.shift-history-header { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #4b5563; margin-bottom: .65rem; }

/* ---- SESSIONS ---- */
.sessions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.session-card { background: #0e0e1a; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.25rem; transition: border-color .15s; position: relative; }
.session-card:hover { border-color: rgba(59,130,246,0.2); }
.session-card.active-session { border-color: rgba(34,197,94,0.35); }
.session-card.ended { opacity: .55; }
.session-live-badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: #22c55e; margin-bottom: .6rem; letter-spacing: .05em; }
.session-status-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; padding: .18rem .55rem; border-radius: 4px; display: inline-block; margin-bottom: .6rem; }
.session-status-badge.upcoming { background: rgba(59,130,246,.12); color: #3b82f6; }
.session-status-badge.ended    { background: rgba(255,255,255,.05); color: #374151; }
.session-card h3 { font-size: .9rem; font-weight: 700; color: #f0f0f8; margin-bottom: .6rem; }
.session-meta { display: flex; flex-direction: column; gap: .28rem; font-size: .78rem; color: #6b7280; }

/* ---- PROFILE ---- */
.profile-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; align-items: flex-start; }
.profile-avatar-card { background: #0e0e1a; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.5rem; text-align: center; margin-bottom: 1rem; }
.profile-big-av { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg,#3b82f6,#06b6d4); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; color: #fff; margin: 0 auto .65rem; border: 2px solid rgba(59,130,246,0.35); overflow: hidden; }
.profile-big-av img { width: 100%; height: 100%; object-fit: cover; }
.profile-rank-badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #3b82f6; margin-top: .4rem; }
.profile-status { font-size: .75rem; display: block; margin-top: .3rem; color: #22c55e; }
.profile-stats-card { background: #0e0e1a; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.1rem; display: flex; gap: .4rem; }
.pstat { flex: 1; text-align: center; }
.pstat-num { display: block; font-size: 1.2rem; font-weight: 900; color: #f0f0f8; }
.pstat-label { font-size: .65rem; color: #4b5563; text-transform: uppercase; letter-spacing: .05em; }
@media(max-width:768px) { .profile-layout { grid-template-columns: 1fr; } }

/* ---- LOA ---- */
.loa-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.loa-card { background: #0e0e1a; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.25rem; }
.loa-card.approved { border-color: rgba(34,197,94,0.25); }
.loa-card.denied   { border-color: rgba(239,68,68,0.25); }
.loa-badge { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; padding: .18rem .55rem; border-radius: 4px; margin-bottom: .65rem; }
.loa-badge.approved { background: rgba(34,197,94,.12);  color: #22c55e; }
.loa-badge.pending  { background: rgba(245,158,11,.12); color: #f59e0b; }
.loa-badge.denied   { background: rgba(239,68,68,.12);  color: #ef4444; }
.loa-badge.ended    { background: rgba(255,255,255,.05); color: #374151; }
.loa-card h3 { font-size: .88rem; font-weight: 700; color: #f0f0f8; margin-bottom: .25rem; }
.loa-card p  { font-size: .8rem; color: #6b7280; margin-bottom: .15rem; }
.loa-reason  { font-size: .78rem; color: #374151; margin-top: .35rem; }

/* ---- MODAL ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1.5rem; backdrop-filter: blur(4px); }
.modal-card { background: #0e0e1a; border: 1px solid rgba(59,130,246,0.2); border-radius: 16px; padding: 1.75rem; width: 100%; max-width: 480px; box-shadow: 0 30px 80px rgba(0,0,0,.6); max-height: 88vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; padding-bottom: .7rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.modal-header h2 { font-size: 1.05rem; font-weight: 800; color: #f0f0f8; }
.modal-close { background: none; border: none; color: #4b5563; font-size: .9rem; padding: .2rem .4rem; border-radius: 5px; cursor: pointer; }
.modal-close:hover { color: #f0f0f8; background: rgba(255,255,255,0.05); }
.modal-footer { display: flex; gap: .65rem; justify-content: flex-end; margin-top: 1.25rem; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,0.06); }

/* ---- COMMAND PALETTE ---- */
.cp-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 200; display: none; }
.cp-overlay.open { display: block; }
.cp-modal { position: fixed; top: 14%; left: 50%; transform: translateX(-50%); width: 90%; max-width: 520px; background: #0e0e1a; border: 1px solid rgba(59,130,246,0.25); border-radius: 14px; z-index: 201; display: none; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.6); }
.cp-modal.open { display: block; }
.cp-input { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: .9rem 1.1rem; font-size: .95rem; font-weight: 500; color: #f0f0f8; outline: none; font-family: 'Inter',sans-serif; }
.cp-results { padding: .4rem; max-height: 320px; overflow-y: auto; }
.cp-section-title { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #374151; padding: .35rem .65rem; }
.cp-item { padding: .6rem .65rem; border-radius: 7px; font-size: .83rem; color: #6b7280; cursor: pointer; transition: background .1s; }
.cp-item:hover { background: rgba(59,130,246,.1); color: #f0f0f8; }

/* ---- NOTIF PANEL ---- */
.notif-panel { position: absolute; top: 60px; right: 1rem; width: 300px; background: #0e0e1a; border: 1px solid rgba(59,130,246,0.2); border-radius: 12px; z-index: 99; box-shadow: 0 20px 40px rgba(0,0,0,.5); display: none; }
.notif-panel.open { display: block; }
.notif-header { padding: .65rem 1rem; font-size: .78rem; font-weight: 700; color: #6b7280; border-bottom: 1px solid rgba(255,255,255,0.05); }
.notif-item { display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: .8rem; color: #6b7280; cursor: pointer; }
.notif-item:hover { background: rgba(255,255,255,0.03); color: #d1d5db; }
.notif-empty { padding: 1rem; text-align: center; font-size: .8rem; color: #374151; }

/* ---- TOAST ---- */
.toast { position: fixed; bottom: 1.75rem; right: 1.75rem; background: #0e0e1a; border: 1px solid rgba(59,130,246,0.3); border-radius: 10px; padding: .75rem 1.1rem; font-size: .82rem; font-weight: 500; color: #d1d5db; z-index: 500; opacity: 0; transform: translateY(10px); transition: all .25s; pointer-events: none; max-width: 280px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(34,197,94,.35); }
.toast.warn    { border-color: rgba(245,158,11,.35); }
.toast.error   { border-color: rgba(239,68,68,.35); }

/* ---- FORM ---- */
.form-group { margin-bottom: .9rem; }
.form-group label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .35rem; color: #6b7280; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media(max-width:560px) { .form-row { grid-template-columns: 1fr; } }
.req { color: #ef4444; }

/* ---- MISC SHARED ---- */
.status-chip { display: inline-block; padding: .17rem .55rem; border-radius: 20px; font-size: .68rem; font-weight: 600; text-transform: capitalize; }
.status-chip.online  { background: rgba(34,197,94,.12);  color: #22c55e; }
.status-chip.idle    { background: rgba(245,158,11,.12); color: #f59e0b; }
.status-chip.dnd     { background: rgba(239,68,68,.12);  color: #ef4444; }
.status-chip.offline { background: rgba(255,255,255,.05); color: #374151; }
.dept-chip { display: inline-block; padding: .12rem .5rem; border-radius: 4px; font-size: .68rem; font-weight: 700; background: rgba(59,130,246,.1); color: #3b82f6; }
.nav-section-label { font-size: .63rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #3a3d52; padding: .75rem .65rem .2rem; }
.ptag { padding: .17rem .5rem; border-radius: 4px; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.ptag.warn  { background: rgba(59,130,246,.12); color: #3b82f6; }
.ptag.kick  { background: rgba(245,158,11,.12); color: #f59e0b; }
.ptag.ban   { background: rgba(139,92,246,.12); color: #8b5cf6; }
.ptag.perm  { background: rgba(239,68,68,.12);  color: #ef4444; }
.rtag { padding: .18rem .6rem; border-radius: 4px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.rtag.owner   { background: rgba(245,158,11,.12); color: #f59e0b; }
.rtag.coowner { background: rgba(139,92,246,.12); color: #8b5cf6; }
.rtag.director{ background: rgba(59,130,246,.12); color: #3b82f6; }
.rtag.senior  { background: rgba(109,40,217,.12); color: #7c3aed; }
.rtag.mod     { background: rgba(6,182,212,.12);  color: #06b6d4; }
.rtag.trial   { background: rgba(16,185,129,.12); color: #10b981; }
.guidelines-wrap { display: flex; flex-direction: column; gap: 1rem; }
.guideline-section { background: #0e0e1a; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.25rem 1.5rem; }
.guideline-section h3 { font-size: .9rem; font-weight: 700; color: #f0f0f8; margin-bottom: .75rem; }
.guideline-section ul { padding-left: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.guideline-section li { font-size: .82rem; color: #6b7280; line-height: 1.65; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.note-card { background: #0e0e1a; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.1rem; }
.note-card.blue   { border-color: rgba(59,130,246,.25); }
.note-card.green  { border-color: rgba(34,197,94,.25); }
.note-card.red    { border-color: rgba(239,68,68,.25); }
.note-card.yellow { border-color: rgba(245,158,11,.25); }
.note-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.note-card p { font-size: .82rem; color: #6b7280; line-height: 1.65; }
.ann-card { background: #0e0e1a; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.25rem; margin-bottom: .7rem; }
.ann-card.high   { border-color: rgba(239,68,68,.2); }
.ann-card.medium { border-color: rgba(245,158,11,.2); }
.ann-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .65rem; }
.ann-priority-badge { font-size: .68rem; font-weight: 700; }
.ann-card h3 { font-size: .9rem; font-weight: 700; color: #f0f0f8; margin-bottom: .4rem; }
.ann-card p  { font-size: .82rem; color: #6b7280; line-height: 1.65; margin-bottom: .3rem; }
.dept-stat-bar-wrap { flex: 1; background: #080810; border-radius: 3px; height: 5px; overflow: hidden; }
.dept-stat-bar { height: 100%; background: #3b82f6; border-radius: 3px; transition: width .3s; }
.dept-stat-row { display: flex; align-items: center; gap: .85rem; padding: .35rem 0; font-size: .8rem; color: #6b7280; }
.compact-mode .dash-stat-card { padding: .75rem .9rem; }
.compact-mode .dash-panel { padding: .75rem .9rem; }
.compact-mode .dash-content { padding: 1rem; }
@media(max-width:768px) { .dash-sidebar { display: none; position: fixed; z-index: 100; height: 100vh; } .dash-sidebar.open { display: flex; } .dash-menu-toggle { display: block; } .logs-stats-row { grid-template-columns: repeat(2,1fr); } }

/* ---- COMING SOON ---- */
.dept-coming-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 320px; text-align: center; padding: 3rem;
  background: #0b0b14; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; margin-top: 1rem;
}
.dcs-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: .4; }
.dept-coming-soon h2 { font-size: 1.1rem; font-weight: 700; color: #f9fafb; margin-bottom: .5rem; }
.dept-coming-soon p  { font-size: .875rem; color: #374151; max-width: 380px; line-height: 1.7; }

/* ================================================
   PARTNERS MANAGEMENT PANEL
   ================================================ */

.partners-mgmt-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: .5rem;
}

.partner-mgmt-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #0f0f1a;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: border-color .2s;
}

.partner-mgmt-row:hover {
  border-color: rgba(99,102,241,.35);
}

.pmr-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .03em;
}

.pmr-info {
  flex: 1;
  min-width: 0;
}

.pmr-name {
  font-size: .95rem;
  font-weight: 700;
  color: #f0f0f8;
  margin-bottom: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmr-desc {
  font-size: .8rem;
  color: #9ca3af;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .3rem;
}

.pmr-invite {
  font-size: .75rem;
  color: #6366f1;
  text-decoration: none;
  word-break: break-all;
}

.pmr-invite:hover {
  text-decoration: underline;
}

.pmr-actions {
  flex-shrink: 0;
  display: flex;
  gap: .5rem;
}
