/* css/notification.css - সম্পূর্ণ আপডেটেড এবং অপ্টিমাইজড */

/* === নোটিফিকেশন ফিড (হোম পেজ) - স্ট্যাটাস সহ === */
.notification-feed-container {
  display: grid;
  gap: 1.5rem;
}

.notification-feed-item {
  background-color: #f9f9f9;
  border-left: 5px solid; /* রঙ JS থেকে নিয়ন্ত্রিত ক্লাসের মাধ্যমে আসবে */
  padding: 1rem 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
  opacity: 1;
}

.notification-feed-item.unread {
  background-color: #ffffff;
  border-left-color: var(--primary-color, #007bff); 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.notification-feed-item.unread .feed-icon i {
  color: var(--primary-color, #007bff);
}

.notification-feed-item.read {
  opacity: 0.8;
  background-color: #f0f2f5;
  border-left-color: #adb5bd; /* ধূসর */
}
.notification-feed-item.read:hover {
  opacity: 1;
}
.notification-feed-item.read .feed-icon i {
  color: #6c757d;
}

.notification-feed-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.notification-feed-item a {
  text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: 1rem;
}

.notification-feed-item .feed-icon i {
  font-size: 1.5rem;
}

.notification-feed-item .feed-content h4 {
  margin: 0 0 0.25rem; font-family: 'Hind Siliguri', sans-serif; color: #333;
}
.notification-feed-item .feed-content p {
  margin: 0; font-size: 0.95rem; color: #555;
}
.notification-feed-item .feed-content span {
  font-size: 0.8rem; color: #888; margin-top: 0.5rem; display: block;
}

/* === নোটিফিকেশন বেল এবং ব্যাজ === */
.notification-bell-btn {
  background: none; border: none; font-size: 1.5rem;
  color: #333; cursor: pointer; position: relative; padding: 0.5rem;
}
#notification-badge {
  position: absolute; top: 0; right: 0;
  background-color: #dc3545; color: white; border-radius: 50%;
  min-width: 20px; height: 20px; font-size: 12px;
  display: none; /* JS দিয়ে flex করা হবে */
  align-items: center; justify-content: center;
  font-weight: bold; border: 2px solid white;
  padding: 0 4px;
}

/* === নোটিফিকেশন মডাল === */
#notification-modal {
  display: none; /* JS দিয়ে flex করা হবে */
  position: fixed; z-index: 1000;
  right: 20px; top: 80px; width: 400px;
  max-height: 80vh; background-color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  flex-direction: column;
}
#notification-modal h3 {
  padding: 1rem 1.5rem; margin: 0;
  font-family: 'Hind Siliguri', sans-serif;
  border-bottom: 1px solid #eee; background-color: #f7f9fc;
  border-top-left-radius: 12px; border-top-right-radius: 12px;
}
#close-notification-modal {
  position: absolute; top: 10px; right: 15px;
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: #888;
}
#close-notification-modal:hover { color: #333; }

/* নোটিফিকেশন লিস্ট */
#notification-list {
  list-style: none; padding: 0; margin: 0;
  overflow-y: auto; flex-grow: 1;
}

#notification-list .notification-list-item {
  display: flex; align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s, opacity 0.3s;
}
#notification-list .notification-list-item:last-child { border-bottom: none; }

#notification-list .notification-list-item.read {
  opacity: 0.7;
}
#notification-list .notification-list-item:hover {
  background-color: #f9f9f9;
  opacity: 1;
}

.notification-link {
  flex-grow: 1; display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit;
}
.notification-link .feed-icon i { color: var(--primary-color, #007bff); font-size: 1.4rem; }
.notification-list-item.read .notification-link .feed-icon i { color: #888; }

.feed-content h4 { margin: 0 0 4px; font-size: 1rem; color: #333; }
.feed-content p { margin: 0; font-size: 0.9rem; color: #666; }
.feed-content small { font-size: 0.8rem; color: #999; display: block; margin-top: 5px; }

.no-notification-message { text-align: center; color: #888; padding: 2rem; border: none !important; }

/* নোটিফিকেশন অ্যাকশন বাটন */
.notification-actions { display: flex; align-items: center; margin-left: 0.5rem; opacity: 0; transition: opacity 0.3s; }
.notification-list-item:hover .notification-actions { opacity: 1; }

.notification-actions button {
  background: none; border: 1px solid transparent;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  margin: 0 2px; transition: all 0.2s;
}
.notification-actions .mark-as-read-btn { color: #28a745; }
.notification-actions .mark-as-read-btn:hover { background-color: #eaf6ec; }
.notification-actions .delete-notification-btn { color: #dc3545; }
.notification-actions .delete-notification-btn:hover { background-color: #fbebeb; }

/* ফুটার বাটন */
.notification-modal-footer {
  padding: 0.75rem 1.5rem; border-top: 1px solid #eee;
  background-color: #f7f9fc; display: flex; justify-content: space-between;
  border-bottom-left-radius: 12px; border-bottom-right-radius: 12px;
}
.btn-notification-action {
  background: none; border: none; padding: 0.5rem 1rem;
  border-radius: 6px; cursor: pointer; font-weight: 600;
  transition: background-color 0.3s; font-family: 'Hind Siliguri', sans-serif;
  display: flex; align-items: center; gap: 0.5rem;
}
.btn-notification-action.btn-clear { color: #dc3545; }
.btn-notification-action.btn-clear:hover { background-color: #f8d7da; }
.btn-notification-action.btn-close { color: #007bff; }
.btn-notification-action.btn-close:hover { background-color: #e7f3ff; }

/* === মোবাইল ডিভাইসের জন্য রেসপন্সিভ স্টাইল === */
@media (max-width: 768px) {
  #notification-modal {
    width: auto; left: 10px; right: 10px;
    top: 70px; max-height: 85vh;
  }
  .notification-actions { opacity: 1; }
}


/* Enhanced Badge Animation */
.notification-bell-btn:hover {
  transform: scale(1.1);
}

#notification-badge {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
