/* ===== TOAST / POPUP NOTIFICATION SYSTEM ===== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.giheke-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e8f0f5;
  min-width: 340px;
  max-width: 440px;
  animation: toastSlideIn 0.35s ease-out;
  transition: all 0.3s ease;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.giheke-toast.toast-success { border-left: 4px solid #16a34a; }
.giheke-toast.toast-error { border-left: 4px solid #dc2626; }
.giheke-toast.toast-warning { border-left: 4px solid #f59e0b; }
.giheke-toast.toast-info { border-left: 4px solid #3b82f6; }

.giheke-toast .toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.giheke-toast.toast-success .toast-icon { background: #f0fdf4; color: #16a34a; }
.giheke-toast.toast-error .toast-icon { background: #fef2f2; color: #dc2626; }
.giheke-toast.toast-warning .toast-icon { background: #fffbeb; color: #f59e0b; }
.giheke-toast.toast-info .toast-icon { background: #eff6ff; color: #3b82f6; }

.giheke-toast .toast-content { flex: 1; }
.giheke-toast .toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  margin-bottom: 2px;
}
.giheke-toast .toast-message {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}
.giheke-toast .toast-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.giheke-toast .toast-close:hover {
  background: #f1f5f9;
  color: #475569;
}

.giheke-toast.toast-hiding {
  animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(80px); }
}

/* ===== MODAL POPUP ===== */
.modern-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modern-modal-overlay.active { display: flex; }

.modern-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  animation: modalPop 0.3s ease-out;
}

.modern-modal .modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}
.modern-modal .modal-icon.success { background: #f0fdf4; color: #16a34a; }
.modern-modal .modal-icon.error { background: #fef2f2; color: #dc2626; }

.modern-modal h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.modern-modal p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.6;
}

.modern-modal .btn-modal {
  padding: 10px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: #525fe1;
  color: #fff;
  font-family: inherit;
}

.modern-modal .btn-modal:hover { background: #3d47c9; transform: translateY(-1px); }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== NOTIFICATION BADGE ===== */
.notif-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  line-height: 1;
  animation: notifPulse 2s infinite;
}

@keyframes notifPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ===== SKELETON LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-card {
  height: 120px;
  margin-bottom: 16px;
}

.skeleton-table-row {
  height: 48px;
  margin-bottom: 4px;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
  width: 60%;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
