/* Notifications Hub Custom CSS Styling Sheet */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

:root {
  --bg-main: #060814;
  --bg-sidebar: #0b0e24;
  --bg-card: #0d1233;
  --bg-card-inner: #070a21;
  --text-main: #ffffff;
  --text-muted: #8fa0dd;
  --text-dim: #506199;
  --accent-purple: #6366f1;
  --accent-blue: #2563eb;
  --accent-red: #ef4444;
  --glow-purple: rgba(99, 102, 241, 0.15);
  --glow-blue: rgba(37, 99, 235, 0.2);
  --glow-red: rgba(239, 68, 68, 0.15);
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- TOP NAVBAR --- */
.top-bar {
  height: 70px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo.page-title {
  position: absolute;
  left: 72px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  z-index: 1250;
}

.logo.page-title .page-title-icon {
  color: var(--accent-purple);
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px var(--accent-purple));
}

.logo.page-title span {
  color: var(--accent-purple);
}

.top-nav {
  display: flex;
  gap: 32px;
}

.top-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 24px 0;
  transition: color 0.2s;
}

.top-link:hover {
  color: #fff;
}

.top-actions {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  text-decoration: none;
}

.icon-btn:hover, .icon-btn.active {
  color: #fff;
}

.icon-btn .badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-purple);
  border-radius: 50%;
  border: 1px solid var(--bg-main);
  box-shadow: 0 0 8px var(--accent-purple);
}

.profile-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* --- MAIN CONTENT GRID --- */
.content-grid {
  padding: 32px 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.left-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.right-column {
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- HERO CARD BANNER --- */
.hero-card {
  background: linear-gradient(135deg, #0d1233 0%, #070919 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.hero-info {
  max-width: 70%;
}

.hero-info h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.hero-info p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  width: 140px;
  height: 140px;
}

.bell-glow {
  position: absolute;
  width: 85px;
  height: 85px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: 15px;
  right: 15px;
  filter: blur(10px);
  opacity: 0.5;
}

/* --- NOTIFICATIONS HUB CONTAINER --- */
.notifications-hub {
  background-color: var(--bg-card-inner);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  min-height: 450px;
  display: flex;
  flex-direction: column;
}

.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 16px;
}

.hub-header h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-header h2 span {
  font-size: 13px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-purple);
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.clear-all-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.clear-all-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.3);
}

/* NOTIFICATION LIST */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notification-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.notification-item.unread {
  border-left: 3px solid var(--accent-purple);
  background: rgba(99, 102, 241, 0.03);
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.noti-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.noti-icon-box.system {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-purple);
}

.noti-icon-box.quiz {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.noti-icon-box.mentor {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.noti-icon-box.alert {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.noti-content {
  flex: 1;
  padding-right: 24px;
}

.noti-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}

.noti-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.noti-time {
  font-size: 11px;
  color: var(--text-dim);
}

.noti-message {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.noti-dismiss-btn {
  position: absolute;
  right: 16px;
  top: 18px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.noti-dismiss-btn:hover {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
}

/* DISMISS ANIMATION */
.notification-item.dismissing {
  opacity: 0;
  transform: translateX(60px);
  margin-bottom: -76px; /* Collapses height of item container */
  padding-top: 0;
  padding-bottom: 0;
  height: 0;
  border-top-width: 0;
  border-bottom-width: 0;
  pointer-events: none;
}

/* --- EMPTY STATE --- */
.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.4s ease-out forwards;
}

.empty-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  margin-bottom: 20px;
  position: relative;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.empty-icon-box i {
  width: 32px;
  height: 32px;
}

.empty-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  max-width: 280px;
  line-height: 1.5;
}

/* SIMULATION SWITCHER */
.simulation-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.simulation-bar h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.sim-actions {
  display: flex;
  gap: 10px;
}

.sim-btn {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-purple);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sim-btn:hover {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}

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

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
  .content-grid {
    flex-direction: column;
    padding: 24px 20px;
  }
  
  .right-column {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 0 20px;
  }
  
  .logo.page-title {
    left: 64px;
  }
  
  .top-nav {
    display: none;
  }
  
  .hero-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
  
  .hero-info {
    max-width: 100%;
  }
  
  .noti-title-row {
    flex-direction: column;
    gap: 4px;
  }
  
  .noti-time {
    margin-top: 2px;
  }
}
