/**
 * Public Opinion Platform - Complete CSS
 * Based on original shadcn/ui + Tailwind design system
 * Ported to Bootstrap 5 with exact styling
 */

/* ============================================
   CSS VARIABLES (Design Tokens)
   ============================================ */

:root {
  /* Border Radius */
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  /* Primary Colors - Enhanced for better visibility */
  --primary: 30 64 175;        /* Darker, more vibrant blue */
  --primary-light: 59 130 246; /* Lighter for hover states */
  --primary-dark: 30 58 138;   /* Darker for active states */
  
  /* Text Colors - High Contrast (WCAG AAA) */
  --foreground: 15 23 42;       /* Very dark blue-gray - primary text */
  --foreground-secondary: 71 85 105;  /* Medium - secondary text */
  --foreground-muted: 100 116 139;    /* Light but still readable */
  
  /* Background Colors */
  --background: 255 255 255;
  --muted: 248 250 252;        /* Lighter background */
  --muted-foreground: 100 116 139;  /* Better contrast */
  
  /* Card Colors */
  --card: 255 255 255;
  --card-foreground: 15 23 42;
  
  /* Popover Colors */
  --popover: 255 255 255;
  --popover-foreground: 15 23 42;
  
  /* Semantic Colors */
  --secondary: 241 245 249;
  --secondary-foreground: 15 23 42;
  --accent: 241 245 249;
  --accent-foreground: 15 23 42;
  --destructive: 220 38 38;
  --destructive-foreground: 255 255 255;
  --success: 22 163 74;
  --warning: 202 138 4;
  --info: 8 145 178;
  
  /* Borders & Inputs */
  --border: 226 232 240;
  --input: 226 232 240;
  --ring: 30 64 175;
  
  /* Charts */
  --chart-1: 255 165 104;
  --chart-2: 153 193 60;
  --chart-3: 101 114 181;
  --chart-4: 211 125 48;
  --chart-5: 196 133 83;
  
  /* Sidebar */
  --sidebar: 255 255 255;
  --sidebar-foreground: 15 23 42;
  --sidebar-primary: 30 64 175;
  --sidebar-primary-foreground: 255 255 255;
  --sidebar-accent: 241 245 249;
  --sidebar-accent-foreground: 15 23 42;
  --sidebar-border: 226 232 240;
  --sidebar-ring: 30 64 175;
}

