/* Shared header component */
.app-header {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-header-grad-2)
  );
  color: #ffffff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.header-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.header-text h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.header-subtitle {
  margin: 2px 0 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  text-align: right;
}

.user-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.user-role {
  display: block;
  font-size: 0.8rem;
  opacity: 0.85;
}

.badge-saludut {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-back {
  padding: 6px 12px;
  border-radius: 999px;
}

.btn-icon {
  margin-right: 6px;
  font-size: 0.95rem;
}

.theme-toggle {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    text-align: center;
  }

  .header-left,
  .header-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .user-info {
    text-align: center;
  }
}
