/* ── shell.css — Akino Systems ── */
/* ── MAIN + TOPBAR ── */
.main {
  margin-left: var(--sw); min-height: 100vh;
  display: flex; flex-direction: column;
  width: calc(100vw - var(--sw)); overflow-x: hidden;
}
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h); padding: 0 20px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}

/* Left: breadcrumb */
.tp-breadcrumb {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; flex-shrink: 0;
}
.tp-bc-root { color: var(--muted); cursor: pointer; transition: color .12s; font-weight: 500; }
.tp-bc-root:hover { color: var(--text); }
.tp-bc-sep { color: var(--dim); font-size: 11px; margin: 0 1px; }
.tp-bc-current { color: var(--text); font-weight: 500; }

/* Center: search — estilo ref: fundo neutro, borda leve, ⌘K em badge */
.tp-search {
  flex: 1; max-width: 340px; margin: 0 auto;
  position: relative; display: flex; align-items: center;
}
.tp-search-input {
  width: 100%; height: 32px;
  padding: 0 52px 0 32px;
  background: #F5F5F5; border: 1px solid #E8E8E8;
  border-radius: 7px;
  font-family: 'Geist', sans-serif; font-size: 12.5px; color: var(--text);
  outline: none; transition: border-color .15s, background .15s;
}
body.dark .tp-search-input { background: var(--s2); border-color: var(--border); }
.tp-search-input::placeholder { color: #9CA3AF; }
.tp-search-input:focus {
  background: #fff; border-color: #D1D5DB;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
body.dark .tp-search-input:focus { background: var(--s1); border-color: var(--border2); }
.tp-search-icon {
  position: absolute; left: 9px; color: #9CA3AF; pointer-events: none;
}
.tp-search-kbd {
  position: absolute; right: 8px;
  display: flex; align-items: center;
  font-size: 10px; color: #9CA3AF;
  background: #fff; border: 1px solid #E8E8E8;
  border-radius: 4px; padding: 1px 5px;
  font-family: 'Geist Mono', monospace; pointer-events: none;
  letter-spacing: .3px;
}
body.dark .tp-search-kbd { background: var(--s2); border-color: var(--border); color: var(--muted); }

/* Right: actions */
.tp-right {
  display: flex; align-items: center; gap: 5px; flex-shrink: 0; margin-left: auto;
}

/* Botão com ícone + texto (estilo "Manage" / "Membros" / "Share") */
.tp-icon-btn {
  height: 32px; border-radius: 7px;
  background: none; border: 1px solid transparent; color: #6B7280;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s; position: relative;
  padding: 0 8px; gap: 5px;
  font-family: 'Geist', sans-serif; font-size: 12.5px; font-weight: 500;
  white-space: nowrap;
}
.tp-icon-btn:hover { border-color: #E5E7EB; color: #111827; background: #F9FAFB; }
body.dark .tp-icon-btn { color: var(--muted); }
body.dark .tp-icon-btn:hover { border-color: var(--border); color: var(--text); background: var(--s2); }

/* Botão só ícone (sino) */
.tp-icon-btn.icon-only {
  width: 32px; padding: 0;
}

/* Botão com borda visível (estilo "Manage") */
.tp-btn-outline {
  height: 32px; padding: 0 12px; border-radius: 7px; gap: 6px;
  background: #fff; border: 1px solid #E5E7EB; color: #374151;
  cursor: pointer; display: inline-flex; align-items: center;
  font-family: 'Geist', sans-serif; font-size: 12.5px; font-weight: 500;
  transition: all .15s; white-space: nowrap;
}
.tp-btn-outline:hover { border-color: #D1D5DB; background: #F9FAFB; }
body.dark .tp-btn-outline { background: var(--s2); border-color: var(--border); color: var(--text); }
body.dark .tp-btn-outline:hover { border-color: var(--border2); background: var(--s3); }

/* Botão primário preto (estilo "Share") */
.tp-btn-primary {
  height: 32px; padding: 0 14px; border-radius: 7px; gap: 6px;
  background: #111827; border: 1px solid #111827; color: #fff;
  cursor: pointer; display: inline-flex; align-items: center;
  font-family: 'Geist', sans-serif; font-size: 12.5px; font-weight: 500;
  transition: all .15s; white-space: nowrap;
}
.tp-btn-primary:hover { opacity: .88; }
body.dark .tp-btn-primary { background: var(--s3); border-color: var(--border2); color: var(--text); }

.tp-divider { width: 1px; height: 16px; background: #E5E7EB; margin: 0 4px; }
body.dark .tp-divider { background: var(--border); }

.tp-profile {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 4px; border-radius: 7px;
  border: 1px solid #E5E7EB; background: #fff; cursor: pointer;
  transition: all .15s; color: #111827;
}
.tp-profile:hover { border-color: #D1D5DB; background: #F9FAFB; }
body.dark .tp-profile { background: var(--s2); border-color: var(--border); color: var(--text); }
body.dark .tp-profile:hover { border-color: var(--border2); background: var(--s3); }
/* ── NOTIFICATION BELL ── */
.notif-wrap { position: relative; }
.notif-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #111110; color: #F5F4F2;
  font-size: 10px; font-weight: 700;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg); pointer-events: none;
  animation: notifPop .2s cubic-bezier(.34,1.56,.64,1);
}
body.dark .notif-badge { background: #3A3A38; color: var(--text); }
@keyframes notifPop { from { transform: scale(0); } to { transform: scale(1); } }
.notif-dropdown {
  position: absolute; top: calc(100% + 10px); right: -8px;
  width: 320px; background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 300; overflow: hidden;
}
.notif-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.notif-hd-title { font-size: 13px; font-weight: 600; color: var(--text); }
.notif-mark-all { font-size: 11.5px; color: var(--muted); cursor: pointer; background: none; border: none; font-family: 'Geist',sans-serif; padding: 0; }
.notif-mark-all:hover { color: var(--text); }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  cursor: default; transition: background .12s; position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(99,102,241,.04); }
.notif-item:hover { background: var(--s2); }
.notif-icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.notif-icon.invite  { background: rgba(99,102,241,.12); color: #6366f1; }
.notif-icon.success { background: rgba(31,122,77,.1);   color: var(--green); }
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 12.5px; color: var(--text); line-height: 1.5; }
.notif-text strong { font-weight: 600; }
.notif-time { font-size: 11px; color: var(--muted); margin-top: 3px; }
.notif-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6366f1; flex-shrink: 0; margin-top: 5px;
}
.notif-empty { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.notif-footer { padding: 10px 16px; border-top: 1px solid var(--border); text-align: center; }
.notif-footer a { font-size: 12px; color: var(--muted); cursor: pointer; text-decoration: none; }
.notif-footer a:hover { color: var(--text); }

.tp-av {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--s3); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0;
  letter-spacing: .3px; overflow: hidden;
}
.tp-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.tp-uname { font-size: 12.5px; font-weight: 500; color: var(--text); }

/* ── DROPDOWN ── */
.dd-wrap { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--s1); border: 1px solid var(--border2);
  border-radius: var(--radius); width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 500; animation: fadeUp .2s cubic-bezier(.16,1,.3,1) both;
  overflow: hidden;
}
body.dark .dropdown { box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.dd-hd {
  padding: 14px; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 3px;
}
.dd-av {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--s3); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin-bottom: 6px; color: #fff;
  overflow: hidden;
}
.dd-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.dd-name { font-size: 13px; font-weight: 500; color: var(--text); }
.dd-email { font-size: 11.5px; color: var(--muted); }
.dd-role {
  display: inline-block; font-size: 10px; font-weight: 500;
  padding: 2px 8px; border-radius: 10px; letter-spacing: .2px; margin-top: 4px;
  background: var(--s3); color: var(--muted);
}
.dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; font-size: 13px; color: var(--text);
  background: none; border: none; width: 100%; text-align: left;
  cursor: pointer; font-family: 'Geist', sans-serif; transition: background .12s;
}
.dd-item:hover { background: var(--s2); }
.dd-item.danger { color: var(--red); }
.dd-item.danger:hover { background: var(--red-bg); }
.dd-item svg { color: var(--muted); flex-shrink: 0; }
.dd-item.danger svg { color: var(--red); }
.dd-sep { height: 1px; background: var(--border); margin: 3px 0; }
.theme-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; cursor: pointer; transition: background .12s;
}
.theme-row:hover { background: var(--s2); }
.theme-row-l { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.theme-row-l svg { color: var(--muted); }
.toggle-track {
  width: 30px; height: 17px; border-radius: 10px;
  background: var(--dim); position: relative; transition: background .2s;
}
.toggle-track.on { background: var(--ink); }
.toggle-thumb {
  position: absolute; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; top: 2px; left: 2px;
  transition: transform .2s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-track.on .toggle-thumb { transform: translateX(13px); }

/* ── CONTENT ── */
.content {
  flex: 1; padding: 28px 28px 40px; overflow-y: auto;
}
.view { display: none; }
.view.active { display: block; animation: fadeUp .4s cubic-bezier(.16,1,.3,1) both; }
.view.view-flex.active { display: flex; flex-direction: column; }

/* ── PAGE HEADER ── */
.page-hd {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; gap: 16px;
}
.page-hd-l {}
.page-title {
  font-size: 20px; font-weight: 500; color: var(--text);
  letter-spacing: -.4px; line-height: 1.2;
}
.page-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.page-hd-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border); transition: all .15s;
  white-space: nowrap; line-height: 1.4;
}
.btn-primary {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.btn-primary:hover { opacity: .85; }
.btn-ghost { background: none; color: var(--text); }
.btn-ghost:hover { background: var(--s2); border-color: var(--border2); }
.btn-sm { padding: 6px 11px; font-size: 12px; }

