/* Layout-specific components */

.brand-logo-wrap {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  max-height: 32px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(6, 12, 40, 0.35));
}

.hover-scale {
  transition: transform 180ms ease;
}

.hover-scale:hover {
  transform: scale(1.03);
}

.nav-link-modern {
  position: relative;
  border-radius: 10px;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-link-modern::after {
  content: "";
  position: absolute;
  inset-inline-start: 12px;
  inset-inline-end: 12px;
  bottom: 6px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: transform 200ms ease;
}

.nav-link-modern:hover::after,
.nav-link-modern:focus-visible::after {
  transform: scaleX(1);
}

.user-info-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--primary), #3bb6ff);
  color: #fff;
}

.user-name {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.user-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.role-admin {
  color: #ffd7d9;
  background: rgba(220, 53, 69, 0.25);
  border: 1px solid rgba(220, 53, 69, 0.35);
}

.role-user {
  color: #d7ecff;
  background: rgba(38, 149, 255, 0.25);
  border: 1px solid rgba(38, 149, 255, 0.35);
}

.btn-modern {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.footer-logo {
  width: auto;
  height: 28px;
  object-fit: contain;
}

.footer-subtitle {
  font-size: 0.75rem;
}

.footer-badge {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.8rem;
    background: rgba(7, 12, 35, 0.95);
  }

  .btn-modern {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .brand-logo {
    max-height: 26px;
  }
}
