@import "tailwindcss";

@source "../app/test-cases";

@theme {
  --color-background: hsl(0 0% 98%);
  --color-foreground: hsl(222 47% 11%);
  --color-card: hsl(0 0% 100%);
  --color-card-foreground: hsl(222 47% 11%);
  --color-primary: hsl(221 83% 53%);
  --color-primary-foreground: hsl(0 0% 100%);
  --color-secondary: hsl(210 40% 96%);
  --color-secondary-foreground: hsl(222 47% 11%);
  --color-accent: hsl(210 40% 96%);
  --color-accent-foreground: hsl(222 47% 11%);
  --color-muted: hsl(210 40% 96%);
  --color-muted-foreground: hsl(215 16% 47%);
  --color-destructive: hsl(0 84% 60%);
  --color-destructive-foreground: hsl(0 0% 100%);
  --color-success: hsl(142 71% 45%);
  --color-border: hsl(214 32% 91%);
  --color-input: hsl(214 32% 91%);
  --color-ring: hsl(221 83% 53%);
  --radius: 0.5rem;
}

* {
  border-color: var(--color-border);
}

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: "rlig" 1, "calt" 1;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button:not(:disabled),
[role='button']:not([aria-disabled='true']) {
  cursor: pointer;
}

button:disabled,
[role='button'][aria-disabled='true'] {
  cursor: not-allowed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

code,
pre,
.font-mono {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
}

.glass-panel {
  position: relative;
  overflow: hidden;
  background-color: white;
  border: 1px solid rgb(229 231 235);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.input-field {
  width: 100%;
  background-color: white;
  border: 1px solid var(--color-input);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--color-foreground);
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.input-field::placeholder {
  color: var(--color-muted-foreground);
}

.input-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 90%, black);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  border: 1px solid;
}

.status-badge-pass {
  background-color: rgb(240 253 244);
  color: rgb(21 128 61);
  border-color: rgb(187 247 208);
}

.status-badge-fail {
  background-color: rgb(254 242 242);
  color: rgb(185 28 28);
  border-color: rgb(254 202 202);
}

.status-badge-running {
  background-color: rgb(239 246 255);
  color: rgb(29 78 216);
  border-color: rgb(191 219 254);
}

.status-badge-cancelled {
  background-color: rgb(249 250 251);
  color: rgb(55 65 81);
  border-color: rgb(229 231 235);
}

.status-badge-queued {
  background-color: rgb(243 232 255);
  color: rgb(107 33 168);
  border-color: rgb(216 180 254);
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.375rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  border: 2px solid white;
  z-index: 10;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.timeline-line {
  position: absolute;
  left: 4px;
  top: 1.25rem;
  bottom: 0;
  width: 1px;
  background-color: rgb(229 231 235);
}

.text-security-disc {
  -webkit-text-security: disc;
  font-family: text-security-disc;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--color-muted-foreground) 30%, transparent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--color-muted-foreground) 50%, transparent);
}

/* Minimal Animations */
@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-block {
  background: linear-gradient(
    90deg,
    rgb(229 231 235) 25%,
    rgb(243 244 246) 37%,
    rgb(229 231 235) 63%
  );
  background-size: 400% 100%;
  animation: skeleton-shimmer 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  border-radius: 0.375rem;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block {
    animation: none;
  }
}
