/* Header / Footer — migrated from AppHeader.vue & AppFooter.vue */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #212121;
  font-weight: 600;
  flex-shrink: 0;
}

.brand:hover {
  color: #212121;
}

.brand-logo {
  display: block;
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  font-size: 15px;
  white-space: nowrap;
  color: #2c2c2c;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 16px;
  border-radius: 0;
  color: #727272;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 6px;
  background: var(--color-primary);
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: transparent;
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: translateX(0);
}

.header-actions,
.header .actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.header-actions .btn-ghost.btn-sm,
.header .actions .btn-ghost.btn-sm {
  color: #727272;
  border-color: #e2e8f0;
}

.header-actions .btn-ghost.btn-sm:hover,
.header .actions .btn-ghost.btn-sm:hover {
  color: var(--color-primary);
  border-color: rgba(17, 127, 255, 0.35);
}

.user-menu {
  position: relative;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #212121;
  font-size: 14px;
  cursor: pointer;
}

.user-chip:hover,
.user-chip.open {
  border-color: rgba(17, 127, 255, 0.35);
  color: var(--color-primary);
}

.chevron {
  font-size: 10px;
  opacity: 0.8;
  transition: transform 0.15s;
}

.user-chip.open .chevron {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  z-index: 110;
}

.user-dropdown[hidden] {
  display: none;
}

.dropdown-label {
  padding: 8px 12px 6px;
  font-size: 12px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4px;
}

.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.dropdown-item.logout {
  color: #dc2626;
}

.dropdown-item.logout:hover {
  background: #fef2f2;
  color: #dc2626;
}

.footer {
  background: #212c52;
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0 32px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer strong {
  color: #fff;
  font-size: 16px;
}

.footer p {
  font-size: 13px;
  margin-top: 4px;
}

.copy {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

.copy a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.copy a:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

.copy-sep {
  margin: 0 8px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .brand-text,
  .nav {
    display: none;
  }
}
