/* navbar.css - MODERN & CLEAN DESIGN - WITH MINIMAL DROPDOWN ADDITIONS */
:root {
  /* Primary Colors */
  --primary-orange: #FF6B00;
  --primary-orange-dark: #E55A00;
  --primary-orange-light: #FF8A3D;
  
  /* Background Colors */
  --bg-dark: #1a1a2e;
  --bg-darker: #16213e;
  --bg-light: #f8f9fa;
  
  /* Text Colors */
  --text-light: #ffffff;
  --text-dark: #2d3748;
  --text-muted: #718096;
  
  /* Accent Colors */
  --accent-white: rgba(255, 255, 255, 0.95);
  --accent-glow: rgba(255, 107, 0, 0.4);
  
  /* Role Colors */
  --admin: #8B5CF6;
  --manager: #643bf6;
  --boic: #10B981;
  --rtl: #06B6D4;
  --cso: #F59E0B;
  
  /* Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(255, 107, 0, 0.3);
}

/* NAVBAR CONTAINER */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  padding: 0 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1000;
}

/* BRAND SECTION */
.navbar-brand-container {
  display: flex;
  align-items: center;
  font-family: 'Arial Black', sans-serif;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.navbar-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-text {
  color: var(--text-light);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background:  #ffffff;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* NAVIGATION LINKS */
.navbar-links-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  opacity: 0.8;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
  transform: translateY(-1px);
}

/* ACTIVE STATE - WHITE HIGHLIGHT */
.nav-link.active {
  background: var(--accent-white) !important;
  color: var(--primary-orange-dark) !important;
  opacity: 1;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transform: translateY(0);
}

.nav-link.active .nav-icon {
  color: var(--primary-orange-dark);
}

.nav-link.active .nav-text {
  color: var(--primary-orange-dark);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 20%;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-orange-light));
  border-radius: 2px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 60%;
    opacity: 1;
  }
}

.nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.nav-text {
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.active-indicator {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: var(--primary-orange);
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 107, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
  }
}

/* USER PROFILE SECTION */
.navbar-profile-container {
  display: flex;
  align-items: center;
}

/* User Profile Dropdown */
.user-profile-dropdown {
  position: relative;
}

.user-profile-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 10px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-profile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.user-avatar {
  font-size: 1.8rem;
  color: var(--primary-orange-light);
}

.user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-role {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.user-profile-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--bg-light);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

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

/* Dropdown Header */
.dropdown-header {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.header-avatar {
  font-size: 3rem;
  color: var(--primary-orange);
}

.header-info h4 {
  margin: 0 0 5px 0;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.user-email {
  margin: 0 0 10px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-badge.admin { background: var(--admin); color: white; }
.role-badge.manager { background: var(--manager); color: white; }
.role-badge.boic { background: var(--boic); color: white; }
.role-badge.rtl { background: var(--rtl); color: white; }
.role-badge.cso { background: var(--cso); color: white; }

/* Quick Info */
.user-quick-info {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 12px;
  margin: 15px 0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  color: var(--primary-orange);
  width: 16px;
}

.info-item span {
  color: var(--text-muted);
  flex: 1;
}

.info-item strong {
  color: var(--text-dark);
}

/* Dropdown Items */
.dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 15px 0;
}

.dropdown-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 10px 0;
  padding: 0 8px;
}

.dropdown-section-label i {
  font-size: 0.9rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.dropdown-item:hover {
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary-orange-dark);
  padding-left: 20px;
}

.dropdown-item i {
  width: 20px;
  color: var(--text-muted);
}

.dropdown-item:hover i {
  color: var(--primary-orange-dark);
}

.dropdown-item.logout {
  color: #dc2626;
}

.dropdown-item.logout:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.dropdown-item.logout i {
  color: #dc2626;
}

/* Login Button */
.login-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: linear-gradient(45deg, var(--primary-orange), var(--primary-orange-light));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: white;
}

/* ===== MINIMAL DROPDOWN ADDITIONS ===== */

/* Navbar dropdown styles */
.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown .nav-link.dropdown-toggle {
  cursor: pointer;
}

.nav-item.dropdown .nav-link.dropdown-toggle::after {
  content: "▾";
  margin-left: 8px;
  font-size: 0.9em;
  opacity: 0.7;
}

/* Dashboard dropdown menu */
.nav-item.dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 200px;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  background-color: var(--bg-light);
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.nav-item.dropdown .dropdown-menu.show {
  display: block;
}

.nav-item.dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 1rem;
  clear: both;
  font-weight: 400;
  color: var(--text-dark);
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.nav-item.dropdown .dropdown-item:hover {
  color: var(--primary-orange-dark);
  background-color: rgba(255, 107, 0, 0.1);
}

.nav-item.dropdown .dropdown-item i {
  margin-right: 0.5rem;
  width: 1.25em;
  text-align: center;
  color: var(--text-muted);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 1rem;
  }
  
  .brand-text {
    display: none;
  }
  
  .nav-text {
    display: none;
  }
  
  .nav-link {
    padding: 12px 16px;
  }
  
  .nav-icon {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 1rem;
  }
  
  .navbar-links-container {
    order: 3;
    width: 100%;
  }
  
  .navbar-nav {
    width: 100%;
    justify-content: center;
  }
  
  .user-dropdown-menu {
    width: 280px;
    right: -50%;
    transform: translateX(50%) translateY(-10px);
  }
  
  .user-profile-dropdown:hover .user-dropdown-menu {
    transform: translateX(50%) translateY(0);
  }
  
  /* Mobile dropdown adjustments */
  .nav-item.dropdown .dropdown-menu {
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    width: auto;
    z-index: 1001;
  }
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  
  /* Your existing properties */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  padding: 0 2rem;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.5s ease-out;
}