/* app_shell.css (no CSS variables) */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1000px 600px at 20% 0%, #13254e 0%, #0b1220 60%);
  color: #e8eefc;
}

a { color: #4f8cff; text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  min-height: 100vh;
  display: flex;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: rgba(17,26,46,.92);
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.brandname {
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 18px;
}

.iconbtn {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #e8eefc;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.iconbtn:hover { background: rgba(255,255,255,.08); }

.searchwrap {
  margin: 10px 0 14px 0;
}

.searchlabel {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #a8b3d6;
  margin-bottom: 6px;
}

.searchinput {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #e8eefc;
  outline: none;
}
.searchinput:focus {
  border-color: rgba(79,140,255,.6);
  box-shadow: 0 0 0 4px rgba(79,140,255,.12);
}

.navgroup {
  margin-top: 10px;
}

.navtitle {
  font-size: 12px;
  font-weight: 800;
  color: #a8b3d6;
  margin: 14px 0 8px 0;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.navlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navitem a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #e8eefc;
  border: 1px solid transparent;
}
.navitem a:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  text-decoration: none;
}

.navitem a.active {
  background: rgba(79,140,255,.14);
  border-color: rgba(79,140,255,.35);
}

/* Main */
.main {
  flex: 1;
  min-width: 0;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #e8eefc;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.hamburger:hover { background: rgba(255,255,255,.08); }

.pagecard {
  background: rgba(17,26,46,.70);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 16px;
}

.closebtn {
    display: none;
}

/* Mobile behavior: sidebar becomes off-canvas */
@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-102%);
    transition: transform .18s ease;
    z-index: 50;
    width: 86%;
    max-width: 320px;
    height: 100vh;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .hamburger { display: inline-flex; }
  .backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 40;
  }
  .backdrop.show { display: block; }
  
  .closebtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        position: absolute;
        top: 12px;
        right: 12px;

        width: 32px;
        height: 32px;
        font-size: 18px;

        background: transparent;
        border: none;
        color: #e8eefc;
        cursor: pointer;
    }
}
