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

:root {
  color-scheme: light;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #10b981;
  --bg-color: #f3f4f6;
  --text-main: #1f2937;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  background-image: radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.08), transparent 25%),
                    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.08), transparent 25%);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Custom Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

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

@keyframes spinY {
  from { transform: perspective(1000px) rotateY(0deg); }
  to { transform: perspective(1000px) rotateY(360deg); }
}

.animate-spin-y {
  animation: spinY 8s linear infinite;
  transform-style: preserve-3d;
}

/* QR Code Container Styling */
#qrcode-container {
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  display: inline-block;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border: 2px solid #e5e7eb;
}

#qrcode-container img {
  margin: 0 auto;
}

/* Sidebar Styling (Admin) */
.sidebar {
  transition: all 0.3s ease;
}

/* Premium Buttons */
.btn-premium {
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}
.btn-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 8px rgba(37, 99, 235, 0.3);
}

/* Floating Educational Background */
.floating-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  opacity: 0;
  animation: floatUp 15s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes floatUp {
  0% {
    top: 105%;
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.35;
  }
  90% {
    opacity: 0.35;
  }
  100% {
    top: -10%;
    transform: translateX(100px) rotate(360deg);
    opacity: 0;
  }
}
