/* Custom styles for CrawlKit */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

/* Code blocks */
.code-block {
  background: #1e293b;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Masked key */
.masked-key {
  font-family: monospace;
  letter-spacing: 0.1em;
}

/* Dashboard sidebar */
.sidebar-active {
  background: #1e293b;
  border-left: 3px solid #4f46e5;
}

/* Modal backdrop */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #374151;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1f2937;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1f2937;
}

::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Button loading state */
.btn-loading {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Plan badge */
.plan-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.plan-free {
  background: #374151;
  color: #9ca3af;
}

.plan-starter {
  background: #3b82f6;
  color: white;
}

.plan-pro {
  background: #8b5cf6;
  color: white;
}

.plan-enterprise {
  background: #f59e0b;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}
