/* ================================
   Top Navigatie - new-style.css
   ================================ */

   :root {
    --highlight-color: #f47840;
  }

  
  /* Buitenframe */
  .new-header {
    position: fixed;
    top: 0px; /* ✅ afstand tot bovenrand — net als eerst */
    left: 50%;
    transform: translateX(-50%); /* ✅ centreert het blok */
  
    width: 100%;
    max-width: 1600px;
  
    padding: 0 40px;
    z-index: 9999;
  
    display: flex;
    flex-direction: column;
    gap: 8px; /* Kleinere gap voor compactere header */

    backdrop-filter: blur(16px);
    border-radius: 24px; /* ✅ afgerond zoals in screenshot 2 */

  }

  /* Top row met logo, menu en user icons */
  .header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 10px;
  }

  .header-spacer {
    height: 20px; /* Aangepast voor compactere header */
  }
  
  @media (max-width: 768px) {
    .header-spacer {
      height: 72px; /* of 64px, afhankelijk van je mobiele headerhoogte */
    }
  }







  /* 🔸 Desktop standaard */
  .mobile-header {
    display: none;
  }
/* 🔸 Mobiele bovenbalk styling */
@media (max-width: 768px) {
  .new-header {
    position: relative;
    z-index: 1; /* 🔽 Lager dan de overlay */
    backdrop-filter: none;
    display: flex;
    justify-content: flex-start;
  }

  .header-client-selector {
    display: none; /* Hide on mobile for now */
  }

  .mobile-header {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 60px;
  }

  .mobile-logo-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Logo blokkeert geen clicks */
  }

  .mobile-logo-wrapper img {
    height: 32px;
    object-fit: contain;
  }

  .hamburger-btn {
    background: none;
    border: none;
    font-size: 22px;
    padding: 0 8px;
    color: white;
    z-index: 2;
  }

  .nav-logo {
    display: none !important; /* desktop only */
  }

  .nav-inner,
  .nav-user {
    display: none !important; /* alles verbergen behalve hamburger+logo */
  }
}





  
  /* Binnenframe (donker blok gecentreerd) */
  .nav-inner {
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 14px 32px;
    display: flex;
    justify-content: center;
    flex: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 32px;
  }
  
  /* Logo links */
  .nav-logo img {
    height: 36px;
  }

  /* Header Client Selector - onder het menu */
  .header-client-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 8px 0; /* Minder padding onderaan */
  }

  .header-client-selector .client-selector-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
  }

  .header-client-selector .client-selector-button {
    min-width: 240px;
    padding: 10px 20px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 20px;
  }

  .header-client-selector .client-selector-dropdown {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 10000;
  }
  
  /* Menu */
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  /* Items als tekst */
  .nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 15px;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
  }
  
  /* Hover + Active glowing effect */
  .nav-item:hover,
  .nav-item.active {
    padding: 12px 22px;
    background: linear-gradient(45deg, #ff9966, #ff5e62, #ffc371);
    background-size: 300% 300%;
    animation: morph 10s ease infinite;
    color: white !important;
    box-shadow: 0 6px 18px rgba(255, 100, 50, 0.5);
  }
  
  /* Keyframes voor animatie */
  @keyframes morph {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* Dropdown */
  .has-dropdown {
    position: relative;
  }
  
  .has-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(28, 28, 30, 0.95);
    border-radius: 12px;
    padding: 12px;
    min-width: 160px;
    box-shadow: 0 0 20px rgba(255, 100, 50, 0.3);
    flex-direction: column;
    gap: 6px;
    z-index: 999;
  }
  
  .has-dropdown.open .dropdown-menu {
    display: flex;
  }
  
  .dropdown-item {
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.2s ease;
  }
  
  .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--highlight-color);
  }
  
  /* Rechter iconenblok */
  .nav-user {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  
  .nav-user i {
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .nav-user i:hover {
    color: var(--highlight-color);
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--highlight-color);
  }
  
  /* Zorgen dat hoofdcontent wat ruimte heeft onder header */
  .main-content {
    padding-top: 140px; /* Aangepast voor compactere header */
  }

  @media (max-width: 768px) {
    .main-content {
      padding-top: 0px !important;
    }
  
    
  }
  

  .mobile-menu-overlay {
    z-index: 9999; /* 🔼 Zorg dat overlay erboven komt */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0a0a;
    overflow-y: auto;
  }
  
  .mobile-menu-overlay.open {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }
  
  .mobile-menu-content {
    background: #0a0f10;
    color: white;
    width: 280px;
    height: 100%;
    padding: 32px 24px;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 6px 14px rgba(255, 94, 98, 0.4),    0 3px 9px rgba(255, 153, 102, 0.3),    0 0 10px rgba(255, 196, 113, 0.25),    0 0 20px rgba(255, 94, 98, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .mobile-menu-content .nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    font-size: 16px;
    color: white;
    text-decoration: none;
    border-radius: 999px; /* zorgt ook dat hover/active altijd consistent is */
    position: relative;
    z-index: 1;
  }
  .mobile-menu-content .nav-item:hover {
    color: #ff5722;
  }
  
  .mobile-user-actions {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #333;
  }
  
  .mobile-user-actions .icon-circle,
  .mobile-user-actions i,
  .mobile-user-actions img {
    font-size: 18px;
    color: white;
  }
  
  .mobile-user-actions img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }
  
  @keyframes fadeInOverlay {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  /* Extra omlijsting van actieve nav-item */
  .mobile-menu-content .nav-item.active {
    position: relative;
    z-index: 1;
    border-radius: 999px; /* optioneel, voor mooiere afbakening */
  }

  .mobile-menu-content .nav-item.active::before {
    content: "";
    position: absolute;
    top: -16px;
    left: -24px;
    right: -24px;
    bottom: -16px;
    background: linear-gradient(45deg, #ff9966, #ff5e62, #ffc371);
    border-radius: 999px;
    z-index: -1;
    filter: blur(16px);
    opacity: 0.5;
    animation: glowFadeIn 0.3s ease forwards;
  }

@keyframes glowFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 0.6;
    transform: scale(1);
  }
}

  