/* Dark Mode */
.dark {
  --background: 37 37 37;
  --foreground: 251 251 251;
  --card: 52 52 52;
  --card-foreground: 251 251 251;
  --popover: 52 52 52;
  --popover-foreground: 251 251 251;
  --primary: 235 235 235;
  --primary-foreground: 52 52 52;
  --secondary: 69 69 69;
  --secondary-foreground: 251 251 251;
  --muted: 69 69 69;
  --muted-foreground: 180 180 180;
  --accent: 69 69 69;
  --accent-foreground: 251 251 251;
  --destructive: 180 49 49;
  --destructive-foreground: 255 255 255;
  --border: 255 255 255 / 10%;
  --input: 255 255 255 / 15%;
  --ring: 142 142 142;
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: rgb(var(--foreground));
  background-color: rgb(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: rgb(var(--foreground));
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: rgb(var(--muted-foreground));
}

a {
  color: rgb(var(--primary));
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: rgb(var(--primary));
  opacity: 0.8;
}

/* ============================================
   BUTTONS (shadcn/ui style)
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

/* Button Variants */
.btn-primary {
  background-color: rgb(var(--primary));
  color: rgb(var(--primary-foreground));
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background-color: rgba(var(--primary), 0.9);
  color: rgb(var(--primary-foreground));
}

.btn-secondary {
  background-color: rgb(var(--secondary));
  color: rgb(var(--secondary-foreground));
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background-color: rgba(var(--secondary), 0.8);
}

.btn-outline {
  border-color: rgb(var(--border));
  background-color: transparent;
  color: rgb(var(--foreground));
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
  background-color: rgb(var(--accent));
  color: rgb(var(--accent-foreground));
}

.btn-ghost {
  background-color: transparent;
  color: rgb(var(--foreground));
}

.btn-ghost:hover {
  background-color: rgb(var(--accent));
  color: rgb(var(--accent-foreground));
}

.btn-destructive {
  background-color: rgb(var(--destructive));
  color: rgb(var(--destructive-foreground));
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-destructive:hover {
  background-color: rgba(var(--destructive), 0.9);
}

.btn-link {
  color: rgb(var(--primary));
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-link:hover {
  color: rgba(var(--primary), 0.8);
}

/* Button Sizes */
.btn-sm {
  height: 2rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-default {
  height: 2.25rem;
  padding: 0.5rem 1rem;
}

.btn-lg {
  height: 2.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

/* ============================================
   CARDS (shadcn/ui style)
   ============================================ */

.card {
  background-color: rgb(var(--card));
  color: rgb(var(--card-foreground));
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

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

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgb(var(--card-foreground));
  margin: 0;
}

.card-description {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  margin: 0;
}

.card-content {
  padding: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  padding: 0;
}

/* ============================================
   BADGES (shadcn/ui style)
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.badge svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Badge Variants */
.badge-primary {
  background-color: rgb(var(--primary));
  color: rgb(var(--primary-foreground));
}

.badge-secondary {
  background-color: rgb(var(--secondary));
  color: rgb(var(--secondary-foreground));
}

.badge-destructive {
  background-color: rgb(var(--destructive));
  color: rgb(var(--destructive-foreground));
}

.badge-outline {
  border-color: rgb(var(--border));
  color: rgb(var(--foreground));
}

.badge-outline:hover {
  background-color: rgb(var(--accent));
  color: rgb(var(--accent-foreground));
}

/* ============================================
   INPUTS (shadcn/ui style)
   ============================================ */

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea {
  width: 100%;
  height: 2.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(var(--foreground));
  background-color: transparent;
  border: 1px solid rgb(var(--input));
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.form-select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 2.5rem 0.625rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgb(var(--foreground));
  background-color: transparent;
  border: 1px solid rgb(var(--input));
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: rgb(var(--ring));
  box-shadow: 0 0 0 3px rgba(var(--ring), 0.2);
}

.form-control::placeholder,
input::placeholder {
  color: rgb(var(--muted-foreground));
}

.form-control:disabled,
input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

textarea {
  height: auto;
  min-height: 6rem;
  resize: vertical;
}

/* ============================================
   LABELS
   ============================================ */

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--foreground));
  margin-bottom: 0.5rem;
}

.form-text {
  font-size: 0.8125rem;
  color: rgb(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  height: 4rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(var(--foreground));
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--muted-foreground));
  transition: color 0.2s;
}

.nav-link:hover {
  color: rgb(var(--foreground));
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.hero-section {
  padding: 4rem 0;
  background-color: rgba(var(--muted), 0.5);
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: rgb(var(--secondary));
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: rgb(var(--foreground));
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: rgb(var(--muted-foreground));
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
  padding: 3rem 0;
  background-color: rgba(var(--muted), 0.5);
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: rgb(var(--primary));
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
  padding: 5rem 0;
}

.feature-card {
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s;
  height: 100%;
  background-color: rgb(var(--card));
}

.feature-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(var(--primary), 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon i,
.feature-icon svg {
  color: rgb(var(--primary));
  font-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

.feature-list li svg,
.feature-list li i {
  color: rgb(22 163 74);
  font-size: 1rem;
  width: 1rem;
  height: 1rem;
}

/* ============================================
   SEARCH BAR
   ============================================ */

.search-wrapper {
  position: relative;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.search-wrapper .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(var(--muted-foreground));
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

.search-wrapper input {
  height: 3rem;
  padding-left: 2.75rem;
  padding-right: 7rem;
  border-radius: var(--radius-md);
  border: 1px solid rgb(var(--input));
  font-size: 1rem;
}

.search-wrapper .search-btn {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================
   FILTERS
   ============================================ */

.filters-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.filter-select {
  min-width: 12rem;
}

.filter-select .form-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PAPER CARDS
   ============================================ */

.paper-card {
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-lg);
  background-color: rgb(var(--card));
  color: rgb(var(--card-foreground));
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.paper-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.paper-card-header {
  padding: 1.5rem 1.5rem 0;
}

.paper-card-body {
  padding: 1.5rem;
  flex: 1;
}

.paper-card-footer {
  padding: 1.5rem;
  padding-top: 0;
}

/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(var(--muted), 1) 0%,
    rgba(var(--muted), 0.8) 50%,
    rgba(var(--muted), 1) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
  text-align: center;
  padding: 3rem;
}

.empty-state-icon {
  width: 3rem;
  height: 3rem;
  color: rgb(var(--muted-foreground));
  margin: 0 auto 1rem;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(var(--foreground));
  margin-bottom: 0.5rem;
}

.empty-state-description {
  color: rgb(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

/* ============================================
   AVATAR
   ============================================ */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgb(var(--muted));
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(var(--foreground));
}

.avatar-sm {
  width: 2rem;
  height: 2rem;
}

.avatar-md {
  width: 2.5rem;
  height: 2.5rem;
}

.avatar-lg {
  width: 4rem;
  height: 4rem;
}

.avatar-xl {
  width: 8rem;
  height: 8rem;
}

/* ============================================
   TABS
   ============================================ */

.tabs-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(var(--muted));
  padding: 0.25rem;
  border-radius: var(--radius-md);
}

.tabs-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--muted-foreground));
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.tabs-trigger:hover {
  color: rgb(var(--foreground));
}

.tabs-trigger.active {
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ============================================
   SEPARATOR
   ============================================ */

.separator {
  height: 1px;
  background-color: rgb(var(--border));
  margin: 1.5rem 0;
}

.separator-vertical {
  width: 1px;
  height: 100%;
  margin: 0 1.5rem;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-md);
  background-color: transparent;
  color: rgb(var(--foreground));
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background-color: rgb(var(--accent));
  color: rgb(var(--accent-foreground));
}

.pagination-btn.active {
  background-color: rgb(var(--primary));
  color: rgb(var(--primary-foreground));
  border-color: rgb(var(--primary));
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   UTILITIES
   ============================================ */

/* Text */
.text-muted { color: rgb(var(--muted-foreground)) !important; }
.text-primary { color: rgb(var(--primary)) !important; }
.text-destructive { color: rgb(var(--destructive)) !important; }
.text-foreground { color: rgb(var(--foreground)) !important; }

/* Background */
.bg-muted { background-color: rgb(var(--muted)) !important; }
.bg-primary { background-color: rgb(var(--primary)) !important; }
.bg-destructive { background-color: rgb(var(--destructive)) !important; }
.bg-background { background-color: rgb(var(--background)) !important; }

/* Border */
.border { border: 1px solid rgb(var(--border)) !important; }
.border-t { border-top: 1px solid rgb(var(--border)) !important; }
.border-b { border-bottom: 1px solid rgb(var(--border)) !important; }
.border-l { border-left: 1px solid rgb(var(--border)) !important; }
.border-r { border-right: 1px solid rgb(var(--border)) !important; }

/* Spacing */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Grid */
.grid { display: grid; }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

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

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Max widths */
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

/* Min height */
.min-h-screen { min-height: 100vh; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-slide-up {
  animation: slideUp 0.4s ease-out;
}

/* ============================================
   SHADOW SYSTEM (Enhanced 4-tier)
   ============================================ */

.shadow-xs {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-sm {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Card shadows with hover lift */
.card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Button shadows */
.btn {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ============================================
   BOOTSTRAP OVERRIDES
   ============================================ */

/* Override Bootstrap defaults to match shadcn/ui */
.btn {
  border-width: 1px;
}

.form-control, .form-select {
  box-shadow: none;
}

.badge {
  font-weight: 500;
}

/* Fix Bootstrap navbar */
.navbar {
  padding: 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================
   THREE.JS ANIMATION CONTAINER
   ============================================ */

#afn-animation-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
}

#afn-canvas {
  width: 100%;
  height: 100%;
}

.afn-stat-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.afn-stat-number {
  font-size: 4rem;
  font-weight: 700;
  color: rgb(var(--primary));
  line-height: 1;
  margin-bottom: 0.5rem;
}

.afn-stat-label {
  font-size: 1.25rem;
  color: rgb(var(--foreground-secondary));
  font-weight: 500;
}

/* Particle effects */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(30, 64, 175, 0.3);
  pointer-events: none;
}
