/* Custom CSS for additional styling */

:root {
  --primary-color: #10b981; /* Emerald Green */
  --secondary-color: #f59e0b; /* Amber */
  --accent-color: #ef4444; /* Red */
  --neutral-color: #64748b; /* Neutral Gray */
}

/* Light mode variables only */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f0f9ff; /* Light sky blue background */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: #e5e7eb; /* Subtle border */
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] .navbar-brand {
  margin-right: 0;
  margin-left: 1rem;
}

[dir="rtl"] .dropdown-menu {
  right: 0;
  left: auto;
}

/* Dropdown Menus */
.dropdown {
  position: relative;
}

.navbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  min-width: 12rem;
  margin-top: 0.5rem;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
}

.navbar .dropdown-menu.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
}

.navbar .dropdown-menu.block {
  display: block !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Better hover area for dropdowns */
.navbar .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.navbar .dropdown:hover .dropdown-menu.hidden {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

[dir="rtl"] .dropdown-menu {
  right: 0;
  left: auto;
}

/* Smooth transitions */
* {
  transition: all 0.3s ease;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInRight {
  animation: fadeInRight 0.6s ease-out;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-countUp {
  animation: countUp 0.8s ease-out;
}

/* Gradient backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
  
  .mobile-full-width {
    width: 100% !important;
  }
}