/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.98) 0%, rgba(25, 25, 25, 0.98) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 106, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.headerContent {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
  height: 100%;
  width: 95%;
  margin-left: 2.5%;
  gap: 2rem;
}

/* Header Left */
.headerLeft {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 280px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #006aff 0%, #0052cc 100%);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 106, 255, 0.3);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.titleSection {
  display: flex;
  flex-direction: column;
}

.title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, #006aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* Header Center - Search */
.headerCenter {
  flex: 1;
  max-width: 600px;
}

.searchForm {
  position: relative;
  width: 100%;
}

.searchIcon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.searchInput {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.searchInput::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.searchInput:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.clearButton {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.clearButton:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Header Right - Actions */
.headerRight {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.actionItem {
  position: relative;
}

.actionButton {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 0.625rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actionButton:hover {
  color: #006aff;
  transform: translateY(-2px);
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff4444;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}

/* Profile Button */
.profileButton {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profileButton:hover {
  transform: translateY(-2px);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #006aff 0%, #0052cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(0, 106, 255, 0.3);
  overflow: hidden;
}

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

.profileInfo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profileName {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.profileRole {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.chevron {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease;
}

.profileButton:hover .chevron {
  color: #006aff;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: none;
  min-width: 320px;
  overflow: hidden;
  animation: dropdownFadeIn 0.3s ease;
  z-index: 1000;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdownHeader {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdownHeader h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.markAllRead {
  background: transparent;
  border: none;
  color: #006aff;
  font-size: 0.75rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.markAllRead:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.markAllRead:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: none;
}

.markAllRead:disabled:hover {
  opacity: 0.4;
  text-decoration: none;
}

/* Notifications */
.notificationList {
  max-height: 400px;
  overflow-y: auto;
}

.notificationItem {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
  cursor: pointer;
}

.notificationItem:hover {
  background: rgba(255, 255, 255, 0.05);
}

.notificationItem.unread {
  background: rgba(0, 106, 255, 0.05);
}

.notifIcon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notifContent {
  flex: 1;
}

.notifMessage {
  font-size: 0.875rem;
  color: #fff;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.notifTime {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.dropdownFooter {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.viewAllButton {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.625rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.viewAllButton:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Profile Dropdown */
.profileDropdownHeader {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatarLarge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #006aff 0%, #0052cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: none;
  overflow: hidden;
}

.profileDropdownInfo {
  flex: 1;
}

.profileDropdownInfo h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px 0;
}

.profileDropdownInfo p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.profileDropdownMenu {
  padding: 0.5rem 0;
}

.menuItem {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
}

.menuItem:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.menuItem svg {
  flex-shrink: 0;
}

.menuDivider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .headerContent {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  
  .headerLeft {
    min-width: auto;
  }
  
  .title {
    font-size: 1.125rem;
  }
  
  .subtitle {
    display: none;
  }
  
  .headerCenter {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .headerContent {
    flex-wrap: wrap;
    padding: 1rem;
  }
  
  .headerLeft {
    flex: 1;
  }
  
  .headerCenter {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
  }
  
  .profileInfo {
    display: none;
  }
  
  .profileButton {
    padding: 0.5rem;
  }
  
  .dropdown {
    min-width: 280px;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 40px;
    height: 40px;
  }
  
  .title {
    font-size: 1rem;
  }
  
  .searchInput {
    font-size: 0.8125rem;
    padding: 0.625rem 2.5rem 0.625rem 2.5rem;
  }
  
  .headerRight {
    gap: 0.5rem;
  }
}
