/* 
 * top-header.css - Styles for the Top Header Component
 * This file contains all styles related to the top header section
 */

/* Header styles */

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;

    flex-wrap: wrap;
  }
  
  .page-title {
    font-size: 24px;
    font-weight: 600;
  }
  
  .breadcrumb {
    margin-bottom: 0;
  }
  
  /* Search bar styles */
  .search-container {
    position: relative;
    max-width: 330px;
    width: 100%;
    border: 1px solid grey;
    border-radius: 5px ;
  }
  
  .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f5f5f7;
    border-radius: 8px;
    padding: 0 15px;
    transition: all 0.3s ease;
  }
  
  .search-icon-left {
    color: #666;
    font-size: 14px;
    margin-right: 8px;
  }
  
  .search-input {
    background: transparent;
    border: none;
    height: 38px;
    width: 100%;
    padding: 0 10px 0 0;
    font-size: 14px;
    color: #333;
  }
  
  .search-input:focus {
    outline: none;
  }
  
  .search-input::placeholder {
    color: #888;
  }
  
  .search-shortcut {
    display: flex;
    border-radius: 4px;
    padding: 2px 8px;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
  }
  
  .shortcut-key {
    font-weight: bold;
    padding: 5px;
  }
  
  .shortcut-letter {
    font-weight: normal;
    padding: 5px;
  }
  
  /* Header icons and profile */
  .header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .icon-btn {
    background: none;
    border: none;
    color: #555;
    font-size: 20px;
    cursor: pointer;
    position: relative;
  }
  
  .notification-badge {
    position: absolute;
    top: -1px;
    right: -2px;
    background-color: orange;
    color: white;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Profile container */
  .profile-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
  }
  
  .profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
  }
  
  .profile-info {
    text-align: left;
  }
  
  .profile-name {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
  }
  
  .profile-email {
    color: #777;
    font-size: 12px;
    margin: 0;
  }
  
  /* Profile Dropdown */
  .profile-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
  }
  
  .profile-dropdown.show {
    display: block;
  }
  
  .profile-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .profile-dropdown ul li {
    padding: 0;
  }
  
  .profile-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
  }
  
  .profile-dropdown ul li a:hover {
    background-color: #f5f5f5;
  }
  
  .profile-dropdown ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
  }

 
  /* Mobile Header */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 1000;
  color: white;
}

.mobile-sidebar-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.mobile-logo {
  display: flex;
  align-items: center;
}

.mobile-logo .logo {
  height: 30px;
  margin-right: 10px;
}

.mobile-actions {
  display: flex;
  align-items: center;
}
  
body.dark-mode .search-input-wrapper {
  background-color: #333;
}

body.dark-mode .search-icon-left {
  color: #aaa;
}

body.dark-mode .search-input {
  color: #fff;
}

body.dark-mode .search-input::placeholder {
  color: #aaa;
}

body.dark-mode .search-shortcut {
  color: #bbb;
}

body.dark-mode .icon-btn {
  color: #e0e0e0;
}



   /* Notification section */
/* Notification section */
/* Panel Container */
.notification-panel {
  position: fixed;
  top: 20px;  /* Position from top */
  right: -470px; /* Start off-screen */
  width: 472px;
  max-height: 70vh; /* Limit height to 70% of viewport height */
  background-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  border-radius: 37px; /* Rounded corners as shown in Figma */
  overflow: hidden; /* Ensure content respects border radius */
}

.notification-panel.show {
  right: 30px; /* Show with ample space from right edge to match Figma design */
}

/* Overlay */
.notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  display: none;
}

/* Header */
.notification-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
}

.notification-title {
  font-size: 28px;
  font-weight: bolder;
  margin: 0;
  color:rgba(0, 0, 0, 0.898);
 
}

.notification-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content Area */
.notification-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  /* Hide scrollbar but maintain functionality */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(0,0,0,0.1) transparent; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.notification-content::-webkit-scrollbar {
  width: 6px;
}

.notification-content::-webkit-scrollbar-track {
  background: transparent;
}

.notification-content::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.1);
  border-radius: 20px;
}

/* Notification Items */
.notification-item {
  display: flex;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  transition: all 0.3s ease;
}

.notification-avatar {
  width: 40px;
  height: 40px;
  margin-right: 16px;
  flex-shrink: 0;
}

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

.notification-details {
  flex: 1;
  padding-top: 2px;
}

.notification-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.notification-date {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.notification-dismiss {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 14px;
  padding: 5px;
  margin-left: 8px;
  align-self: flex-start;
}

/* Divider */
.notification-divider {
  padding: 12px 24px;
  background-color: #f8f8f8;
  text-align: center;
  font-size: 12px;
  color: #888;
  border-bottom: 1px solid #f0f0f0;
}

/* Empty notification message */
.notification-empty {
  padding: 24px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .notification-panel {
    width: calc(100% - 120px); /* Account for margins */
    right: -100%; /* Move fully off-screen */
    max-height: 80vh; /* Slightly larger on mobile */
  }
  
  .notification-panel.show {
    right: 60px; /* Keep consistent with desktop spacing */
  }
  
  .notification-header {
    padding: 16px 20px;
  }
  
  .notification-item {
    padding: 14px 20px;
  }
}

/* Dark mode styles for notifications */
body.dark-mode .notification-panel {
  background-color: #1e1e1e;
}

body.dark-mode .notification-header {
  border-bottom-color: #333;
}

body.dark-mode .notification-title,
body.dark-mode .notification-text {
  color: #e0e0e0;
}

body.dark-mode .notification-date,
body.dark-mode .notification-dismiss {
  color: #888;
}

body.dark-mode .notification-item {
  border-bottom-color: #333;
}

body.dark-mode .notification-divider {
  background-color: #2d2d2d;
  color: #888;
}

body.dark-mode .notification-empty {
  color: #888;
}

body.dark-mode .notification-content::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.1);
}

/* Dark mode styles for top header */
body.dark-mode .search-input-wrapper {
  background-color: #333;
}

body.dark-mode .search-icon-left {
  color: #aaa;
}

body.dark-mode .search-input {
  color: #fff;
}

body.dark-mode .search-input::placeholder {
  color: #aaa;
}

body.dark-mode .search-shortcut {
  color: #bbb;
}

body.dark-mode .icon-btn {
  color: #e0e0e0;
}

body.dark-mode .profile-dropdown {
  background-color: #2d2d2d;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .profile-dropdown ul li a {
  color: #e0e0e0;
}

body.dark-mode .profile-dropdown ul li a:hover {
  background-color: #3d3d3d;
}