:root {
  --app-sidebar-width: 272px;
  --app-border: #d8dee8;
  --app-bg: #f5f7fb;
  --app-text: #172033;
  --app-muted: #667085;
  --app-accent: #0d6efd;
}

body {
  background: var(--app-bg);
  color: var(--app-text);
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  width: var(--app-sidebar-width);
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-right: 1px solid var(--app-border);
  color: var(--app-text);
}

.app-sidebar .offcanvas-body {
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 992px) {
  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: none !important;
    visibility: visible !important;
    z-index: 1030;
  }

  .app-main {
    margin-left: var(--app-sidebar-width);
  }
}

.app-main {
  min-height: 100vh;
}

.app-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--app-border);
  backdrop-filter: blur(12px);
}

.app-brand {
  font-weight: 800;
  letter-spacing: 0;
}

.app-brand-subtitle {
  color: var(--app-muted);
  font-size: .78rem;
}

.app-club-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--app-text);
}

.app-club-brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-club-brand-copy .app-brand {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-club-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.app-nav {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.app-nav-section + .app-nav-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #edf0f5;
}

.app-nav-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 6px;
  border: 0;
  background: transparent;
  color: var(--app-muted);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  text-align: left;
}

.app-nav-title:hover {
  color: #344054;
}

.app-nav-title:focus-visible {
  outline: 2px solid rgba(13, 110, 253, .25);
  outline-offset: 2px;
  border-radius: 6px;
}

.app-nav-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform .16s ease;
  opacity: .78;
  flex: 0 0 auto;
  margin-bottom: 3px;
}

.app-nav-title[aria-expanded="true"] .app-nav-chevron {
  transform: rotate(225deg);
  margin-bottom: -3px;
}

.app-nav-items {
  padding-bottom: 2px;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #344054;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
}

.app-nav-link:hover {
  background: #f2f6ff;
  color: #0b5ed7;
}

.app-nav-link.active {
  background: #eaf2ff;
  color: #0b5ed7;
  font-weight: 700;
}

.app-nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #b8c2d2;
  flex: 0 0 auto;
}

.app-nav-link.active .app-nav-dot {
  background: var(--app-accent);
}

.app-sidebar-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--app-border);
  padding: 12px;
  background: #fbfcfe;
}

.card {
  border-color: var(--app-border);
  border-radius: 8px;
}

@media (max-width: 991.98px) {
  .app-content {
    padding: 16px 12px;
  }
}

@media print {
  .app-sidebar,
  .app-topbar,
  .offcanvas-backdrop {
    display: none !important;
  }

  .app-main {
    margin-left: 0 !important;
  }

  .app-content {
    max-width: none;
    padding: 0;
  }
}
