/* TUVAMBES Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --color-navy: #003B46;
  --color-navy-light: rgb(0, 59, 70, 0.9);
  --color-emerald: #07D08A;
  --color-emerald-light: rgba(7, 208, 138, 0.1);
  --color-neutral-bg: #F8FAFC;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  
  --color-blue-500: #3b82f6;
  --color-cyan-400: #22d3ee;
  --color-orange-500: #f97316;
  --color-amber-400: #fbbf24;
  --color-purple-500: #a855f7;
  --color-indigo-400: #818cf8;
  --color-rose-500: #f43f5e;
  --color-pink-400: #f472b6;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--color-neutral-bg);
  color: var(--color-slate-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--color-navy);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* Custom premium aesthetic utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--color-navy), var(--color-emerald));
}

.bg-gradient-navy-emerald {
  background: linear-gradient(to bottom right, var(--color-navy), var(--color-emerald));
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem; padding-right: 2rem; } }

/* Shared Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s;
  padding: 0.5rem 0;
  background-color: #FDFBF7; /* fixed cream color */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background-color: #FDFBF7;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(to bottom right, var(--color-navy), var(--color-emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
  box-shadow: 0 10px 15px -3px rgba(7, 208, 138, 0.2);
  transition: transform 0.3s;
}

.logo-group:hover .logo-icon {
  transform: rotate(12deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.025em;
  font-size: 1.25rem;
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--color-emerald);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-top: 0.25rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-slate-600);
  transition: color 0.3s;
  position: relative;
  overflow: hidden;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-emerald);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

.nav-divider {
  display: none;
  width: 1px;
  height: 1.5rem;
  background-color: var(--color-slate-200);
  margin: 0 0.5rem;
}

@media (min-width: 1024px) {
  .nav-divider {
    display: block;
  }
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  background-color: var(--color-navy);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: var(--color-navy-light);
  box-shadow: 0 10px 15px -3px rgba(0, 59, 70, 0.2);
}

.btn-primary i {
  color: var(--color-emerald);
  transition: transform 0.3s;
}

.btn-primary:hover i {
  transform: scale(1.1);
}

/* Mobile Menu Button */
.mobile-btn {
  display: flex;
  color: var(--color-navy);
  padding: 0.5rem;
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .mobile-btn {
    display: none;
  }
}

.mobile-btn:hover {
  color: var(--color-emerald);
}

/* Mobile Menu Dropdown */
.mobile-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  z-index: 40;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-inner {
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-slate-600);
  transition: all 0.3s;
}

.mobile-link:hover, .mobile-link.active {
  background-color: var(--color-emerald-light);
  color: var(--color-emerald);
}

/* Utility Animations */
.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

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

/* Premium Enhancements */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ERP Topbar Profile Dropdown */
.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-dropdown-content {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background-color: white;
  min-width: 220px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-radius: 1rem;
  border: 1px solid var(--color-slate-100);
  padding: 0.5rem;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-dropdown.open .profile-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--color-slate-700);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: var(--color-slate-50);
  color: var(--color-emerald);
}

.dropdown-item.logout {
  color: var(--color-rose-500);
  border-top: 1px solid var(--color-slate-100);
  margin-top: 0.25rem;
  border-radius: 0 0 0.5rem 0.5rem;
}

.dropdown-item.logout:hover {
  background-color: rgba(244, 63, 94, 0.05);
}

/* Navbar Dropdown */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  min-width: 260px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-radius: 1rem;
  border: 1px solid var(--color-slate-100);
  padding: 0.5rem;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--color-slate-700);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-dropdown-link:hover {
  background-color: var(--color-emerald-light);
  color: var(--color-emerald);
}
