/* Dashboard Styles */

/* Loader */
.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Badges */
.badge {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-error { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-gray { background: #f3f4f6; color: #4b5563; }

/* Tabs */
.tab {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.tab:hover { color: #2563eb; }
.tab.active {
  border-bottom-color: #2563eb;
  color: #2563eb;
}

/* Invoice Row */
.invoice-row {
  transition: all 0.15s;
}
.invoice-row:hover {
  background: #eff6ff;
}

/* JSON Viewer */
.json-viewer {
  background: #1f2937;
  color: #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow: auto;
  max-height: 24rem;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
}

/* Modal Animation */
.modal-enter {
  animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Funnel Steps */
.funnel-step {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1.5rem;
  border-left: 2px solid #e5e7eb;
}
.funnel-step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.funnel-step::before {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: white;
  border: 2px solid #d1d5db;
}
.funnel-step.completed::before {
  border-color: #10b981;
  background: #10b981;
}
.funnel-step.completed {
  border-left-color: #a7f3d0;
}

/* Status Cards */
.stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}

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