/* Arc CRM – custom styles */

/* Smooth scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Sidebar transition on mobile */
#sidebar { transition: transform 0.3s cubic-bezier(.4,0,.2,1); }

/* Line clamp utility */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Toast animations */
@keyframes slideInRight {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}
.toast-enter { animation: slideInRight 0.35s ease forwards; }
.toast-leave { animation: slideOutRight 0.3s ease forwards; }

/* Pulse badge */
@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}
.badge-pulse { animation: pulseBadge 0.6s ease 2; }

/* Table hover */
tbody tr { transition: background-color 0.15s; }

/* Modal backdrop */
.modal-bg { backdrop-filter: blur(2px); }

/* Focus ring override to match brand */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.fa-spinner { animation: spin 1s linear infinite; }

/* ── Bannière permission notifications ─────────────────── */
@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-120%); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);     opacity: 1; }
}
.notif-banner { animation: slideDown 0.4s cubic-bezier(.34,1.56,.64,1) forwards; }

/* ── Flash onglet au clic notification ──────────────────── */
@keyframes flashBg {
  0%, 100% { background-color: transparent; }
  50%       { background-color: rgba(57,181,74,0.08); }
}
body.notif-flash { animation: flashBg 0.6s ease 2; }

/* ── Notification Panel (overlay Arc CRM branded) ───────── */
#notifPanelContainer {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: 360px;
  max-width: calc(100vw - 32px);
}

@keyframes notifSlideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes notifSlideOut {
  from { transform: translateX(0);    opacity: 1; max-height: 200px; margin-bottom: 0; }
  to   { transform: translateX(110%); opacity: 0; max-height: 0;     margin-bottom: -10px; }
}

.notif-panel-card {
  pointer-events: all;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(46,58,140,.18), 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
  animation: notifSlideIn 0.38s cubic-bezier(.34,1.4,.64,1) forwards;
  border-left: 4px solid #39B54A;
}
.notif-panel-card.leaving {
  animation: notifSlideOut 0.3s ease forwards;
}

/* En-tête */
.notif-panel-head {
  background: #0b1029;
  color: #fff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-panel-head .nph-logo {
  width: 22px; height: 22px;
  background: #39B54A;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.notif-panel-head .nph-title {
  font-size: 12px; font-weight: 700; letter-spacing: .03em; flex: 1;
}
.notif-panel-head .nph-time {
  font-size: 10px; opacity: .65;
}
.notif-panel-head .nph-close {
  background: none; border: none; color: rgba(255,255,255,.7);
  cursor: pointer; padding: 2px 4px; border-radius: 4px; font-size: 13px;
  transition: color .15s;
}
.notif-panel-head .nph-close:hover { color: #fff; }

/* Corps */
.notif-panel-body {
  padding: 12px 14px 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notif-panel-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: #EEF2FF;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 15px; color: #0b1029;
}
.notif-panel-icon.type-assignation { background:#EEF2FF; color:#0b1029; }
.notif-panel-icon.type-rapport     { background:#FEF3C7; color:#D97706; }
.notif-panel-icon.type-conge       { background:#D1FAE5; color:#059669; }
.notif-panel-icon.type-rappel      { background:#FEE2E2; color:#DC2626; }
.notif-panel-icon.type-info,
.notif-panel-icon.type-message     { background:#E0F2FE; color:#0284C7; }

.notif-panel-msg {
  flex: 1;
  font-size: 13px;
  color: #1f2937;
  line-height: 1.45;
}
.notif-panel-msg strong { display: block; font-weight: 600; color: #111827; margin-bottom: 2px; }

/* Pied */
.notif-panel-foot {
  padding: 8px 14px 10px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.notif-panel-foot button {
  padding: 5px 14px; border-radius: 7px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: none; transition: opacity .15s;
}
.notif-panel-foot .btn-voir   { background: #0b1029; color: #fff; }
.notif-panel-foot .btn-voir:hover   { opacity: .85; }
.notif-panel-foot .btn-fermer { background: #F3F4F6; color: #6B7280; }
.notif-panel-foot .btn-fermer:hover { background: #E5E7EB; }

/* Barre de progression */
.notif-panel-progress {
  height: 3px; background: #E5E7EB; position: relative; overflow: hidden;
}
.notif-panel-progress-bar {
  position: absolute; top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, #39B54A, #0b1029);
  transition: width linear;
}
