/* ═══════════════════════════════════════════════════════════
   OKYU HRM – Notifications (Toast + Panel)
   ═══════════════════════════════════════════════════════════ */

/* --- Notification Button --- */
.notif-btn {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.notif-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
}

/* --- Notification Panel (Slide from right) --- */
.notif-panel {
  position: fixed;
  right: -400px;
  top: 0;
  bottom: 0;
  width: 380px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 200;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.notif-panel.open {
  right: 0;
}

.notif-panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.notif-item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
}

.notif-item:hover {
  background: var(--bg-card-hover);
}

.notif-item.unread  { border-left-color: var(--danger); }
.notif-item.sick     { border-left-color: var(--danger); }
.notif-item.vacation { border-left-color: var(--info); }
.notif-item.doc      { border-left-color: var(--success); }
.notif-item.late     { border-left-color: var(--late-color); }

.notif-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.notif-item-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.notif-item-time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.notif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 199;
  display: none;
}

.notif-overlay.open {
  display: block;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 0.85rem;
  min-width: 280px;
  box-shadow: var(--shadow);
  animation: slideInR 0.3s ease, fadeO 0.3s ease 2.7s forwards;
}

.toast.warn {
  border-left-color: var(--warning);
}

.toast.err {
  border-left-color: var(--danger);
}
