/* GroupMNK-Inspired Navbar and Footer Design */

/* Navbar Redesign */
.navbar {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--light-teal) 100%) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-brand img.logo {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.25rem;
  transition: all 0.3s ease;
  background: white;
}

.navbar-brand img.logo:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand-text {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.brand-text-only {
  color: white;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.navbar-brand:hover .brand-text {
  letter-spacing: 2.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.navbar-brand:hover .brand-text-only {
  letter-spacing: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

  .brand-text-only {
    font-size: 1.25rem;
    letter-spacing: 2px;
    padding: 0.4rem 1rem;
  }
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: white !important;
  background: transparent !important;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: white !important;
  color: white !important;
  transform: translateY(-1px);
}

.btn-outline-light:active,
.btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: white !important;
  color: white !important;
  box-shadow: none !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white !important;
  transform: translateY(-1px);
}

/* Offcanvas Sidebar Redesign */
.offcanvas {
  background: linear-gradient(180deg, var(--primary-teal) 0%, #0d5664 100%);
}

.offcanvas-header {
  background: rgba(0, 0, 0, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
}

.offcanvas-title {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.btn-close {
  filter: invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.btn-close:hover {
  opacity: 1;
}

.offcanvas-body {
  background: transparent !important;
  padding: 1.5rem;
}

.offcanvas .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
}

.offcanvas .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-left-color: white;
  color: white !important;
  transform: translateX(4px);
}

.offcanvas .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  border-left-color: var(--accent-teal);
  color: white !important;
}

.dropdown-menu {
  background: rgba(16, 96, 115, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: all 0.3s ease;
  padding: 0.75rem 1.25rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  transform: translateX(4px);
}

/* Footer Redesign */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--light-teal) 100%);
  padding: 1.25rem 0;
  text-align: center;
  color: white;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  opacity: 0.95;
}

.footer a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Add bottom padding to body to prevent footer overlap */
body.body-content {
  padding-bottom: 70px;
  min-height: 100vh;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .navbar {
    padding: 0.75rem 0;
  }

  .navbar-brand img.logo {
    width: 100px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .footer {
    font-size: 0.8rem;
    padding: 1rem 0;
  }

  .footer p {
    font-size: 0.8rem;
  }

  body.body-content {
    padding-bottom: 60px;
  }
}

/* Animation for page load */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar {
  animation: fadeInDown 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  animation: fadeInUp 0.5s ease;
}
