/* app/assets/stylesheets/navbar.css */

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0d1117;
  color: #e6edf3;
}

.admin-wrapper {
  display: flex;
  height: 100vh;
  width: 100vw;
  background: #0d1117;
}

/* ── Sidebar ──────────────────────────────────── */
.water-nav {
  width: 260px;
  height: 100%;
  background: #161b22;
  border-right: 1px solid #21262d;
  display: flex;
  flex-direction: column;
  z-index: 10;
  flex-shrink: 0;
  overflow-y: auto;
}

/* ── Brand ────────────────────────────────────── */
.nav-brand {
  display: flex;
  flex-direction: column;
  padding: 24px 20px 20px;
  border-bottom: 1px solid #21262d;
}

.nav-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #22c55e;
  letter-spacing: 0.5px;
}

.nav-brand-sub {
  font-size: 11px;
  color: #484f58;
  font-weight: 500;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ── Navigation ───────────────────────────────── */
.bubble-container {
  display: flex;
  flex-direction: column;
  padding: 12px 12px;
  gap: 2px;
  flex: 1;
}

/* ── Group ────────────────────────────────────── */
.nav-group {
  width: 100%;
}

.nav-group-header {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  cursor: pointer;
  color: #6e7681;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
  background: transparent;
  border-radius: 8px;
  border: none;
  transition: background 0.12s ease, color 0.12s ease;
  box-sizing: border-box;
  text-align: left;
}

.nav-group-header:hover {
  background: #1c2128;
  color: #cdd9e5;
}

.nav-group-header.active {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

.nav-caret {
  font-size: 9px;
  opacity: 0.4;
  transition: transform 0.2s ease;
}

/* ── Sub-menu ─────────────────────────────────── */
.nav-group-menu {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px 8px;
}

.nav-group-menu.hidden {
  display: none;
}

.nav-sub-item {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
  color: #6e7681;
  font-weight: 500;
  font-size: 13.5px;
  background: transparent;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  box-sizing: border-box;
}

.nav-sub-item:hover {
  color: #cdd9e5;
  background: #1c2128;
}

.nav-sub-item.active {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.07);
  border-left-color: #22c55e;
  font-weight: 600;
}

/* ── Flat nav link ────────────────────────────── */
.nav-bubble {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
  color: #6e7681;
  font-weight: 600;
  font-size: 13px;
  background: transparent;
  border-radius: 8px;
  border: none;
  transition: background 0.12s ease, color 0.12s ease;
  box-sizing: border-box;
}

.nav-bubble:hover {
  background: #1c2128;
  color: #cdd9e5;
}

.nav-bubble.active {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

.bubble-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Main content ─────────────────────────────── */
.admin-content {
  flex: 1;
  padding: 36px 44px;
  overflow-y: auto;
  background: #0d1117;
}

.admin-content h1 {
  color: #cdd9e5;
  border-bottom: 1px solid #21262d;
  padding-bottom: 14px;
  margin-top: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
