@import "tailwindcss";
@import "tw-animate-css";
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600&display=swap");

@custom-variant dark (&:is(.dark *));

:root {
  /* Updated color tokens to match plumbing website design brief */
  --background: #ffffff;
  --foreground: #222222;
  --card: #fefce8;
  --card-foreground: #222222;
  --popover: #fefce8;
  --popover-foreground: #222222;
  --primary: #fcb700;
  --primary-foreground: #222222;
  --secondary: #f3f3f3;
  --secondary-foreground: #222222;
  --muted: #f3f3f3;
  --muted-foreground: #666666;
  --accent: #0066c0;
  --accent-foreground: #ffffff;
  --destructive: #d01418;
  --destructive-foreground: #ffffff;
  --border: #6666662a;
  --input: #ffffff;
  --ring: #fcb700;
  --chart-1: #fcb700;
  --chart-2: #0066c0;
  --chart-3: #d01418;
  --chart-4: #666666;
  --chart-5: #f3f3f3;
  --radius: 0.5rem;
  --sidebar: #fefce8;
  --sidebar-foreground: #222222;
  --sidebar-primary: #fcb700;
  --sidebar-primary-foreground: #222222;
  --sidebar-accent: #0066c0;
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: #6666662a;
  --sidebar-ring: #fcb700;

  /* Added custom plumbing website color variables */
  --main-color: #fcb700;
  --dark-color: #222222;
  --parg-color: #666666;
  --bg-color: #f3f3f3;
  --p-color: #7b7b7b;
  --dark-red: #d01418;
  --border-color: #6666662a;
  --name-item: #0066c0;
  --white-color: #fff;
}

.dark {
  --background: #222222;
  --foreground: #ffffff;
  --card: #2a2a2a;
  --card-foreground: #ffffff;
  --popover: #2a2a2a;
  --popover-foreground: #ffffff;
  --primary: #fcb700;
  --primary-foreground: #222222;
  --secondary: #333333;
  --secondary-foreground: #ffffff;
  --muted: #333333;
  --muted-foreground: #999999;
  --accent: #0066c0;
  --accent-foreground: #ffffff;
  --destructive: #d01418;
  --destructive-foreground: #ffffff;
  --border: #444444;
  --input: #333333;
  --ring: #fcb700;
  --chart-1: #fcb700;
  --chart-2: #0066c0;
  --chart-3: #d01418;
  --chart-4: #999999;
  --chart-5: #333333;
  --sidebar: #2a2a2a;
  --sidebar-foreground: #ffffff;
  --sidebar-primary: #fcb700;
  --sidebar-primary-foreground: #222222;
  --sidebar-accent: #0066c0;
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: #444444;
  --sidebar-ring: #fcb700;
}

@theme inline {
  /* Updated font configuration to use Rubik font */
  --font-sans: "Rubik", var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
    /* Added RTL support for Arabic content */
    direction: rtl;
    font-family: "Rubik", sans-serif;
  }

  /* Added custom utility classes for plumbing website */
  .main-color {
    color: var(--main-color);
  }
  .bg-main-color {
    background-color: var(--main-color);
  }
  .dark-color {
    color: var(--dark-color);
  }
  .bg-dark-color {
    background-color: var(--dark-color);
  }
  .parg-color {
    color: var(--parg-color);
  }
  .bg-parg-color {
    background-color: var(--parg-color);
  }
  .name-item-color {
    color: var(--name-item);
  }
  .bg-name-item-color {
    background-color: var(--name-item);
  }
}
