@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    /* Background & Foreground */
    --background: 210 40% 98%;
    --foreground: 222.2 84% 4.9%;

    /* Cards */
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;

    /* Popover */
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;

    /* Primary - Azul Pet360 */
    --primary: 217 91% 60%;
    --primary-foreground: 210 40% 98%;

    /* Secondary */
    --secondary: 210 40% 96%;
    --secondary-foreground: 222.2 47.4% 11.2%;

    /* Muted */
    --muted: 210 40% 96%;
    --muted-foreground: 215.4 16.3% 46.9%;

    /* Accent - Laranja */
    --accent: 24 95% 53%;
    --accent-foreground: 0 0% 100%;

    /* Destructive */
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    /* Success - Verde */
    --success: 142 76% 36%;
    --success-foreground: 0 0% 100%;

    /* Warning - Amarelo */
    --warning: 45 93% 47%;
    --warning-foreground: 0 0% 0%;

    /* Info - Azul claro */
    --info: 199 89% 48%;
    --info-foreground: 0 0% 100%;

    /* Border & Input */
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 217 91% 60%;

    /* Radius */
    --radius: 0.75rem;

    /* Sidebar */
    --sidebar-background: 217 91% 60%;
    --sidebar-foreground: 0 0% 100%;
    --sidebar-primary: 0 0% 100%;
    --sidebar-primary-foreground: 217 91% 60%;
    --sidebar-accent: 217 91% 50%;
    --sidebar-accent-foreground: 0 0% 100%;
    --sidebar-border: 217 91% 50%;
    --sidebar-ring: 0 0% 100%;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 217 91% 60%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 24 95% 53%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 224.3 76.3% 48%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground antialiased;
  }
}

@layer utilities {
  /* Gradientes Pet360 */
  .bg-gradient-pet360 {
    @apply bg-gradient-to-br from-blue-500 via-blue-600 to-blue-700;
  }

  .bg-gradient-sky {
    @apply bg-gradient-to-b from-blue-50 via-white to-white;
  }

  .bg-gradient-card {
    @apply bg-gradient-to-br from-white to-gray-50;
  }

  /* Sombras customizadas */
  .shadow-pet360 {
    box-shadow: 0 4px 20px -2px rgba(37, 99, 235, 0.15);
  }

  .shadow-card {
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08), 0 4px 16px -4px rgba(0, 0, 0, 0.08);
  }

  .shadow-card-hover {
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1), 0 8px 24px -4px rgba(0, 0, 0, 0.1);
  }

  /* Animacoes */
  .animate-float {
    animation: float 3s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  /* Status badges */
  .badge-success {
    @apply bg-green-100 text-green-800 border-green-200;
  }

  .badge-warning {
    @apply bg-amber-100 text-amber-800 border-amber-200;
  }

  .badge-danger {
    @apply bg-red-100 text-red-800 border-red-200;
  }

  .badge-info {
    @apply bg-blue-100 text-blue-800 border-blue-200;
  }

  /* Cards de estatisticas */
  .stat-card {
    @apply bg-white rounded-2xl p-6 shadow-card hover:shadow-card-hover transition-shadow duration-300;
  }

  .stat-card-blue {
    @apply stat-card border-l-4 border-blue-500;
  }

  .stat-card-green {
    @apply stat-card border-l-4 border-green-500;
  }

  .stat-card-orange {
    @apply stat-card border-l-4 border-orange-500;
  }

  .stat-card-purple {
    @apply stat-card border-l-4 border-purple-500;
  }
}
