/* ═══════════════════════════════════════════════════════
   Global Toast Notification System
   ═══════════════════════════════════════════════════════ */
.isrv-toast-container {
  position: fixed;
  top: 72px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.isrv-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: 480px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(14, 21, 46, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.04) inset;
  color: #e2e8f0;
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.isrv-toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.isrv-toast-exit {
  opacity: 0;
  transform: translateX(40px);
}

.isrv-toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.isrv-toast-icon svg {
  width: 22px;
  height: 22px;
}

.isrv-toast-message {
  flex: 1;
  word-break: break-word;
}

.isrv-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.2s;
}

.isrv-toast-close:hover {
  color: #fff;
}

/* Toast type accent borders and icon colors */
.isrv-toast-success {
  border-left: 3px solid var(--green);
}
.isrv-toast-success .isrv-toast-icon { color: var(--green); }

.isrv-toast-warning {
  border-left: 3px solid var(--amber);
}
.isrv-toast-warning .isrv-toast-icon { color: var(--amber); }

.isrv-toast-error {
  border-left: 3px solid var(--red);
}
.isrv-toast-error .isrv-toast-icon { color: var(--red); }

.isrv-toast-info {
  border-left: 3px solid var(--primary);
}
.isrv-toast-info .isrv-toast-icon { color: var(--primary); }


/* ═══════════════════════════════════════════════════════
   Global Confirm Dialog
   ═══════════════════════════════════════════════════════ */
.isrv-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 18, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.isrv-confirm-visible {
  opacity: 1;
}

.isrv-confirm-exit {
  opacity: 0;
}

.isrv-confirm-dialog {
  background: rgba(14, 21, 46, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 14px;
  padding: 28px 32px 24px;
  min-width: 360px;
  max-width: 460px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04) inset, 0 0 60px rgba(0, 242, 254, 0.04);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.isrv-confirm-visible .isrv-confirm-dialog {
  transform: scale(1);
}

.isrv-confirm-exit .isrv-confirm-dialog {
  transform: scale(0.92);
}

.isrv-confirm-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--amber);
}

.isrv-confirm-icon svg {
  width: 40px;
  height: 40px;
}

.isrv-confirm-message {
  color: #e2e8f0;
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.isrv-confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.isrv-confirm-btn {
  padding: 9px 28px;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
}

.isrv-confirm-cancel {
  background: rgba(255, 255, 255, 0.06);
  color: #a0a8c0;
}

.isrv-confirm-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.isrv-confirm-ok {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(0, 242, 254, 0.08));
  color: var(--primary);
  border-color: rgba(0, 242, 254, 0.3);
}

.isrv-confirm-ok:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.35), rgba(0, 242, 254, 0.15));
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.15);
}
