/* Layout and Navigation Styles */

/* Navbar Styles */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(234, 52, 25, 0.1);
  color: var(--pdf-primary);
}

.navbar-nav .nav-link.active {
  background-color: rgba(234, 52, 25, 0.15);
  color: var(--pdf-primary);
  font-weight: 600;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Footer Styles */
.footer {
  background: var(--gradient-subtle);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer h5 {
  color: #212529;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer .list-unstyled li {
  margin-bottom: 0.5rem;
}

.footer .list-unstyled a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .list-unstyled a:hover {
  color: var(--pdf-primary);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f8f9fa;
  color: #6c757d;
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background-color: var(--pdf-primary);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
}

.footer-badges .badge {
  background-color: #e9ecef;
  color: #6c757d;
  font-weight: 500;
  margin-right: 0.5rem;
}

/* Main content area */
main {
  flex: 1;
}

/* Body layout */
body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    system-ui,
    sans-serif;
  line-height: 1.6;
  color: #212529;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Responsive utilities */
@media (max-width: 767.98px) {
  .navbar-nav {
    padding: 1rem 0;
    background-color: white;
    border-radius: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav .nav-link {
    margin: 0.25rem 0;
    text-align: center;
  }

  .footer .row > div {
    margin-bottom: 2rem;
  }
}

/* Accessibility improvements */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--pdf-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .alert {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    break-after: avoid;
  }
}
