/* Premium Navbar V3 - Modern Enhanced Design */

:root {
  --al-sumri-primary: #1F7A4D;
  --al-sumri-secondary: #35A86B;
  --al-sumri-dark: #0F5F3A;
  --al-sumri-light: #0B4A2E;
  --navbar-gradient-start: #1F7A4D;
  --navbar-gradient-end: #35A86B;
}

/* Navbar Base */
.navbar.v3-modern {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar.v3-modern .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar.v3-modern .navbar-brand:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.navbar.v3-modern .brand-logo {
  height: 32px;
  width: auto;
  filter: brightness(1.1);
  transition: filter 0.3s ease;
}

.navbar.v3-modern .navbar-brand:hover .brand-logo {
  filter: brightness(1.2);
}

/* Nav Links - Enhanced Styling */
.navbar.v3-modern .nav-link {
  position: relative;
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(255, 255, 255, 0.9) !important;
}

.navbar.v3-modern .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar.v3-modern .nav-link:hover::after,
.navbar.v3-modern .nav-link.active::after {
  width: 80%;
}

.navbar.v3-modern .nav-link:hover {
  color: #fff !important;
  transform: translateY(-2px);
}

/* Dropdown Menus - Modern Style */
.navbar.v3-modern .dropdown-menu {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid rgba(31, 122, 77, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  min-width: 280px;
  margin-top: 8px;
  animation: slideDown 0.3s ease;
}

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

.navbar.v3-modern .dropdown-menu .dropdown-header {
  color: var(--al-sumri-primary);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(31, 122, 77, 0.1);
  background: rgba(31, 122, 77, 0.03);
}

.navbar.v3-modern .dropdown-menu .dropdown-divider {
  margin: 0.5rem 0;
  border-color: rgba(31, 122, 77, 0.1);
}

.navbar.v3-modern .dropdown-item {
  padding: 0.75rem 1rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  color: #333;
  font-weight: 500;
}

.navbar.v3-modern .dropdown-item:hover {
  background: rgba(31, 122, 77, 0.08);
  border-left-color: var(--al-sumri-primary);
  padding-left: 1.25rem;
}

.navbar.v3-modern .dropdown-item:active {
  background: rgba(31, 122, 77, 0.15);
  color: var(--al-sumri-primary);
}

.navbar.v3-modern .dropdown-item i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

/* Icons in Navbar */
.navbar.v3-modern .fa-icon {
  transition: all 0.3s ease;
}

.navbar.v3-modern .nav-link:hover .fa-icon {
  transform: scale(1.15) rotate(5deg);
}

/* Navbar Toggler - Mobile */
.navbar.v3-modern .navbar-toggler {
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar.v3-modern .navbar-toggler i {
  color: #ffffff;
  transition: transform 0.3s ease;
}

.navbar.v3-modern .navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.navbar.v3-modern .navbar-toggler:active {
  transform: scale(0.95);
}

.navbar.v3-modern .navbar-toggler:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

/* User Account Dropdown */
.navbar.v3-modern .user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.navbar.v3-modern .nav-link:hover .user-avatar {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

/* Theme Toggle Button */
.navbar.v3-modern .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease;
}

.navbar.v3-modern .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.navbar.v3-modern .theme-dropdown {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid rgba(31, 122, 77, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Offcanvas Menu - Mobile */
.offcanvas {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.offcanvas-header {
  background: linear-gradient(135deg, var(--navbar-gradient-start) 0%, var(--navbar-gradient-end) 100%);
  color: white;
  border-bottom: none;
}

.offcanvas-body {
  padding: 1.5rem;
}

.offcanvas .btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.offcanvas .btn:hover {
  background: rgba(31, 122, 77, 0.1);
  border-color: var(--al-sumri-primary);
  color: var(--al-sumri-primary) !important;
  transform: translateX(4px);
}

.offcanvas .collapse {
  margin-top: 0.5rem;
}

.offcanvas .dropdown-item {
  border-radius: 6px;
  margin-bottom: 0.5rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.offcanvas .dropdown-item:hover {
  background: rgba(31, 122, 77, 0.08);
  border-left-color: var(--al-sumri-primary);
  padding-left: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .navbar.v3-modern .nav-link {
    padding: 0.5rem 0 !important;
  }
  
  .navbar.v3-modern .navbar-brand {
    font-size: 1.1rem;
  }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
  .navbar.v3-modern .dropdown-menu {
    background: linear-gradient(135deg, #152621 0%, #0b1a16 100%); /* Green Slate 800 -> 900 */
    border-color: rgba(53, 168, 107, 0.2);
  }
  
  .navbar.v3-modern .dropdown-menu .dropdown-header {
    color: #35A86B;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
  }
  
  .navbar.v3-modern .dropdown-item {
    color: #e8f2f0; /* Light Green Slate */
  }
  
  .navbar.v3-modern .dropdown-item:hover {
    background: rgba(53, 168, 107, 0.15);
    border-left-color: #35A86B;
  }
}

/* Smooth transitions */
.navbar.v3-modern * {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Focus states for accessibility */
.navbar.v3-modern .nav-link:focus,
.navbar.v3-modern .dropdown-item:focus {
  outline: 2px solid rgba(53, 168, 107, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}
