.notifications-window {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  max-height: 80%;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #dee2e6;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.notifications-header h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
}

.notifications-content {
  flex: 1;
  overflow-y: auto;
  color: #212529;
  padding: 0;
}

.notifications-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.notifications-table thead {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.notifications-table thead th {
  border-bottom: 1px solid #dee2e6;
  padding: 12px 16px;
  font-size: 0.9em;
  font-weight: 600;
  color: #212529;
  text-align: left;
  background: #fff;
}

.notifications-table tbody tr {
  border-bottom: 1px solid #dee2e6;
}

.notifications-table tbody tr:last-child {
  border-bottom: none;
}

.notification-row {
  cursor: pointer;
  transition: background-color 0.2s;
}

.notification-row:hover {
  background-color: #f8f9fa;
}

.notification-row.notification-unread {
  background-color: #e7f3ff;
  font-weight: 600;
  color: #AA0000;
}

.notification-row.notification-unread:hover {
  background-color: #d0e9ff;
}

.notification-date {
  font-size: 0.85em;
  color: #212529;
  white-space: nowrap;
  padding: 12px 16px;
  width: 180px;
  vertical-align: top;
}

.notification-content {
  padding: 12px 16px;
  vertical-align: top;
}

.notification-title {
  font-size: 0.95em;
  color: #212529;
  margin-bottom: 4px;
  font-weight: 500;
}

.notification-text {
  font-size: 0.9em;
  line-height: 1.4;
  color: #495057;
}

.notification-link {
  padding: 12px 16px;
  text-align: right;
  width: 120px;
  vertical-align: middle;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #007bff;
  transition: color 0.2s;
}

.notification-link:hover {
  color: #0056b3;
}

.notification-bell {
  color: #dc3545;
  font-size: 1.2rem;
  margin-right: 0.5rem;
  animation: bellRing 1s ease-in-out infinite;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.notification-bell::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #dc3545;
  border-radius: 50%;
  border: 2px solid white;
}

@keyframes bellRing {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30% {
    transform: rotate(15deg);
  }
  20%, 40% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(0deg);
  }
}

@media (max-width: 768px) {
  .notifications-window {
    width: 95%;
    max-height: 70vh;
    top: 5%;
  }

  .notifications-header {
    padding: 12px 16px;
  }

  .notifications-header h5 {
    font-size: 1rem;
  }
  
  .notifications-table thead th {
    padding: 10px 12px;
    font-size: 0.85em;
  }
  
  .notification-date {
    font-size: 0.75em;
    width: 120px;
    padding: 10px 12px;
  }
  
  .notification-content {
    padding: 10px 12px;
  }
  
  .notification-title {
    color: #212529;
    font-size: 0.85em;
  }
  
  .notification-text {
    font-size: 0.8em;
  }
  
  .notification-link {
    width: 90px;
    padding: 10px 12px;
  }
}

