/* FATAR Custom & Global CSS Tokens */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --background: 0 0% 100%;
  --foreground: 224 71.4% 4.1%;

  --card: 0 0% 100%;
  --card-foreground: 224 71.4% 4.1%;

  --popover: 0 0% 100%;
  --popover-foreground: 224 71.4% 4.1%;

  /* Brand Primary: Purple #460e73 */
  --primary: 274 78% 25%;
  --primary-foreground: 0 0% 100%;

  /* Brand Accent/Secondary: Green #0b6e40 */
  --secondary: 152 82% 24%;
  --secondary-foreground: 0 0% 100%;

  --muted: 270 20% 96%;
  --muted-foreground: 270 10% 40%;

  --accent: 152 40% 95%;
  --accent-foreground: 152 82% 20%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;

  --border: 270 15% 90%;
  --input: 270 15% 90%;
  --ring: 274 78% 25%;

  --radius: 0.75rem;

  /* Custom FATAR Colors */
  --fatar-purple: #460e73;
  --fatar-purple-hover: #360a59;
  --fatar-purple-light: #f3ebf9;
  --fatar-purple-muted: #8d53bd;
  --fatar-green: #0b6e40;
  --fatar-green-hover: #085330;
  --fatar-green-light: #e8f5ee;
  --fatar-gold: #e29c1b;
  --fatar-gold-light: #fef7e8;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: #f8fafc;
  color: #1e293b;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #460e73;
}

/* Transitions & Animations */
.transition-all-200 {
  transition: all 0.2s ease-in-out;
}

.transition-all-300 {
  transition: all 0.3s ease-in-out;
}

/* Modal & Drawer overlays */
.overlay-backdrop {
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom Toast Styling */
#fatar-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.fatar-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastIn 0.3s ease forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fatar-toast.success {
  background-color: #0b6e40;
  color: #ffffff;
  border-left: 5px solid #34d399;
}

.fatar-toast.error {
  background-color: #e11d48;
  color: #ffffff;
  border-left: 5px solid #fda4af;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
