/* Notifications Page Styles matching www.myjobs.ai/en/notifications */

.notifications-page-main {
  background-color: #f8fafc;
  min-height: calc(100vh - 220px);
  padding: 2.5rem 0 5rem 0;
}

.notifications-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.notifications-page-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.notifications-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notifications-mark-read-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--color-primary, #1c7bff);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.notifications-mark-read-btn:hover {
  background: var(--color-primary-light, #1c7bff17);
  border-color: var(--color-primary-border, #b9d8ff);
  color: var(--color-primary-hover, #6e27ec);
}

.notifications-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 6px 16px rgba(0, 0, 0, 0.02);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Empty State - Exact match to user screenshot */
.notifications-empty-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  padding: 3rem 1.5rem;
  text-align: center;
}

.notifications-empty-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Notifications Items List */
.page-notif-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.page-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease, opacity 0.25s ease, transform 0.25s ease;
  position: relative;
}

.page-notif-item:last-child {
  border-bottom: none;
}

.page-notif-item:hover {
  background-color: #f8fafc;
}

.page-notif-item.unread {
  background-color: #fbf9ff;
}

.page-notif-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--color-primary, #1c7bff);
}

.page-notif-avatar-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.page-notif-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.page-notif-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary-light, #1c7bff17);
  color: var(--color-primary, #1c7bff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.page-notif-body {
  flex: 1;
  min-width: 0;
}

.page-notif-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.page-notif-msg {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0 0 0.5rem 0;
  line-height: 1.45;
  word-break: break-word;
}

.page-notif-time {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.page-notif-action {
  margin-top: 0.35rem;
}

.page-notif-action a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary, #1c7bff);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s ease;
}

.page-notif-action a:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

/* Action Buttons for Each Notification Item */
.page-notif-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: 1rem;
  align-self: flex-start;
  padding-top: 2px;
}

.page-notif-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Mark as Read Button */
.notif-btn-mark-read:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--color-primary, #1c7bff);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(28, 123, 255, 0.15);
}

.notif-btn-mark-read.is-read {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #10b981;
}

.notif-btn-mark-read.is-read:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #059669;
}

/* Delete / Remove Single Notification Button */
.notif-btn-delete:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.15);
}

.page-notif-action-btn:active {
  transform: translateY(0);
}

/* Notifications Pagination */
.notifications-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.notif-page-numbers {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.notif-page-number,
.notif-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.notif-page-number:hover,
.notif-page-btn:hover {
  border-color: var(--color-primary, #1c7bff);
  color: var(--color-primary, #1c7bff);
  background: #eff6ff;
}

.notif-page-number.active {
  background: var(--color-primary, #1c7bff);
  color: #ffffff;
  border-color: var(--color-primary, #1c7bff);
  box-shadow: 0 4px 12px rgba(28, 123, 255, 0.25);
}

/* Notifications Card Footer: Clear All Button */
.notifications-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.75rem 1.75rem;
  border-top: 1px solid #f1f5f9;
  background: #fbfcfe;
}

.notifications-clear-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  background: #ffffff;
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.08);
}

.notifications-clear-all-btn svg {
  transition: transform 0.2s ease;
}

.notifications-clear-all-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
  transform: translateY(-1px);
}

.notifications-clear-all-btn:hover svg {
  transform: scale(1.1);
  stroke: #ffffff;
}

.notifications-clear-all-btn:active {
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .notifications-page-main {
    padding: 1.5rem 0 3.5rem 0;
  }
  
  .notifications-card {
    min-height: 380px;
    border-radius: 14px;
  }
  
  .notifications-empty-box {
    min-height: 350px;
  }
  
  .notifications-page-title {
    font-size: 1.4rem;
  }

  .page-notif-item {
    padding: 1.15rem 1.25rem;
    gap: 1rem;
  }

  .page-notif-avatar-wrap {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .page-notif-title {
    font-size: 0.95rem;
  }

  .page-notif-msg {
    font-size: 0.88rem;
  }

  .page-notif-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .page-notif-action-btn svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 480px) {
  .page-notif-item {
    flex-wrap: wrap;
    position: relative;
    padding-bottom: 3.25rem;
  }

  .page-notif-item-actions {
    position: absolute;
    bottom: 0.9rem;
    right: 1.25rem;
    margin-left: 0;
  }

  .notifications-clear-all-btn {
    width: 100%;
  }
}
