/* ── Sidebar Navigation ── */
.fd-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.fd-sidebar {
  width: 220px;
  background: linear-gradient(180deg, #0b1527, #0a1220);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.fd-sidebar-brand {
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fd-sidebar-brand .fd-brand__title {
  font-size: 15px;
  font-weight: 700;
  color: #e8a44a;
  line-height: 1.2;
}
.fd-sidebar-brand .fd-brand__title span {
  color: #f1f5f9;
}
.fd-sidebar-brand .fd-brand__sub {
  font-size: 10px;
  color: #475569;
  margin-top: 2px;
}

.fd-sidebar-user {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fd-sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(232,164,74,0.15);
  color: #e8a44a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.fd-sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.fd-sidebar-user-name {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fd-sidebar-user-role {
  font-size: 10px;
  color: #475569;
}

.fd-sidebar-section {
  padding: 14px 18px 6px;
  font-size: 9px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fd-sidebar-nav {
  list-style: none;
  padding: 0 10px;
  margin: 0;
  flex: 1;
}
.fd-sidebar-nav li {
  margin-bottom: 2px;
}
.fd-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.fd-sidebar-nav a:hover {
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
}
.fd-sidebar-nav a.active {
  background: rgba(59,130,246,0.12);
  color: #60a5fa;
  font-weight: 600;
}
.fd-sidebar-nav .nav-icon {
  width: 20px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}
.fd-sidebar-nav a.active .nav-icon {
  opacity: 1;
}

.fd-sidebar-bottom {
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}
.fd-sidebar-date {
  font-size: 10px;
  color: #475569;
  text-align: center;
  margin-bottom: 8px;
}
.fd-sidebar-logout {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(220,60,60,0.2);
  background: rgba(220,60,60,0.08);
  color: #ef4444;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}
.fd-sidebar-logout:hover {
  background: rgba(220,60,60,0.18);
}

.fd-main-content {
  flex: 1;
  margin-left: 220px;
  min-height: 100vh;
  width: calc(100% - 220px);
}

/* Mobile sidebar toggle */
.fd-sidebar-toggle {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(10,22,40,0.95);
  color: #e2e8f0;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.fd-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

@media (max-width: 768px) {
  .fd-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .fd-sidebar.open {
    transform: translateX(0);
  }
  .fd-sidebar-toggle {
    display: flex;
  }
  .fd-sidebar-overlay.open {
    display: block;
  }
  .fd-main-content {
    margin-left: 0;
    width: 100%;
    padding-top: 50px;
  }
}
