/* History Page Mobile Fixes - Bell Icon Positioning */

/* Force any notification container to be in header */
.notifications-container {
  position: static !important;
  display: inline-block !important;
  z-index: 10 !important;
}

/* Ensure notification bell is properly contained within header on mobile */
@media (max-width: 768px) {
  /* Fix bell icon positioning on history page */
  .history-page .site-header {
    position: relative;
    z-index: 1000;
    overflow: visible;
  }
  
  /* Ensure bell icon container is properly positioned */
  .history-page .notification-bell,
  .history-page .bell-icon,
  .history-page [class*="bell"],
  .history-page [class*="notification"] {
    position: relative !important;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Prevent bell from floating outside header */
  .history-page .header-flex {
    position: relative;
    overflow: visible;
  }
  
  /* Ensure proper spacing for mobile header items */
  .history-page .nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Fix any absolute positioned bells */
  .history-page .notification-bell-absolute,
  .history-page .bell-absolute {
    position: fixed !important;
    top: 1rem !important;
    right: 3.5rem !important; /* Position next to hamburger menu */
    z-index: 1001 !important;
  }
  
  /* Ensure main content doesn't overlap with header */
  .history-page main,
  .history-page .main-content,
  #root {
    padding-top: 80px !important; /* Add space for header */
    position: relative;
    z-index: 1;
  }
  
  /* Force notification container into header */
  .notifications-container {
    position: absolute !important;
    top: 15px !important;
    right: 60px !important; /* Position next to hamburger */
    z-index: 999 !important;
  }
  
  /* Ensure toggle button is visible */
  .notifications-toggle {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
  }
  
  /* Fix any floating elements */
  .history-page .floating-bell,
  .history-page .fixed-bell {
    position: relative !important;
    float: none !important;
    display: inline-block !important;
  }
}

/* Additional mobile-specific fixes */
@media (max-width: 480px) {
  .history-page .notification-bell-absolute,
  .history-page .bell-absolute {
    right: 2.5rem !important; /* Adjust for smaller screens */
  }
}

/* Ensure proper z-index hierarchy */
.history-page {
  position: relative;
}

.history-page .site-header {
  z-index: 1000;
}

.history-page .mobile-menu {
  z-index: 1100;
}

.history-page main {
  z-index: 1;
  position: relative;
}

/* Fix notification container position on all screen sizes */
.site-header .notifications-container {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 10px !important;
}

/* Ensure notification panel appears below header */
.notifications-panel {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  z-index: 1000 !important;
  margin-top: 10px !important;
}

/* Fix main content spacing */
#root {
  padding-top: 80px;
  min-height: 100vh;
}