/* ===================== LOADER ===================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: none; /* FIX */
  justify-content: center;
  align-items: center;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* When active */
.loader.active {
  display: flex;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top: 4px solid var(--cyan);
  border-radius: 50%;
  animation: spin 5s linear infinite;
}

.boot-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0C0F1A;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.ui-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12,15,26,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  border-left: 4px solid var(--cyan);
  padding: 12px 20px;
  border-radius: 6px;
  color: var(--text-primary);
  z-index: 9999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-size: 14px;

  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hide {
  opacity: 0;
  transform: translateY(20px);
}

/* Toast Types */
.toast-success {
  border-left-color: #22c55e;
}

.toast-danger {
  border-left-color: #ef4444;
}

.toast-info {
  border-left-color: var(--cyan);
}

/* ===================== MODAL ===================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: rgba(12,15,26,0.85);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 10000;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease-in-out;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 8px;
  width: 500px;
  max-width: 95%;
}