/* ========================================
   APP HEADER
======================================== */

.app-header {
  width: 100%;

  background: var(--color-surface);

  border-bottom:
    1px
    solid
    var(--color-border);

  position: relative;

  z-index: 100;
}

.app-header-inner {
  width: min(1440px, calc(100% - 48px));
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: var(--space-5);

  margin: 0 auto;
}

.app-brand {
  display: inline-flex;
  align-items: center;

  height: 100%;

  text-decoration: none;
}

.app-brand-logo {
  display: block;

  width: auto;
  height: 28px;

  max-width: 150px;

  object-fit: contain;
}


/* ----------------------------------------
   Right side
---------------------------------------- */

.app-header-right {
  display: flex;
  align-items: center;

  gap: 12px;
}

.app-admin-status {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  min-height: 30px;

  padding:
    0
    10px;

  background: var(--color-success-light);

  border-radius: var(--radius-pill);

  color: var(--color-success);

  font-size: 9px;
  font-weight: 750;

  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.app-admin-status-dot {
  width: 6px;
  height: 6px;

  background: currentColor;

  border-radius: 50%;
}

.app-header-right form {
  margin: 0;
}

.app-admin-login-link,
.app-admin-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 32px;

  padding:
    0
    11px;

  background: transparent;

  border:
    1px
    solid
    var(--color-border);

  border-radius: var(--radius-xs);

  color: var(--color-text-muted);

  font: inherit;
  font-size: 9px;
  font-weight: 750;

  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.app-admin-login-link:hover,
.app-admin-logout:hover {
  background: var(--color-surface-secondary);

  color: var(--color-text);
}


/* ----------------------------------------
   Content
---------------------------------------- */

.app-content {
  min-width: 0;
}


/* ----------------------------------------
   Tablet
---------------------------------------- */

@media (max-width: 760px) {
  .app-header-inner {
    width: calc(100% - 28px);
    height: 48px;
  }

  .app-brand-logo {
    height: 24px;

    max-width: 135px;
  }

  .app-admin-status {
    display: none;
  }
}


/* ----------------------------------------
   Mobile
---------------------------------------- */

@media (max-width: 450px) {
  .app-header-inner {
    width: calc(100% - 20px);
    height: 46px;
  }

  .app-brand-logo {
    height: 22px;

    max-width: 125px;
  }

  .app-admin-login-link,
  .app-admin-logout {
    min-height: 30px;

    padding:
      0
      9px;

    font-size: 8px;
  }
}
