/* Custom scrollbar styles */
.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 163, 175, 0.4) transparent;
}

.scrollbar-thin::-webkit-scrollbar {
  width: 8px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.4);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background-color: rgba(156, 163, 175, 0.6);
}

/* Subtle floating particles animation */
@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.6;
  }
}

.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(139, 125, 107, 0.4);
  border-radius: 50%;
  animation: float-gentle 8s ease-in-out infinite;
}

/* Soft geometric shapes animation */
@keyframes drift {
  0%, 100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  33% {
    transform: translateX(30px) translateY(-15px) rotate(120deg);
  }
  66% {
    transform: translateX(-20px) translateY(10px) rotate(240deg);
  }
}

.geometric-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.1;
}

.shape {
  position: absolute;
  background: rgba(139, 125, 107, 0.2);
  animation: drift 15s ease-in-out infinite;
}

.shape.triangle {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 25px solid rgba(139, 125, 107, 0.2);
  background: transparent;
}

.shape.circle {
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

.shape.square {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
}

/* Mellow earthy background gradient */
.bg-gradient-earth {
  background: linear-gradient(135deg, 
    hsl(35, 25%, 92%) 0%, 
    hsl(30, 20%, 88%) 25%, 
    hsl(25, 15%, 85%) 50%, 
    hsl(20, 10%, 82%) 75%, 
    hsl(15, 8%, 80%) 100%
  );
}

/* Clephant Design System - Mellow Earthy Palette */
:root {
  /* Base colors inspired by the logo */
  --background: 35 25% 92%;
  --foreground: 25 15% 25%;
  --card: 0 0% 100% / 0.8;
  --card-foreground: 25 15% 25%;
  --popover: 0 0% 100% / 0.95;
  --popover-foreground: 25 15% 25%;
  
  /* Primary - Soft gray from logo */
  --primary: 25 8% 45%;
  --primary-foreground: 35 25% 95%;
  
  /* Secondary - Warm beige */
  --secondary: 35 20% 88%;
  --secondary-foreground: 25 15% 25%;
  
  /* Muted - Soft gray */
  --muted: 30 15% 85%;
  --muted-foreground: 25 10% 45%;
  
  /* Accent - Subtle pink from logo */
  --accent: 15 30% 75%;
  --accent-foreground: 25 15% 25%;
  
  /* Warm - Earthy beige */
  --warm: 30 25% 82%;
  --warm-foreground: 25 15% 25%;
  
  /* Destructive */
  --destructive: 0 50% 60%;
  --destructive-foreground: 35 25% 95%;
  
  /* Borders and inputs */
  --border: 30 15% 80%;
  --input: 30 10% 90%;
  --ring: 25 8% 45%;
  --radius: 1.2rem;
  
  /* Custom Clephant colors */
  --clephant-gray: 25 8% 45%;
  --clephant-beige: 35 20% 88%;
  --clephant-pink: 15 30% 75%;
  --clephant-warm: 30 25% 82%;
  --clephant-muted: 30 15% 85%;
}

/* Utility classes */
.bg-card {
  background-color: hsl(var(--card));
}

.text-foreground {
  color: hsl(var(--foreground));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.bg-primary {
  background-color: hsl(var(--primary));
}

.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}

.bg-accent {
  background-color: hsl(var(--accent));
}

.bg-muted {
  background-color: hsl(var(--muted));
}

.border-border {
  border-color: hsl(var(--border));
}

.bg-warm {
  background-color: hsl(var(--warm));
}

/* Clephant Glass Effects - Mellow and Earthy */
.glass-effect {
  background: rgba(139, 125, 107, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 125, 107, 0.2);
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 125, 107, 0.3);
  box-shadow: 0 8px 32px 0 rgba(139, 125, 107, 0.1);
}

/* Enhanced glassy effects for chat and sidebar */
.glass-chat {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 125, 107, 0.3);
  box-shadow: 0 8px 32px 0 rgba(139, 125, 107, 0.15);
}

.glass-sidebar {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(139, 125, 107, 0.25);
  box-shadow: 0 8px 32px 0 rgba(139, 125, 107, 0.12);
}

.glass-message {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 125, 107, 0.3);
  box-shadow: 0 4px 16px 0 rgba(139, 125, 107, 0.15);
  color: hsl(25, 15%, 15%) !important;
}

/* Ensure text inside messages is dark and readable */
.glass-message * {
  color: hsl(25, 15%, 15%) !important;
}

/* Keep special elements with their intended colors */
.glass-message button,
.glass-message .text-blue-400,
.glass-message .text-fuchsia-200,
.glass-message .text-gray-400 {
  color: inherit !important;
}

.glass-input {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 125, 107, 0.3);
  box-shadow: 0 4px 16px 0 rgba(139, 125, 107, 0.1);
}

/* Clephant-specific glass effects */
.glass-clephant {
  background: rgba(139, 125, 107, 0.25);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(139, 125, 107, 0.35);
  box-shadow: 0 6px 24px 0 rgba(139, 125, 107, 0.18);
  color: hsl(25, 15%, 15%) !important;
  font-weight: 500;
}

.glass-warm {
  background: rgba(200, 180, 160, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 180, 160, 0.3);
  box-shadow: 0 6px 24px 0 rgba(200, 180, 160, 0.15);
}

/* Fade in animation for smooth transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Clephant-specific animations */
@keyframes gentle-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.animate-gentle-float {
  animation: gentle-float 3s ease-in-out infinite;
}

/* Subtle pulse animation for MIDI token */
@keyframes subtle-pulse {
  0%, 100% {
    opacity: 0.95;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.animate-subtle-pulse {
  animation: subtle-pulse 2s ease-in-out infinite;
}

/* Enhanced hover effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(139, 125, 107, 0.2);
}

/* Clephant brand colors for specific elements */
.text-clephant {
  color: hsl(var(--clephant-gray));
}

.bg-clephant {
  background-color: hsl(var(--clephant-gray));
}

.border-clephant {
  border-color: hsl(var(--clephant-gray));
}

