/* ============================================================
   NPRU Nursing Student Exam Report - Youthful Modern Stylesheet
   Theme: Vibrant Pastel, Glassmorphic, Modern Gradient Accent
   ============================================================ */

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

:root {
  --primary-pink: #FF6B8B;
  --secondary-purple: #8B5CF6;
  --accent-cyan: #06B6D4;
  --bg-gradient: linear-gradient(135deg, #FFF0F5 0%, #F3E8FF 50%, #E0F2FE 100%);
  --card-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.6);
  --font-main: 'Kanit', sans-serif;
}

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: #1F2937;
  overflow-x: hidden;
}

/* Animations */
@keyframes floatAnim {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 107, 139, 0.3); }
  50% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.5); }
}

@keyframes starPop {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

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

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

.animate-pulse-glow {
  animation: pulseGlow 3s infinite;
}

.animate-star {
  animation: starPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Custom Cards & Glassmorphism */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.1), 0 8px 10px -6px rgba(255, 107, 139, 0.05);
  border-radius: 1.25rem;
}

.bg-gradient-gold {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.bg-gradient-teal {
  background: linear-gradient(135deg, #CCFBF1 0%, #99F6E4 100%);
}

.bg-gradient-blue {
  background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
}

.bg-gradient-rose {
  background: linear-gradient(135deg, #FFE4E6 0%, #FECDD3 100%);
}

.btn-primary {
  background: linear-gradient(135deg, #FF6B8B 0%, #8B5CF6 100%);
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 139, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: #4B5563;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: white;
  color: #111827;
}

/* Star Rating Rating Widget */
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  font-size: 1.8rem;
  justify-content: center;
}

.star-rating input {
  display: none;
}

.star-rating label {
  color: #D1D5DB;
  cursor: pointer;
  padding: 0 0.15rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #F59E0B;
  transform: scale(1.15);
}

/* In-App Browser Escape Banner */
#pwa-escape-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #FF6B8B, #8B5CF6);
  color: white;
  padding: 10px 16px;
  z-index: 9999;
  text-align: center;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
}
