* {
  box-sizing: border-box;
}



.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: #1a5539;
  border-radius: 999px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #1a5539;
}

.nav-link:hover::after {
  width: 60%;
}

.nav-link-active {
  color: #1a5539 !important;
  font-weight: 600;
}

.nav-link-active::after {
  width: 60% !important;
}

.nav-link-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.25s ease;
  overflow: hidden;
}

.nav-link-btn:active {
  transform: scale(0.98);
}

.nav-link-btn-primary {
  background: #1a5539;
  color: #fff;
}

.nav-link-btn-primary:hover {
  background: #14432e;
}

.nav-link-btn-primary:active {
  background: #0e3121 !important;
}

.nav-link-btn-outline {
  border: 1.5px solid #cbd5e1;
  color: #475569;
}

.nav-link-btn-outline:hover {
  border-color: #1a5539;
  color: #1a5539;
  background: #f8fafc;
}

.nav-link-btn-outline:active {
  background: #f1f5f9 !important;
}

.nav-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: #eef8f3;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a5539;
  border: 1.5px solid #d7efe2;
  transition: all 0.25s ease;
  cursor: default;
  white-space: nowrap;
}

.nav-user-badge:hover {
  border-color: #ace2c3;
  box-shadow: 0 0 0 3px rgba(26, 85, 57, 0.08);
}

.nav-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #1a5539;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-lang-switch:hover {
  border-color: #1a5539;
  color: #1a5539;
  background: #eef8f3;
  transform: translateY(-1px);
}

.nav-lang-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a5539;
  display: inline-block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-mobile-open {
  animation: slideDown 0.25s ease forwards;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.nav-logo:hover .nav-logo-icon {
  animation: logoPulse 1.2s ease infinite;
}

@media (max-width: 767px) {
  .nav-link::after {
    display: none;
  }
  .nav-link-active {
    background: #eef8f3 !important;
    border-radius: 0.75rem;
    color: #1a5539 !important;
  }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  line-clamp: 2;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(26, 85, 57, 0.3);
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 85, 57, 0.6);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 85, 57, 0.3) transparent;
}

#loading-screen {
  opacity: 1;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(26, 85, 57, 0.2);
  border-top-color: #1a5539;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

