import type { Config } from "tailwindcss";

const config: Config = {
  darkMode: ["class"],
  content: [
    "./app/**/*.{ts,tsx}",
    "./components/**/*.{ts,tsx}",
  ],
  theme: {
    container: {
      center: true,
      padding: "2rem",
      screens: { "2xl": "1400px" },
    },
    extend: {
      colors: {
        // Palette Residence Marrakech
        sidebar: "#1A1A2E",
        accent: {
          DEFAULT: "#C9A84C", // doré
          foreground: "#FFFFFF",
        },
        success: "#2D6A4F",
        danger: "#DC2626",
        warning: "#EA580C",
        info: "#2563EB",
        muted: {
          DEFAULT: "#F8F9FA",
          foreground: "#6B7280",
        },
        background: "#F8F9FA",
        foreground: "#1A1A2E",
        card: {
          DEFAULT: "#FFFFFF",
          foreground: "#1A1A2E",
        },
        border: "#E5E7EB",
        input: "#E5E7EB",
        ring: "#C9A84C",
        primary: {
          DEFAULT: "#1A1A2E",
          foreground: "#FFFFFF",
        },
        secondary: {
          DEFAULT: "#F1F5F9",
          foreground: "#1A1A2E",
        },
        destructive: {
          DEFAULT: "#DC2626",
          foreground: "#FFFFFF",
        },
        popover: {
          DEFAULT: "#FFFFFF",
          foreground: "#1A1A2E",
        },
      },
      borderRadius: {
        lg: "0.625rem",
        md: "0.5rem",
        sm: "0.375rem",
      },
      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" },
        },
      },
      animation: {
        "accordion-down": "accordion-down 0.2s ease-out",
        "accordion-up": "accordion-up 0.2s ease-out",
      },
    },
  },
  plugins: [require("tailwindcss-animate")],
};

export default config;
