@import "tailwindcss";
@config "../../tailwind.config.ts";

@import "../styles/colors.css";

:root {
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Apple Color Emoji",
    "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global clickable elements pointer */
button,
[role="button"],
a,
input[type="submit"],
input[type="button"],
input[type="checkbox"],
input[type="radio"],
select {
  cursor: pointer;
}

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

@utility animate-spin-slow {
  animation: spin 3s linear infinite;
}

@keyframes soft-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@utility animate-soft-pulse {
  animation: soft-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Highlight animation for just-saved command */
@keyframes command-highlight {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6);
    border-color: rgba(99, 102, 241, 0.8);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
    border-color: rgba(99, 102, 241, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

.command-just-saved {
  animation: command-highlight 2s ease-out;
  border-color: rgba(99, 102, 241, 0.8);
}

@keyframes progress-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

@utility animate-progress-shimmer {
  animation: progress-shimmer 2s infinite linear;
}
