* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  background: #0f172a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 400px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  color: #f1f5f9;
  margin-bottom: 8px;
}

.header p {
  color: #94a3b8;
}

.notification-wrapper {
  position: relative;
}

.bell-btn {
  margin: 0 auto;
  position: relative;
  width: 50px;
  height: 50px;
  border: none;
  background: #1e293b;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.bell-btn:hover {
  background: #334155;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.bell-btn i {
  color: #e2e8f0;
  font-size: 1.5rem;
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.notification-dropdown {
  position: absolute;
  top: 60px;
  width: 320px;
  background: #1e293b;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0; /* makes the element not visible but you can still interact with it i.e. click */
  visibility: hidden; /* makes the element invisible and prevents interaction */
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.notification-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 16px 20px;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-header h3 {
  font-size: 18px;
  color: #f1f5f9;
}

.mark-read {
  background: none;
  border: none;
  color: #60a5fa;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: 0.2s;
}

.mark-read:hover {
  background: #1e3a5f;
}

.notifications-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  padding: 16px 20px;
  border-bottom: 1px solid #334155;
  cursor: pointer;
  transition: 0.2s;
  position: relative;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background: #334155;
}

.notification-item.unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #3b82f6;
}

.notification-title {
  font-size: 15px;
  color: #f1f5f9;
  margin-bottom: 4px;
  font-weight: 500;
}

.notification-time {
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 480px) {
  .notification-dropdown {
    width: calc(100vw - 40px);
  }
}