/* Estilos adicionais do Licitech */

/* Dashboard cards */
.dashboard .card {
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease;
}

.dashboard .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -12px rgba(15,23,42,0.4);
}

/* Animações e transições */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--licitech-bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--licitech-neutral);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--licitech-primary);
}

/* Helpers */
.min-vh-80 {
  min-height: 80vh;
}

.cursor-pointer {
  cursor: pointer;
}

.help-popover {
  color: var(--bs-secondary-color);
}

.help-popover:hover,
.help-popover:focus {
  color: var(--bs-primary);
}

.help-toast-container {
  z-index: 1080;
}

.help-toast .toast-header {
  background-color: rgba(13, 110, 253, 0.1);
}

.help-toast .toast-body {
  color: var(--bs-body-color);
}

.required-indicator {
  color: var(--bs-danger);
  font-weight: 600;
  margin-left: 0.25rem;
}

/* Navegação principal */
.navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: rgba(30, 58, 138, 0.08);
  box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.12);
}

.nav-link-text {
  display: inline-flex;
  align-items: center;
}

.mega-menu .dropdown-menu {
  width: min(720px, calc(100vw - 2rem));
  border-radius: 18px;
  background: var(--licitech-bg-secondary);
  border: 1px solid var(--navbar-border);
}

.mega-menu-panel {
  padding: 1.5rem;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.mega-menu-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mega-menu-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.mega-menu-item.active {
  background-color: rgba(30, 58, 138, 0.12);
  box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.25);
}

.mega-menu-item:hover {
  background-color: rgba(30, 58, 138, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.35);
}

.mega-menu-item.active .mega-menu-icon {
  box-shadow: inset 0 0 0 1px currentColor;
}

.mega-menu-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.mega-menu-label {
  font-weight: 600;
  display: block;
}

.mega-menu-copy small {
  font-size: 0.75rem;
  line-height: 1.3;
}

@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    width: 100%;
    border-radius: 12px;
  }

  .mega-menu .dropdown-menu {
    position: static;
    box-shadow: none !important;
    border-radius: 12px;
    margin-top: 0.5rem;
  }

  .mega-menu-panel {
    padding: 1rem;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #111c44, #1f3b8f);
  color: rgba(255, 255, 255, 0.86);
  padding: 1.5rem 0 1.1rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .link-clean {
  color: rgba(255, 255, 255, 0.78) !important;
}

.site-footer .link-clean:hover {
  color: #ffffff !important;
}

.site-footer-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
  row-gap: 1rem;
  justify-content: space-between;
}

.site-footer-brand {
  flex: 1 1 240px;
  max-width: 320px;
}

.site-footer .footer-badge {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.site-footer .footer-copy {
  margin: 0.6rem 0;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer .footer-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer .chip {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  padding: 0.3rem 0.6rem;
  font-size: 0.68rem;
  border-radius: 999px;
}

.site-footer .chip i {
  color: #60a5fa !important;
  margin-right: 0.4rem;
}

.site-footer-panels {
  display: flex;
  flex: 1 1 320px;
  gap: 1.5rem;
  justify-content: flex-end;
  min-width: 260px;
}

.footer-panel {
  flex: 1 1 150px;
  min-width: 150px;
}

.site-footer .footer-title {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.site-footer .footer-links li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.35;
}

.site-footer .footer-links i {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.85rem;
}

.site-footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.6rem;
  font-size: 1.05rem;
}

.site-footer-bottom {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer-bottom .footer-meta {
  display: flex;
  gap: 1rem;
}

@media (max-width: 767.98px) {
  .site-footer-shell {
    flex-direction: column;
  }

  .site-footer-panels {
    width: 100%;
    justify-content: space-between;
  }

  .footer-panel {
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .site-footer {
    text-align: center;
  }

  .site-footer-panels {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .site-footer .footer-links li {
    justify-content: center;
  }

  .site-footer .footer-highlights,
  .site-footer-social,
  .site-footer-bottom .footer-meta {
    justify-content: center;
  }

  .site-footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
  }
}
