:root {
  --background: 210 40% 98%;
  --foreground: 222 47% 11%;
  --primary: 210 100% 30%; /* TN Govt Blue */
  --primary-foreground: 210 40% 98%;
  --secondary: 142 71% 29%; /* Green */
  --secondary-foreground: 142 40% 98%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --border: 214.3 31.8% 91.4%;
  --radius: 2.5rem;
  --neumorph-shadow: 10px 10px 20px #d1d9e6, -10px -10px 20px #ffffff;
  --neumorph-shadow-lg: 20px 20px 40px #d1d9e6, -20px -20px 40px #ffffff;
  --neumorph-inset: inset 6px 6px 12px #d1d9e6, inset -6px -6px 12px #ffffff;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #f0f4f8;
  color: hsl(var(--foreground));
  font-family: 'Hind Madurai', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .tamil-title {
  font-family: 'Arima', cursive;
  letter-spacing: -0.01em;
}

.font-tamil-heading {
  font-family: 'Arima', cursive;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.neumorph-card {
  background: #ffffff;
  box-shadow: var(--neumorph-shadow);
  border-radius: var(--radius);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.neumorph-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--neumorph-shadow-lg);
}

.neumorph-inset {
  background: #f0f4f8;
  box-shadow: var(--neumorph-inset);
  border-radius: var(--radius);
}

.floating-3d {
  transform-style: preserve-3d;
  perspective: 1200px;
}

.floating-3d > * {
  transform: translateZ(30px);
}

@keyframes float {
  0% { transform: translateY(0px) rotateX(0deg); }
  50% { transform: translateY(-15px) rotateX(2deg); }
  100% { transform: translateY(0px) rotateX(0deg); }
}

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

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.animate-marquee {
  display: flex;
  animation: marquee 40s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

.btn-neumorph {
  background: #ffffff;
  box-shadow: 6px 6px 12px #d1d9e6, -6px -6px 12px #ffffff;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 1.5rem;
}

.btn-neumorph:hover {
  transform: translateY(-4px);
  box-shadow: 10px 10px 20px #d1d9e6, -10px -10px 20px #ffffff;
}

.btn-neumorph:active {
  box-shadow: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff;
  transform: scale(0.96);
}

.icon-box-3d {
  position: relative;
  transition: all 0.5s ease;
}

.icon-box-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.icon-box-3d:hover::after {
  opacity: 1;
}

/* Page Transitions */
.page-enter {
  opacity: 0;
  transform: translateY(20px);
}
.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms, transform 500ms;
}

@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: white !important;
  }
  #root {
    padding: 0 !important;
    margin: 0 !important;
  }
  .id-card-print {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 85.6mm !important;
    height: 54mm !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    overflow: hidden !important;
    border-radius: 3.18mm !important; /* Standard CR80 corner radius */
  }
  @page {
    size: 85.6mm 54mm;
    margin: 0;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
  background: #d1d9e6;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b8c2d1;
}
