/* css/header.css - Updated with Way colors */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: var(--way-gradient-primary);
  color: var(--way-white);
  display: flex;
  align-items: center;
  padding: 0 28px;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
  z-index: 1000;
}

#main-header .menu-toggle {
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  margin-right: 20px;
  width: 32px;
  text-align: center;
  transition: transform 0.2s;
  color: var(--way-white);
}

#main-header .menu-toggle:hover {
  transform: scale(1.1);
  color: var(--way-secondary);
}

#main-header .header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

#main-header .logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--way-white);
  line-height: 1.2;
  position: relative;
}

#main-header .logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--way-secondary);
  border-radius: 2px;
}

#main-header .clock {
  font-size: 0.9rem;
  color: var(--way-secondary-light);
  font-family: monospace;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}

#main-header .page-title {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-left: 200px;
  color: var(--way-white);
  position: relative;
  padding-left: 15px;
}

#main-header .page-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--way-secondary);
  border-radius: 2px;
}

#main-header .header-right {
  margin-left: auto;
  display: flex;
  gap: 24px;
  align-items: center;
  position: relative;
}

#main-header .notification-icon {
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--way-white);
  position: relative;
}

#main-header .notification-icon:hover {
  transform: scale(1.1);
  color: var(--way-secondary);
}

#main-header .notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--way-error);
  color: var(--way-white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  border: 2px solid var(--way-primary);
}

#main-header .profile-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--way-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--way-primary-dark);
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid var(--way-white);
}

#main-header .profile-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--way-secondary);
}

/* Notifications Modal */
.notifications-modal {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 380px;
  background: var(--way-white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.15);
  z-index: 1100;
  animation: slideDown 0.2s ease;
  border: 1px solid var(--way-gray-200);
  overflow: hidden;
}

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

.notifications-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--way-gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--way-gradient-primary);
}

.notifications-header h3 {
  color: var(--way-white);
  font-size: 1.1rem;
  font-weight: 600;
}

.notifications-header .mark-read {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--way-white);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}

.notifications-header .mark-read:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.notifications-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--way-gray-100);
  transition: background 0.2s;
  cursor: pointer;
}

.notification-item:hover {
  background: var(--way-gray-50);
}

.notification-item.unread {
  background: rgba(46, 125, 50, 0.05);
  position: relative;
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--way-primary);
}

.notification-item .notification-icon {
  width: 40px;
  height: 40px;
  background: var(--way-gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--way-primary);
}

.notification-item.unread .notification-icon {
  background: var(--way-primary);
  color: var(--way-white);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  color: var(--way-gray-800);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.notification-message {
  color: var(--way-gray-600);
  font-size: 0.85rem;
  margin-bottom: 4px;
  line-height: 1.4;
}

.notification-time {
  color: var(--way-gray-400);
  font-size: 0.75rem;
}

.notifications-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--way-gray-200);
  text-align: center;
  background: var(--way-gray-50);
}

.notifications-footer a {
  color: var(--way-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.notifications-footer a:hover {
  color: var(--way-primary-dark);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  #main-header .header-center {
    display: none;
  }
  #main-header .page-title {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  #main-header {
    height: 60px;
    padding: 0 16px;
  }
  
  #main-header .menu-toggle {
    font-size: 1.6rem;
    margin-right: 12px;
  }
  
  #main-header .page-title {
    font-size: 1rem;
  }
  
  #main-header .page-title::before {
    height: 16px;
  }
  
  #main-header .notification-icon {
    font-size: 1.3rem;
  }
  
  #main-header .profile-badge {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .notifications-modal {
    width: 340px;
    right: 10px;
    top: 70px;
  }
}

