/* Navigation Component Styles */

/* Mobile Dashboard CSS Variables */
:root {
  --mobile-primary-color: #ffffff;
  --mobile-secondary-color: #e0e0e0;
  --mobile-accent-color: #f5f5f5;
  --mobile-dark-bg: #000000;
  --mobile-card-bg: rgba(255, 255, 255, 0.05);
  --mobile-border-color: rgba(255, 255, 255, 0.1);
  --mobile-text-primary: #ffffff;
  --mobile-text-secondary: #b0b0b0;
  --mobile-text-muted: #808080;
  --mobile-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --mobile-blur: blur(20px);
  --mobile-border-radius: 1rem;
  --mobile-spacing-xs: 0.5rem;
  --mobile-spacing-sm: 0.75rem;
  --mobile-spacing-md: 1rem;
  --mobile-spacing-lg: 1.5rem;
  --mobile-spacing-xl: 2rem;
}

/* Mobile Toggle Button */
.mobile-toggle-btn {
  position: fixed !important;
  top: 1rem !important;
  right: 1rem !important;
  z-index: 999999 !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  color: #fff !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
}

.mobile-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
}

.mobile-toggle-btn:active {
  transform: scale(0.95) !important;
}

/* Hide toggle button when sidebar is open */
.mobile-toggle-btn.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(0.8) !important;
}

/* Mobile Sidebar Styles */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-sidebar.show {
  visibility: visible;
  opacity: 1;
}

.mobile-sidebar__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.mobile-sidebar__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.show .mobile-sidebar__content {
  transform: translateX(0);
}

.mobile-sidebar__header {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.mobile-sidebar__close {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-sidebar__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.mobile-sidebar__nav {
  flex: 1;
  padding: 1rem;
}

.mobile-sidebar__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-sidebar__nav-item {
  margin: 0;
}

.mobile-sidebar__nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #b0b0b0;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.mobile-sidebar__nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.mobile-sidebar__nav-link.active-link {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.mobile-sidebar__nav-link i {
  font-size: 1.25rem;
  width: 1.5rem;
  text-align: center;
}

.mobile-sidebar__nav-link span {
  font-weight: 500;
}

.mobile-sidebar__auth {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.75rem;
}

.mobile-sidebar__auth-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.mobile-sidebar__auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-sidebar__auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-sidebar__auth-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.mobile-sidebar__auth-btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-sidebar__auth-btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.5);
}

.mobile-sidebar__user-profile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-sidebar__user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.mobile-sidebar__user-avatar {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}

.mobile-sidebar__user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mobile-sidebar__user-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.25rem;
}

.mobile-sidebar__user-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.2;
}

.mobile-sidebar__user-email {
  color: #b0b0b0;
  font-size: 0.85rem;
  line-height: 1.2;
}

.mobile-sidebar__logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mobile-spacing-md);
  padding: var(--mobile-spacing-sm) var(--mobile-spacing-xl);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--mobile-primary-color);
  border-radius: var(--mobile-spacing-sm);
  color: var(--mobile-primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
  height: 2.5rem;
}

.mobile-sidebar__logout-btn:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #ef4444;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.mobile-sidebar__footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-sidebar__social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mobile-sidebar__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.mobile-sidebar__social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  transform: scale(1.05);
}

.mobile-sidebar__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-sidebar__contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #b0b0b0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.mobile-sidebar__contact-link:hover {
  color: #ffffff;
}

.mobile-sidebar__contact-link i {
  font-size: 1rem;
  width: 1rem;
  text-align: center;
}

/* Navigation Layout Improvements */
.nav.container {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.overlay-logo {
  margin-right: 3rem !important;
}

.nav__menu {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
}

.nav__list {
  display: flex !important;
  gap: 0.8rem !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

.nav__auth {
  margin-left: 2rem !important;
  flex-shrink: 0 !important;
  min-width: 66px !important;
  z-index: 10 !important;
}

/* Hide mobile sidebar on desktop */
@media screen and (min-width: 1024px) {
  .mobile-sidebar {
    display: none;
  }
  
  .mobile-toggle-btn {
    display: none !important;
  }
}

/* Show mobile sidebar on mobile */
@media screen and (max-width: 1023px) {
  .nav__menu {
    display: none !important;
  }
  
  .nav__auth {
    display: none !important;
  }
  
  .nav__toggle {
    display: block !important;
  }
  
  /* Hide overlay logo in mobile view */
  .overlay-logo {
    display: none !important;
  }
}