// /media/hf/data/projects/Dawinder/transport/tailwind.config.ts
import type { Config } from "tailwindcss"

const config = {
  darkMode: ["class"],
  content: [
    './pages/**/*.{ts,tsx}',
    './components/**/*.{ts,tsx}',
    './app/**/*.{ts,tsx}',
    './src/**/*.{ts,tsx}',
  ],
  prefix: "",
  theme: {
    container: {
      center: true,
      padding: "2rem",
      screens: {
        "2xl": "1400px",
      },
    },
    extend: {
      colors: {
        background: "var(--background)",
        surface: "var(--surface)",
        border: "var(--border)",
        primary: {
          DEFAULT: "var(--primary)",
        },
        text: {
          primary: "var(--text-primary)",
          muted: "var(--text-muted)",
          hint: "var(--text-hint)",
        },
        status: {
          green: "var(--status-green)",
          blue: "var(--status-blue)",
          red: "var(--status-red)",
          purple: "var(--status-purple)",
          amber: "var(--status-amber)",
        },
      },
      borderRadius: {
        lg: "var(--radius)",
        md: "calc(var(--radius) - 2px)",
        sm: "calc(var(--radius) - 4px)",
      },
      keyframes: {
        "accordion-down": {
          from: { height: "0" },
          to: { height: "var(--radix-accordion-content-height)" },
        },
        "accordion-up": {
          from: { height: "var(--radix-accordion-content-height)" },
          to: { height: "0" },
        },
        esFloat: {
          '0%, 100%': { transform: 'translateY(0px)' },
          '50%': { transform: 'translateY(-8px)' },
        },
        esScan: {
          '0%': { transform: 'translateY(0)', opacity: '0' },
          '20%': { opacity: '1' },
          '80%': { opacity: '1' },
          '100%': { transform: 'translateY(56px)', opacity: '0' },
        },
      },
      animation: {
        "accordion-down": "accordion-down 0.2s ease-out",
        "accordion-up": "accordion-up 0.2s ease-out",
        'es-float': 'esFloat 3s ease-in-out infinite',
        'es-scan': 'esScan 2.5s ease-in-out infinite',
        'es-dot': 'esDot 2s ease-in-out infinite',
      },
      esDot: {
        '0%, 100%': { opacity: '0.25' },
        '50%': { opacity: '1' },
      },
    },
  },
  plugins: [require("tailwindcss-animate")],
} satisfies Config

export default config
