/* Notification badge */
.notif-badge{
  position:absolute;
  top:8px;
  right:8px;
  min-width:22px;
  padding:0 8px;
  border-radius:14px;
  background:#ef4444;
  color:#fff;
  font-size:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  box-shadow:0 4px 10px rgba(0,0,0,0.22);
  line-height:1.6;
}

/* Toast container */
.toast-container{
  position:fixed;
  top:16px;
  right:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  z-index:99999;
  pointer-events:none;
}

.toast{
  pointer-events:auto;
  padding:14px 18px;
  border-radius:12px;
  box-shadow:0 12px 36px rgba(2,6,23,0.14);
  display:flex;
  align-items:center;
  gap:14px;
  min-width:420px;
  max-width:560px;
  transition:all .22s ease;
}
.toast.hide{ opacity:0; transform:translateY(-10px); }
.toast .toast-msg{ flex:1; font-size:15px; }
.toast-success{ height: 50px; border-left: 6px solid #16a34a; color:#16a34a; background: #c5d3ca;}
.toast-error{ height: 50px; border-left:6px solid #ef4444; color:#ef4444; background: #f8c6c6; }
.toast-loading{ height: 50px; border-left:6px solid #0ea5e9; color:#0ea5e9; background: #c5e8f8; }
.toast .spinner{
  width:18px;height:18px;border-radius:50%;border:2px solid rgba(0,0,0,0.08);border-top-color:rgba(0,0,0,0.45);animation:spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg);} }

/* Page layout for notifications.php */
body.notifications-page{
  margin:0;
  font-family:Arial, sans-serif;
  background:#f5f6fa;
}

/* HEADER */
.notifications-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 20px;
  background:#fff;
  border-bottom:1px solid #e5e7eb;
}

.notifications-back{
  cursor:pointer;
  font-size:14px;
}

/* FILTER BAR */
.notifications-filter{
  padding:15px 20px;
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.left-filter,
.right-filter{
  display:flex;
  gap:10px;
  align-items:center;
}

.notifications-filter select{
  padding:8px;
  border-radius:6px;
  border:1px solid #ddd;
  background:#fff;
}

/* LIST */
.notifications-list{
  padding:10px 20px;
}

.notif-item{
  background:#fff;
  border-radius:12px;
  padding:16px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  cursor:pointer;
  transition:all 0.2s ease;
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
}

.notif-item:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.notif-item.unread{
  border-left:5px solid #0b2a6f;
  background:#f0f5ff;
}

.notif-item.selected{
  border-left:5px solid #f59e0b;
  background:#fff7d6;
}

.mark-read-btn{
  background:#0b2a6f;
  color:#fff;
  border:none;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
  font-size:12px;
}

/* LEFT */
.notif-left{
  max-width:75%;
}

.notif-tag{
  font-size:11px;
  padding:3px 6px;
  border-radius:4px;
  color:#fff;
  display:inline-block;
  margin-bottom:6px;
}

.notif-title{font-weight:bold;}
.notif-desc{font-size:13px;color:#666;}

/* RIGHT */
.notif-right{
  text-align:right;
  font-size:12px;
  color:#777;
}

.notif-time{margin-bottom:4px;}

/* TAG COLORS */
.records{background:#6b7280;}
.sales{background:#16a34a;}
.inventory{background:#0ea5e9;}
.egg{background:#f59e0b;}
.mort{background:#ef4444;}
.feed{background:#0b2a6f;}
.other{background:#8b5cf6;}

/* SELECT BUTTON */
#selectBtn{
position:fixed;
bottom:20px;
right:20px;
background:#0b2a6f;
color:#fff;
padding:12px 16px;
border-radius:50px;
cursor:pointer;
font-weight:bold;
box-shadow:0 5px 15px rgba(0,0,0,0.2);
z-index:999;
}

/* DELETE BAR */
#deleteBar{
position:fixed;
bottom:80px;
right:20px;
display:none;
gap:10px;
z-index:999;
}

/* Buttons */
.btn{ padding:10px 14px; border-radius:8px; border:none; cursor:pointer; font-weight:600; }
.btn-danger{ background:#ef4444; color:#fff; }
.btn-muted{ background:#6b7280; color:#fff; }

/* Confirm modal */
.confirm-modal{ display:none; position:fixed; inset:0; background:rgba(0,0,0,0.35); align-items:center; justify-content:center; z-index:1100; }
.confirm-modal.open{ display:flex; }
.confirm-dialog{ background:#fff; padding:20px; border-radius:12px; width:320px; box-shadow:0 12px 36px rgba(0,0,0,0.18); text-align:center; }
.confirm-dialog h3{ margin:0 0 8px 0; }
.confirm-dialog p{ color:#555; margin:0 0 16px 0; }
.confirm-actions{ display:flex; gap:10px; }

/* Empty state */
.empty-state{ text-align:center; padding:40px; color:#888; }
.empty-emoji{ font-size:40px; margin-bottom:8px; }
