/* Ported from src/App.module.css (class prefix: app-) */
.app-appContainer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background-color);
}

.app-headerWrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-color);
  box-shadow: 0 2px 8px -2px rgba(15, 39, 74, 0.08);
}


.app-topUtilityBar {
  background: #09162a;
  color: #cbd5e1;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.app-utilityLeft {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-federationTag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}

.app-tagIcon {
  color: var(--accent-gold);
}

.app-handleBadge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
  font-family: monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(245, 158, 11, 0.3);
  white-space: nowrap;
}

.app-founderTag {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .app-founderTag {
    display: none;
  }
}

.app-utilityRight {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-syncStatusPill {
  display: flex;
  align-items: center;
}

.app-statusOnline {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #34d399;
  font-weight: 600;
}

.app-statusOffline {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fbbf24;
  font-weight: 600;
}

.app-seasonTag {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 500;
}


.app-navbar {
  background: var(--surface-color);
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.app-brandContainer {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.app-brandContainer:hover {
  text-decoration: none;
}

.app-crestBadge {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.app-brandLogo,
.app-footerLogoImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.app-footerLogoWrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-footerLogoImage {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.app-brandMeta {
  display: flex;
  flex-direction: column;
}

.app-brandTitleRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-brandTitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0a192f;
  letter-spacing: -0.02em;
}

.app-affiliatePill {
  background: #f1f5f9;
  color: #1e3a8a;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #bfdbfe;
  letter-spacing: 0.05em;
}

.app-brandSubtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.app-navActions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-navMenu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-navItem {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.app-navItem:hover {
  background: var(--surface-muted);
  color: var(--primary-color);
  text-decoration: none;
}

.app-navItemPrimary {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-color);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(29, 78, 216, 0.2);
  transition: all 0.15s ease;
}

.app-navItemPrimary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(29, 78, 216, 0.25);
  text-decoration: none;
}

.app-adminProfilePill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.85rem;
}

.app-adminRoleDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-color);
}

.app-adminLabel {
  color: var(--text-primary);
  font-weight: 600;
}

.app-signOutBtn {
  background: none;
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 4px;
}

.app-signOutBtn:hover {
  color: var(--error-color);
  background: #fee2e2;
}

.app-loginBtn {
  background: var(--primary-color);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.app-loginBtn:hover {
  background: var(--primary-hover);
  color: #ffffff;
  text-decoration: none;
}

.app-mainContent {
  flex: 1;
  padding: 28px 32px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.app-publicFormPageContainer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
}

.app-publicFormMain {
  flex: 1;
  width: 100%;
  padding: 24px 16px 48px;
  display: flex;
  justify-content: center;
}

.app-appLoadingContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  gap: 16px;
  color: var(--text-secondary);
  font-weight: 600;
}

.app-loadingSpinner {
  font-size: 3rem;
  animation: app-bounce 1s infinite alternate ease-in-out;
}

@keyframes app-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-16px); }
}

.app-footer {
  background: #0a192f;
  color: #94a3b8;
  padding: 28px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  margin-top: auto;
}

.app-footerContent {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.app-footerBrand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-footerLogo {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

.app-footerMeta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .app-topUtilityBar {
    padding: 6px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .app-utilityLeft,
  .app-utilityRight {
    width: 100%;
    flex-wrap: wrap;
  }
  .app-federationTag,
  .app-handleBadge,
  .app-founderTag,
  .app-seasonTag {
    white-space: normal;
    line-height: 1.4;
  }
  .app-navbar {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .app-brandContainer {
    align-items: flex-start;
    min-width: 0;
    width: 100%;
  }
  .app-brandMeta {
    min-width: 0;
    flex: 1;
  }
  .app-brandTitleRow {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .app-brandTitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    line-height: 1.2;
  }
  .app-affiliatePill {
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }
  .app-brandSubtitle {
    font-size: 0.72rem;
    line-height: 1.4;
  }
  .app-navActions {
    width: 100%;
    justify-content: stretch;
  }
  .app-navMenu {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .app-navItem {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 110px;
  }
  .app-adminProfilePill {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .app-adminLabel {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app-mainContent {
    padding: 16px;
  }
  .app-footer {
    padding: 20px 16px;
  }
  .app-footerContent {
    flex-direction: column;
    align-items: flex-start;
  }
  .app-footerMeta {
    flex-wrap: wrap;
    gap: 4px 8px;
  }
}
