:root {
  --navy: #0c2a3f;
  --teal: #22c5b7;
  --ink: #0f172a;
  --muted: #6b7280;
  --bg: #f7f9fb;
  --card: #ffffff;
  --ring: rgba(34, 197, 183, 0.3);
  --radius: 14px;
  --shadow: 0 10px 25px rgba(2, 22, 37, 0.08);
}

/* Sticky Footer Layout */
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  flex: 1;
  /* Push footer down when not enough content */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--navy) 0%, #0f3a52 100%);
  padding: 16px 0;
  box-shadow: 0 4px 20px rgba(12, 42, 63, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.3px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand i {
  color: var(--teal);
  font-size: 1.6rem;
}

.navbar .credits {
  color: #fff;
  font-weight: 600;
}

.navbar .profile-pic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  cursor: pointer;
}

/* Footer */
footer {
  background: #0b2030;
  color: #c8d5df;
  padding: 20px 0;
  text-align: center;
  margin-top: auto;
}

footer p {
  margin: 0;
  font-size: 1rem;
}

footer strong {
  color: var(--teal);
  font-weight: 700;
}

/* Navbar Navigation Links */
.nav-link-custom {
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link-custom:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--teal) !important;
}

.nav-link-custom.active {
  background: rgba(34, 197, 183, 0.2);
  color: var(--teal) !important;
  border-bottom: 3px solid var(--teal);
  font-weight: 600;
}

.nav-link-custom i {
  font-size: 1rem;
}

/* Mobile Hamburger */
.navbar-toggler {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  color: var(--teal);
  transform: scale(1.1);
}

/* Offcanvas Drawer Styling */
.offcanvas {
  background: linear-gradient(180deg, var(--navy) 0%, #0f3a52 100%);
}

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

.offcanvas-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}

.btn-close {
  filter: invert(1);
  opacity: 0.8;
}

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

.nav-drawer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1rem 0;
}

.nav-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
}

.nav-drawer-item:hover {
  background: rgba(34, 197, 183, 0.15);
  color: var(--teal);
  transform: translateX(4px);
}

.nav-drawer-item.active {
  background: rgba(34, 197, 183, 0.25);
  color: var(--teal);
  border-left: 4px solid var(--teal);
  font-weight: 600;
}

.nav-drawer-item i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}