/* ===== Header, Navigation & Footer ===== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10001;
}

header .elems {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px 12px;
  gap: 15px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.header-title {
  margin: 0 !important;
  font-size: 24px !important;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-item {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  white-space: nowrap;
}

.user-chip-label {
  opacity: 0.85;
  font-weight: 600;
}

.logoutBtn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logoutBtn:hover {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.logoutBtn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Logo & Icons */
.svg-container {
  width: 50px;
  height: 50px;
  cursor: pointer;
  margin: 0 12px;
}

.icon-solid { fill: #fff; opacity: 1; transition: opacity 0.3s ease; }
.icon-gradient { fill: url(#hoverGradient); opacity: 0; transition: opacity 0.3s ease; }

.svg-container:hover .icon-solid { opacity: 0; }
.svg-container:hover .icon-gradient { opacity: 1; }

/* Footer */
.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  padding: 10px 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Responsive Header */
@media (max-width: 768px) {
  header .elems { flex-direction: column; gap: 10px; }
  .header-left { width: 100%; justify-content: center; }
  .header-nav { width: 100%; justify-content: center; margin-top: 5px; }
  .header-title { display: none; }
  .header-right { width: 100%; justify-content: center; }
}
