/**
 * Alamat File    : /public_html/css/sidebar.css
 * Fungsi Tunggal : Stylesheet khusus layout cangkang aplikasi (Sidebar Laptop 260px,
 *                  Header operasional, Drawer Android, dan Bottom Navigation Bar Android <=56px).
 */

.sun3-shell {
  min-height: 100vh;
  display: flex;
  background: var(--bg-page);
}

.sun3-sidebar {
  width: 264px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
}

.sun3-sidebar-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sun3-sidebar-user {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
}

.sun3-nav-group {
  padding: 12px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sun3-nav-section-label {
  padding: 10px 10px 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sun3-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  width: 100%;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.sun3-nav-item:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.sun3-nav-item.active {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold-accent);
  font-weight: 700;
}

.sun3-nav-group-wrap {
  margin-top: 6px;
  border-top: 1px solid var(--border-hairline);
  padding-top: 6px;
}

.sun3-nav-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.sun3-nav-group-btn:hover,
.sun3-nav-group-btn.has-active {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.sun3-nav-chevron {
  font-size: 11px;
  transition: transform 0.18s ease;
  color: var(--gold-accent);
}

.sun3-nav-group-btn[aria-expanded='false'] .sun3-nav-chevron {
  transform: rotate(-90deg);
}

.sun3-nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 4px 6px;
}

.sun3-nav-submenu.collapsed {
  display: none;
}

.sun3-nav-subitem {
  min-height: 38px;
  padding: 6px 10px;
  font-size: 13px;
}

.sun3-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sun3-workspace-header {
  height: 60px;
  padding: 0 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.sun3-workspace-body {
  padding: 24px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Android Mobile Bottom Nav <= 56px */
.sun3-mobile-bottom-nav {
  display: none;
}

.sun3-mobile-menu-btn {
  display: none;
}

@media (max-width: 960px) {
  .sun3-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    transition: left 0.2s ease;
    box-shadow: 16px 0 32px rgba(0, 0, 0, 0.35);
  }

  .sun3-sidebar.open {
    left: 0;
  }

  .sun3-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 15, 0.65);
    z-index: 45;
  }

  .sun3-mobile-menu-btn {
    display: inline-flex;
  }

  .sun3-workspace-header {
    padding: 0 14px;
  }

  .sun3-workspace-body {
    padding: 14px 14px 74px;
  }

  .sun3-mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-hairline);
    z-index: 40;
  }

  .sun3-mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    min-height: 44px;
    padding: 4px;
  }

  .sun3-mobile-tab.active {
    color: var(--gold-accent);
  }
}
