:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;

  --accent:#0b5cff;
  --accent2:#0848c9;
  --soft:#eaf0ff;

  --radius:16px;
  --radius2:20px;

  --shadow:0 18px 50px rgba(15, 23, 42, .10);
  --shadow-sm:0 10px 25px rgba(15, 23, 42, .08);

  --max:1180px;

  --topbarH:64px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; text-decoration:none; }
button, input{ font:inherit; }
button{ cursor:pointer; }

.hidden{ display:none !important; }

/* =========================
   GLOBAL TOPBAR (FULL WIDTH)
   ========================= */
.globalTopbar{
  position:sticky;
  top:0;
  z-index:100;
  height: var(--topbarH);
  display:flex;
  align-items:center;

  background: rgba(255,255,255,.90);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.globalTopbar__inner{
  width:100%;
  max-width: var(--max);
  margin:0 auto;
  padding:0 20px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.globalTopbar__left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.globalTopbar__logo{
  height:30px;
  width:auto;
}

.globalTopbar__title{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  min-width:0;
}

.globalTopbar__product{
  font-weight:950;
  letter-spacing:.2px;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.globalTopbar__page{
  margin-top:2px;
  font-size:12px;
  color: var(--muted);
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.globalTopbar__right{
  display:flex;
  align-items:center;
  gap:14px;
}

/* =========================
   APP LAYOUT (SIDEBAR + MAIN)
   ========================= */
.layout{
  min-height: calc(100vh - var(--topbarH));
  display:grid;
  grid-template-columns: 280px 1fr;
}

/* ===== Sidebar ===== */
.sidebar{
  position:sticky;
  top: var(--topbarH);
  height: calc(100vh - var(--topbarH));
  overflow:auto;

  padding:18px 14px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-right:1px solid rgba(229,231,235,.85);
}

.sidebar__brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(229,231,235,.9);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
}

.sidebar__brand img{
  height:30px;
  width:auto;
}

.sidebar__brand span{
  font-weight:950;
  letter-spacing:.2px;
  font-size:14px;
}

.sidebar__nav{
  margin-top:14px;
  display:grid;
  gap:6px;
}

.nav__item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  color:#334155;
  font-weight:800;
  font-size:13px;
  border:1px solid transparent;
  transition:.15s ease;
}

.nav__item:hover{
  background: rgba(11,92,255,.06);
  border-color: rgba(11,92,255,.12);
}

.nav__item.is-active{
  background: var(--soft);
  border-color: rgba(11,92,255,.18);
  color: var(--accent);
}

.nav__item.is-active::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(11,92,255,.10);
}

/* ===== Main Content ===== */
.mainContent{
  min-width:0;
  padding:24px;
}

/* =========================
   BUTTONS / SMALL UI
   ========================= */
.btn{
  border:1px solid rgba(229,231,235,.9);
  background:#fff;
  color: var(--text);
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
  font-size:13px;
  transition:.15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}

.btn-small{
  padding:8px 10px;
  font-size:12px;
  border-radius:10px;
}

/* ===== Profile ===== */
.profile{
  display:flex;
  align-items:center;
  gap:10px;
  padding-left:6px;
}

#userEmail{
  font-size:12px;
  color: var(--muted);
  max-width: 240px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================
   NOTIFICATIONS
   ========================= */
.notif{
  position:relative;
}

.notif__btn{
  border:1px solid rgba(229,231,235,.9);
  background:#fff;
  border-radius:12px;
  padding:8px 10px;
  font-size:16px;
  line-height:1;
  transition:.15s ease;
}

.notif__btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}

.notif__badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:950;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
  border:2px solid var(--bg);
}

.notif__dropdown{
  position:absolute;
  right:0;
  top:44px;
  width:320px;
  background: rgba(255,255,255,.95);
  border:1px solid rgba(229,231,235,.92);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.notif__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 12px;
  border-bottom:1px solid rgba(229,231,235,.92);
  font-size:12px;
  font-weight:950;
  color:#334155;
}

.notif__header button{
  border:0;
  background:transparent;
  color: var(--accent);
  font-weight:900;
  font-size:12px;
  cursor:pointer;
}

.notif__list{
  padding:8px;
  display:grid;
  gap:6px;
}

.notif__item{
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(229,231,235,.92);
  background:#fff;
  font-size:12px;
  color: var(--text);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }

  .sidebar{
    position:relative;
    top:0;
    height:auto;
    border-right:0;
    border-bottom:1px solid rgba(229,231,235,.85);
  }

  .mainContent{
    padding:16px;
  }

  #userEmail{
    max-width: 160px;
  }
}

