@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Gradient mesh background */
body.glass-bg {
  background-color: #f0f4ff;
  min-height: 100vh;
}

body.glass-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(120, 119, 198, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #f0f4ff 0%, #f5f3ff 25%, #eef2ff 50%, #f0f0ff 75%, #f5f7ff 100%);
  pointer-events: none;
  z-index: 0;
}

/* Noise texture overlay for glass depth */
body.glass-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

body.glass-bg > * {
  position: relative;
  z-index: 1;
}

/* Glass card transitions */
.glass-card {
  transition: box-shadow 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
}

.glass-card:hover {
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Glass input focus ring */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.3);
}

/* Trix editor glass integration */
trix-editor {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(12px);
  border-radius: 1rem !important;
}

trix-toolbar {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.2) !important;
  border-radius: 1rem 1rem 0 0 !important;
}
