/* Custom CSS for Children's Lessons Repository */
/* Playful, kid-friendly design with scalloped cards and rounded elements */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Nunito:wght@300;400;500;600;700;800&display=swap');

@import "tailwindcss";

@plugin "@tailwindcss/typography";


/* Define custom font token for Tailwind v4 */
@theme {
  --font-fredoka: "Fredoka", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-nunito: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}



/* CSS Variables for Brand Colors */
:root {
  --primary-purple: #5A2D82;
  --magenta: #D93AA6;
  --lime: #A7E34B;
  --sunshine-yellow: #FFC857;
  --teal: #3BC7C4;
  --dark-text: #1E1B2E;
  --off-white: #FAFAFE;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-purple), var(--magenta));
  min-height: calc(100vh - 80px); /* Account for header height */
  position: relative;
  padding-top: 80px; /* Account for fixed header */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0,20 Q25,0 50,20 T100,20 L100,100 L0,100 Z' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E") repeat-x;
  background-size: 200px 100px;
  opacity: 0.3;
}

/* Wavy Borders */
.wavy-border-white {
  position: relative;
  background: white;
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: rotate(-1deg);
}

.wavy-border-white::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
  border-radius: 35px;
  z-index: -1;
  transform: rotate(1deg);
}

.wavy-border-gray {
  position: relative;
  background: #f3f4f6;
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: rotate(1deg);
}

.wavy-border-gray::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, #e5e7eb, #d1d5db);
  border-radius: 35px;
  z-index: -1;
  transform: rotate(-1deg);
}

.wavy-border-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath d='M0,40 Q25,0 50,40 T100,40 L100,40 L0,40 Z' fill='white'/%3E%3C/svg%3E") repeat-x;
  background-size: 200px 40px;
}

/* Testimonial Cards */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, var(--lime), var(--sunshine-yellow));
  border-radius: 25px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
  opacity: 0.1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-purple), var(--magenta));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: white;
  border-radius: 0 0 50% 50%;
  transform: translateY(-30px);
  z-index: 1;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: white;
  border-radius: 50% 50% 0 0;
  transform: translateY(30px);
  z-index: 1;
}

/* Navigation Styles */
.nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-purple);
  background-color: #f3f4f6;
}

.nav-link.active {
  color: var(--primary-purple);
  background-color: #f3f4f6;
  font-weight: 600;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--primary-purple);
  background-color: #f3f4f6;
}

.mobile-nav-link.active {
  color: var(--primary-purple);
  background-color: #f3f4f6;
  font-weight: 600;
}

/* Header Enhancements */
header {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

header nav {
  position: relative;
}

/* Logo Animation */
header .logo-icon {
  transition: transform 0.3s ease;
}

header a:hover .logo-icon {
  transform: scale(1.1);
}

/* Mobile Menu Animation */
#mobile-menu {
  transition: all 0.3s ease;
  transform: translateY(-10px);
  opacity: 0;
}

#mobile-menu:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}

/* Base Typography */
.font-fredoka {
  font-family: 'Fredoka', cursive;
}

.font-nunito {
  font-family: 'Nunito', sans-serif;
}

/* Scalloped Card Component */
.scallop-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(90, 45, 130, 0.1);
  margin-bottom: 2rem;
  overflow: hidden;
}

.scallop-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0,20 Q25,0 50,20 T100,20 L100,20 L0,20 Z' fill='white'/%3E%3C/svg%3E") repeat-x;
  background-size: 100px 20px;
}

.scallop-card::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0,0 Q25,20 50,0 T100,0 L100,0 L0,0 Z' fill='white'/%3E%3C/svg%3E") repeat-x;
  background-size: 100px 20px;
}

/* Blob Hero Background */
.blob-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-purple), var(--magenta));
  overflow: hidden;
}

.blob-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: var(--lime);
  border-radius: 50% 30% 70% 40%;
  opacity: 0.3;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40%;
  height: 150%;
  background: var(--sunshine-yellow);
  border-radius: 40% 60% 30% 70%;
  opacity: 0.4;
  animation: blobFloat 6s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Modern Action Button Styles */
.action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-family: 'Fredoka', cursive;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  min-width: 160px;
  height: 60px;
}

.action-btn:hover {
  transform: translateY(-4px) scale(1.05);
  text-decoration: none;
}

.action-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 3;
  transition: all 0.3s ease;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.btn-text {
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
  z-index: 2;
}

.action-btn:hover .btn-shine {
  left: 100%;
}

/* Print Button */
.action-btn-print {
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.9) 0%, 
    rgba(79, 70, 229, 0.8) 50%, 
    rgba(99, 102, 241, 0.9) 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn-print .btn-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.action-btn-print:hover .btn-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(10deg) scale(1.1);
}

.action-btn-print:hover .btn-glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
  opacity: 1;
}

/* Download Button */
.action-btn-download {
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.9) 0%, 
    rgba(5, 150, 105, 0.8) 50%, 
    rgba(16, 185, 129, 0.9) 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn-download .btn-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.action-btn-download:hover .btn-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(-10deg) scale(1.1);
}

.action-btn-download:hover .btn-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
  opacity: 1;
}

/* Share Button */
.action-btn-share {
  background: linear-gradient(135deg, 
    rgba(236, 72, 153, 0.9) 0%, 
    rgba(219, 39, 119, 0.8) 50%, 
    rgba(236, 72, 153, 0.9) 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn-share .btn-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.action-btn-share:hover .btn-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(15deg) scale(1.1);
}

.action-btn-share:hover .btn-glow {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, transparent 70%);
  opacity: 1;
}

/* Stats Button */
.action-btn-stats {
  background: linear-gradient(135deg, 
    rgba(107, 114, 128, 0.9) 0%, 
    rgba(75, 85, 99, 0.8) 50%, 
    rgba(107, 114, 128, 0.9) 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: default;
}

.action-btn-stats:hover {
  transform: none;
}

.action-btn-stats .btn-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Enhanced hover effects */
.action-btn:hover .btn-content {
  transform: translateY(-1px);
}

.action-btn:hover .btn-text {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Pulse animation for icons */
@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.action-btn:hover .btn-icon {
  animation: iconPulse 0.6s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .action-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    min-width: 140px;
    height: 55px;
  }
  
  .btn-icon {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .btn-content {
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .action-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    min-width: 120px;
    height: 50px;
  }
  
  .btn-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .btn-content {
    gap: 0.375rem;
  }
}

/* Legacy button styles for backward compatibility */
.btn-playful {
  @apply font-fredoka font-semibold px-8 py-4 rounded-2xl text-lg transition-all duration-300 transform hover:scale-105 hover:shadow-lg;
  background: linear-gradient(135deg, var(--sunshine-yellow), var(--lime));
  color: var(--dark-text);
  box-shadow: 0 4px 20px rgba(255, 200, 87, 0.3);
}

.btn-playful:hover {
  box-shadow: 0 8px 30px rgba(255, 200, 87, 0.4);
}

.btn-secondary {
  @apply font-fredoka font-semibold px-6 py-3 rounded-2xl text-base transition-all duration-300 transform hover:scale-105;
  background: linear-gradient(135deg, var(--teal), var(--primary-purple));
  color: white;
  box-shadow: 0 4px 20px rgba(59, 199, 196, 0.3);
}

.btn-secondary:hover {
  box-shadow: 0 8px 30px rgba(59, 199, 196, 0.4);
}

/* Chunky Heading Styles */
.heading-chunky {
  @apply font-fredoka font-bold text-4xl md:text-5xl lg:text-6xl;
  color: var(--dark-text);
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.heading-chunky:hover {
  transform: rotate(1deg) scale(1.02);
}

/* Profound Heading Styles */
.heading-profound {
  @apply font-fredoka font-black;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  position: relative;
  margin-bottom: 2rem;
}

.title-main {
  display: block;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 25%, #ffffff 50%, #f1f5f9 75%, #ffffff 100%);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 255, 255, 0.6),
    0 0 60px rgba(255, 255, 255, 0.4);
  animation: titleShimmer 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

.decoration-line {
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 2px;
  animation: lineGlow 2s ease-in-out infinite alternate;
}

.decoration-line-1 {
  width: 80px;
  animation-delay: 0s;
}

.decoration-line-2 {
  width: 80px;
  animation-delay: 0.5s;
}

.decoration-star {
  font-size: 1.5rem;
  animation: starTwinkle 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.title-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.bg-element {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: floatAround 8s ease-in-out infinite;
}

.bg-element-1 {
  width: 120px;
  height: 120px;
  top: -20px;
  left: 10%;
  animation-delay: 0s;
}

.bg-element-2 {
  width: 80px;
  height: 80px;
  top: 20px;
  right: 15%;
  animation-delay: 2s;
}

.bg-element-3 {
  width: 100px;
  height: 100px;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 4s;
}

/* Animations */
@keyframes titleShimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes lineGlow {
  0% {
    opacity: 0.4;
    transform: scaleX(0.8);
  }
  100% {
    opacity: 1;
    transform: scaleX(1.2);
  }
}

@keyframes starTwinkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 1;
  }
}

@keyframes floatAround {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(20px, -15px) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-10px, -25px) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translate(-20px, -10px) scale(1.05);
    opacity: 0.7;
  }
}

/* Enhanced hover effects */
.heading-profound:hover .title-main {
  animation-duration: 1s;
  transform: scale(1.05);
}

.heading-profound:hover .decoration-star {
  animation-duration: 0.5s;
  transform: scale(1.3) rotate(360deg);
}

.heading-profound:hover .bg-element {
  animation-duration: 4s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .heading-profound {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }
  
  .decoration-line-1,
  .decoration-line-2 {
    width: 60px;
  }
  
  .decoration-star {
    font-size: 1.2rem;
  }
  
  .bg-element-1 {
    width: 80px;
    height: 80px;
  }
  
  .bg-element-2 {
    width: 60px;
    height: 60px;
  }
  
  .bg-element-3 {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .heading-profound {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
  
  .title-decoration {
    gap: 0.5rem;
  }
  
  .decoration-line-1,
  .decoration-line-2 {
    width: 40px;
  }
  
  .decoration-star {
    font-size: 1rem;
  }
}

.heading-section {
  @apply font-fredoka font-semibold text-2xl md:text-3xl;
  color: var(--primary-purple);
  position: relative;
  display: inline-block;
}

.heading-section::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--lime), var(--sunshine-yellow));
  border-radius: 4px;
  transform: skew(-2deg);
}

/* Modern Pill Badge Styles */
.pill-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.pill-container:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.pill-text {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.pill-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Series Pill */
.pill-series {
  background: linear-gradient(135deg, 
    rgba(59, 199, 196, 0.9) 0%, 
    rgba(16, 185, 129, 0.8) 50%, 
    rgba(59, 199, 196, 0.9) 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(59, 199, 196, 0.3);
}

.pill-series .pill-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.pill-series:hover .pill-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(10deg) scale(1.1);
}

.pill-series:hover .pill-glow {
  background: radial-gradient(circle, rgba(59, 199, 196, 0.4) 0%, transparent 70%);
  opacity: 1;
}

/* Age Pill */
.pill-age {
  background: linear-gradient(135deg, 
    rgba(255, 200, 87, 0.9) 0%, 
    rgba(251, 191, 36, 0.8) 50%, 
    rgba(255, 200, 87, 0.9) 100%);
  color: #1f2937;
  box-shadow: 0 8px 25px rgba(255, 200, 87, 0.3);
}

.pill-age .pill-icon {
  background: rgba(31, 41, 55, 0.2);
  color: #1f2937;
}

.pill-age:hover .pill-icon {
  background: rgba(31, 41, 55, 0.3);
  transform: rotate(-10deg) scale(1.1);
}

.pill-age:hover .pill-glow {
  background: radial-gradient(circle, rgba(255, 200, 87, 0.4) 0%, transparent 70%);
  opacity: 1;
}

/* Date Pill */
.pill-date {
  background: linear-gradient(135deg, 
    rgba(124, 58, 237, 0.9) 0%, 
    rgba(147, 51, 234, 0.8) 50%, 
    rgba(124, 58, 237, 0.9) 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.pill-date .pill-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.pill-date:hover .pill-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(15deg) scale(1.1);
}

.pill-date:hover .pill-glow {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
  opacity: 1;
}

/* Lectionary Pill */
.pill-lectionary {
  background: linear-gradient(135deg, 
    rgba(236, 72, 153, 0.9) 0%, 
    rgba(219, 39, 119, 0.8) 50%, 
    rgba(236, 72, 153, 0.9) 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
}

.pill-lectionary .pill-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.pill-lectionary:hover .pill-icon {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(-15deg) scale(1.1);
}

.pill-lectionary:hover .pill-glow {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, transparent 70%);
  opacity: 1;
}

/* Animation Effects */
.pill-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.pill-container:hover::before {
  left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pill-container {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  
  .pill-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
}

@media (max-width: 480px) {
  .pill-container {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    gap: 0.375rem;
  }
  
  .pill-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* Legacy badge styles for backward compatibility */
.badge-pill {
  @apply font-nunito font-medium px-4 py-2 rounded-full text-sm;
  background: linear-gradient(135deg, var(--magenta), var(--primary-purple));
  color: white;
  box-shadow: 0 2px 10px rgba(217, 58, 166, 0.3);
}

.badge-series {
  @apply font-nunito font-medium px-3 py-1 rounded-full text-xs;
  background: var(--teal);
  color: white;
}

.badge-age {
  @apply font-nunito font-medium px-3 py-1 rounded-full text-xs;
  background: var(--sunshine-yellow);
  color: var(--dark-text);
}

/* Callout Boxes for Lesson Content */
.callout {
  @apply p-4 rounded-xl my-4 border-l-4;
  font-family: 'Nunito', sans-serif;
}

.callout.info {
  background: linear-gradient(135deg, rgba(59, 199, 196, 0.1), rgba(90, 45, 130, 0.1));
  border-left-color: var(--teal);
}

.callout.warning {
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.1), rgba(217, 58, 166, 0.1));
  border-left-color: var(--sunshine-yellow);
}

.callout.tip {
  background: linear-gradient(135deg, rgba(167, 227, 75, 0.1), rgba(59, 199, 196, 0.1));
  border-left-color: var(--lime);
}

.callout strong {
  @apply font-semibold;
  color: var(--primary-purple);
}

/* Lesson Card Styles */
.lesson-card {
  @apply bg-white rounded-2xl p-6 shadow-lg hover:shadow-xl transition-all duration-300 transform hover:scale-105;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.lesson-card:hover {
  border-color: var(--lime);
}

.lesson-card h3 {
  @apply font-fredoka font-semibold text-xl mb-2;
  color: var(--primary-purple);
}

.lesson-card .scripture {
  @apply font-nunito italic text-sm mb-3;
  color: var(--dark-text);
  opacity: 0.8;
}

/* Search and Filter Styles */
.search-input {
  @apply w-full px-6 py-4 rounded-2xl border-2 border-gray-200 focus:border-purple-400 focus:outline-none transition-colors duration-300;
  font-family: 'Nunito', sans-serif;
  background: rgba(255, 255, 255, 0.9);
}

.filter-button {
  @apply px-4 py-2 rounded-full border-2 transition-all duration-300 font-nunito font-medium;
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

.filter-button.active {
  background: var(--primary-purple);
  color: white;
}

/* Admin Dashboard Styles */
.dashboard-card {
  @apply bg-white rounded-2xl p-6 shadow-lg;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 250, 254, 0.9));
  border: 2px solid rgba(90, 45, 130, 0.1);
}

.dashboard-stat {
  @apply font-fredoka font-bold text-3xl;
  color: var(--primary-purple);
}

/* Modern Admin Sidebar */
.admin-sidebar {
  width: 16rem;
  background: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  min-height: 100vh;
  position: relative;
  z-index: 40;
}

.admin-sidebar.collapsed {
  width: 4rem;
}

.admin-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.admin-sidebar.collapsed .admin-sidebar-header {
  padding: 1rem;
}

.admin-sidebar-brand {
  transition: opacity 0.3s ease;
}

.admin-sidebar.collapsed .admin-sidebar-brand {
  opacity: 0;
}

.admin-sidebar-nav {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-nav-section-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.admin-sidebar.collapsed .admin-nav-section-title {
  display: none;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  color: #374151;
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
}

.admin-nav-link:hover {
  background-color: #f3f4f6;
  color: #7c3aed;
}

.admin-nav-link.active {
  background-color: #faf5ff;
  color: #7c3aed;
  border-right: 2px solid #7c3aed;
}

.admin-nav-link.logout {
  color: #dc2626;
}

.admin-nav-link.logout:hover {
  background-color: #fef2f2;
  color: #b91c1c;
}

.admin-sidebar.collapsed .admin-nav-link span {
  display: none;
}

.admin-sidebar.collapsed .admin-nav-link {
  justify-content: center;
  padding: 0.5rem;
}

/* Admin Top Header */
.admin-top-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.admin-sidebar-toggle {
  padding: 0.5rem;
  border-radius: 0.75rem;
  color: #6b7280;
  transition: all 0.2s ease;
  border: none;
  background: none;
  cursor: pointer;
}

.admin-sidebar-toggle:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.admin-quick-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #7c3aed;
  color: white;
  border-radius: 0.75rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-quick-action:hover {
  background-color: #6d28d9;
}

.admin-user-menu {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.admin-user-menu:hover {
  opacity: 0.8;
}

/* Admin Main Content */
.admin-main-content {
  flex: 1;
  padding: 1.5rem;
  overflow: auto;
  transition: all 0.3s ease;
}

.admin-main-content.sidebar-collapsed {
  margin-left: 0;
}

/* Responsive padding for admin pages */
@media (max-width: 1024px) {
  .admin-main-content {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .admin-main-content {
    padding: 0.75rem;
  }
}

/* Dark Mode Styles */
[data-theme="dark"] {
  --primary-purple: #7C3AED;
  --magenta: #EC4899;
  --lime: #84CC16;
  --sunshine-yellow: #F59E0B;
  --teal: #06B6D4;
  --dark-text: #F9FAFB;
  --off-white: #1F2937;
}

[data-theme="dark"] body {
  background-color: #111827;
  color: #f9fafb;
}

[data-theme="dark"] .admin-sidebar {
  background-color: #1f2937;
  border-color: #374151;
}

[data-theme="dark"] .admin-top-header {
  background-color: #1f2937;
  border-color: #374151;
}

[data-theme="dark"] .admin-nav-link {
  color: #d1d5db;
}

[data-theme="dark"] .admin-nav-link:hover {
  background-color: #374151;
  color: #a78bfa;
}

[data-theme="dark"] .admin-nav-link.active {
  background-color: #581c87;
  color: #a78bfa;
  border-color: #a78bfa;
}

[data-theme="dark"] .dashboard-card {
  background-color: #1f2937;
  border-color: #374151;
}

[data-theme="dark"] .modern-dashboard-card {
  background-color: #1f2937;
  border-color: #374151;
}

[data-theme="dark"] .admin-sidebar-toggle {
  color: #d1d5db;
}

[data-theme="dark"] .admin-sidebar-toggle:hover {
  background-color: #374151;
  color: #f9fafb;
}

[data-theme="dark"] .activity-item {
  background-color: #374151;
}

[data-theme="dark"] .activity-item:hover {
  background-color: #4b5563;
}

[data-theme="dark"] .activity-title {
  color: #f9fafb;
}

[data-theme="dark"] .activity-subtitle {
  color: #d1d5db;
}

/* Enhanced Dashboard Cards */
.modern-dashboard-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  transition: all 0.3s ease;
}

.modern-dashboard-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.modern-stat-number {
  font-family: 'Fredoka', cursive;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-purple), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modern-stat-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modern-stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-purple), var(--magenta));
}

/* Activity Feed */
.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.activity-item:hover {
  background-color: #f3f4f6;
}

.activity-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal), var(--primary-purple));
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  color: #111827;
}

.activity-subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  color: #6b7280;
}

.activity-time {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Admin Action Buttons */
.admin-action-button {
  display: block;
  padding: 1.5rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.admin-action-button.primary {
  border-color: #7c3aed;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(236, 72, 153, 0.05));
}

.admin-action-button.primary:hover {
  border-color: #6d28d9;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
}

.admin-action-button.secondary {
  border-color: #e5e7eb;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(99, 102, 241, 0.05));
}

.admin-action-button.secondary:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
}

/* Dark mode for action buttons */
[data-theme="dark"] .admin-action-button {
  background-color: #1f2937;
  border-color: #374151;
}

[data-theme="dark"] .admin-action-button.primary {
  border-color: #7c3aed;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
}

[data-theme="dark"] .admin-action-button.primary:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.2));
}

[data-theme="dark"] .admin-action-button.secondary {
  border-color: #4b5563;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
}

[data-theme="dark"] .admin-action-button.secondary:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2));
}

[data-theme="dark"] .admin-action-button h3 {
  color: #f9fafb;
}

[data-theme="dark"] .admin-action-button p {
  color: #d1d5db;
}

/* Floating Action Button */
.floating-action-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  display: none;
}

.fab-button {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
  transition: all 0.3s ease;
}

.fab-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
  color: white;
  text-decoration: none;
}

/* Show FAB on mobile */
@media (max-width: 768px) {
  .floating-action-button {
    display: block;
  }
}

/* Responsive Admin Design */
@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }
  
  .admin-main-content {
    margin-left: 0;
  }
  
  .admin-sidebar.collapsed {
    width: 16rem;
  }
  
  .admin-sidebar.collapsed .admin-sidebar-brand {
    opacity: 1;
  }
  
  .admin-sidebar.collapsed .admin-nav-link span {
    display: block;
  }
  
  .admin-sidebar.collapsed .admin-nav-section-title {
    display: block;
  }
  
  .modern-dashboard-card {
    padding: 1rem;
  }
  
  .modern-stat-number {
    font-size: 2rem;
  }
  
  /* Additional mobile padding for forms */
  .max-w-6xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .max-w-6xl {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .modern-dashboard-card {
    padding: 0.75rem;
  }
}

/* Modern Form Styles */
.modern-form-label {
  display: flex;
  align-items: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.5rem;
}

.modern-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid #e5e7eb;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background-color: white;
}

.modern-form-input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.modern-form-input.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.modern-form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid #e5e7eb;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  resize: vertical;
  min-height: 200px;
  background-color: white;
}

.modern-form-textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.modern-form-help {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.modern-form-error {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
  color: #dc2626;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Modern Tab Navigation */
.modern-tab-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
}

.modern-tab-button {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  background-color: #f9fafb;
  color: #6b7280;
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.modern-tab-button:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.modern-tab-button.active {
  background-color: #7c3aed;
  color: white;
  border-color: #6d28d9;
}

.modern-tab-content {
  min-height: 400px;
}

.modern-tab-panel {
  animation: fadeIn 0.3s ease;
}

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

/* Modern Checkbox */
.modern-checkbox-container {
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 0.75rem;
  border: 2px solid #e5e7eb;
}

.modern-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
}

.modern-checkbox {
  display: none;
}

.modern-checkbox-mark {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #d1d5db;
  border-radius: 0.375rem;
  margin-right: 0.75rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.modern-checkbox:checked + .modern-checkbox-mark {
  background-color: #7c3aed;
  border-color: #7c3aed;
}

.modern-checkbox:checked + .modern-checkbox-mark::after {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.125rem;
  width: 0.25rem;
  height: 0.5rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.modern-checkbox-content {
  display: flex;
  flex-direction: column;
}

.modern-checkbox-title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.modern-checkbox-description {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Modern Form Buttons */
.modern-form-submit {
  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-family: 'Fredoka', cursive;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.modern-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.modern-form-cancel {
  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background-color: #f3f4f6;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-family: 'Fredoka', cursive;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.modern-form-cancel:hover {
  background-color: #e5e7eb;
  color: #374151;
  text-decoration: none;
}

/* Dark mode for forms */
[data-theme="dark"] .modern-form-label {
  color: #d1d5db;
}

[data-theme="dark"] .modern-form-input {
  background-color: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}

[data-theme="dark"] .modern-form-input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

[data-theme="dark"] .modern-form-textarea {
  background-color: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}

[data-theme="dark"] .modern-form-textarea:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

[data-theme="dark"] .modern-tab-button {
  background-color: #374151;
  color: #d1d5db;
}

[data-theme="dark"] .modern-tab-button:hover {
  background-color: #4b5563;
  color: #f9fafb;
}

[data-theme="dark"] .modern-tab-button.active {
  background-color: #7c3aed;
  color: white;
}

[data-theme="dark"] .modern-checkbox-container {
  background-color: #374151;
  border-color: #4b5563;
}

[data-theme="dark"] .modern-checkbox-title {
  color: #f9fafb;
}

[data-theme="dark"] .modern-checkbox-description {
  color: #d1d5db;
}

[data-theme="dark"] .modern-form-cancel {
  background-color: #374151;
  border-color: #4b5563;
  color: #d1d5db;
}

[data-theme="dark"] .modern-form-cancel:hover {
  background-color: #4b5563;
  color: #f9fafb;
}

/* Navigation Styles */
.nav-link {
  @apply font-nunito font-medium px-4 py-2 rounded-xl transition-all duration-300;
  color: var(--dark-text);
}

.nav-link:hover {
  background: rgba(90, 45, 130, 0.1);
  color: var(--primary-purple);
}

.nav-link.active {
  background: var(--primary-purple);
  color: white;
}

/* Decorative Blob Elements */
.cta-section .absolute {
  animation: float 6s ease-in-out infinite;
  filter: blur(1px);
}

.cta-section .absolute:nth-child(2) {
  animation-delay: -2s;
}

.cta-section .absolute:nth-child(3) {
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) scale(1) rotate(0deg);
  }
  33% {
    transform: translateY(-15px) scale(1.05) rotate(2deg);
  }
  66% {
    transform: translateY(-10px) scale(0.95) rotate(-1deg);
  }
}

/* Additional blob effects for other sections */
.hero-section .absolute {
  animation: blob-move 8s ease-in-out infinite;
}

.hero-section .absolute:nth-child(2) {
  animation-delay: -3s;
}

.hero-section .absolute:nth-child(3) {
  animation-delay: -6s;
}

@keyframes blob-move {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -10px) scale(1.1);
  }
  50% {
    transform: translate(-10px, 15px) scale(0.9);
  }
  75% {
    transform: translate(15px, 5px) scale(1.05);
  }
}

/* Footer Blob Styles */
.footer-blob {
  position: relative;
  background: linear-gradient(135deg, var(--primary-purple), var(--magenta));
  overflow: hidden;
}

.footer-blob::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath d='M0,40 Q25,0 50,40 T100,40 L100,40 L0,40 Z' fill='white'/%3E%3C/svg%3E") repeat-x;
  background-size: 200px 40px;
}

.footer-blob::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .scallop-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .scallop-card::before,
  .scallop-card::after {
    display: none;
  }
  
  .blob-hero::before,
  .blob-hero::after {
    display: none;
  }
}

/* Enhanced Lesson Page Styles */
.lesson-hero-gradient {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--magenta) 50%, var(--sunshine-yellow) 100%);
}

/* PDF Format Content Styles */
.lesson-content {
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  color: #374151;
}

.lesson-content h3 {
  font-family: 'Fredoka', cursive;
  font-size: 1.25rem;
  font-weight: 600;
  color: #5A2D82;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #E5E7EB;
  padding-bottom: 0.5rem;
}

.lesson-content h4 {
  font-family: 'Fredoka', cursive;
  font-size: 1.125rem;
  font-weight: 600;
  color: #6B7280;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.lesson-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.lesson-content ul, .lesson-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.lesson-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.lesson-content strong {
  color: #5A2D82;
  font-weight: 600;
}

/* Special Content Blocks */
.prayer-box {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border-left: 4px solid #F59E0B;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
  font-style: italic;
  position: relative;
}

.prayer-box::before {
  content: "🙏";
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.25rem;
}

.memory-verse {
  background: linear-gradient(135deg, #E0E7FF, #C7D2FE);
  border: 2px solid #6366F1;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  text-align: center;
  position: relative;
}

.memory-verse::before {
  content: "⭐";
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 1.25rem;
}

.memory-verse .verse-text {
  font-family: 'Fredoka', cursive;
  font-size: 1.125rem;
  font-weight: 600;
  color: #4F46E5;
  margin-bottom: 0.5rem;
}

.memory-verse .verse-reference {
  font-size: 0.875rem;
  color: #6B7280;
  font-style: italic;
}

.wonder-truth-highlight {
  background: linear-gradient(135deg, #F3E8FF, #E9D5FF);
  border: 2px solid #8B5CF6;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  text-align: center;
  position: relative;
}

.wonder-truth-highlight::before {
  content: "💝";
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 1.25rem;
}

.wonder-truth-highlight .truth-text {
  font-family: 'Fredoka', cursive;
  font-size: 1.25rem;
  font-weight: 700;
  color: #7C3AED;
  margin-bottom: 0.5rem;
}

.leader-script {
  background: #F9FAFB;
  border-left: 4px solid #10B981;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
  position: relative;
}

.leader-script::before {
  content: "📢";
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1rem;
}

.leader-script .script-label {
  font-family: 'Fredoka', cursive;
  font-weight: 600;
  color: #059669;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.activity-instructions {
  background: #F0FDF4;
  border: 2px solid #22C55E;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  position: relative;
}

.activity-instructions::before {
  content: "🎨";
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.25rem;
}

.activity-instructions .activity-title {
  font-family: 'Fredoka', cursive;
  font-size: 1.125rem;
  font-weight: 600;
  color: #15803D;
  margin-bottom: 1rem;
}

.activity-instructions ol {
  counter-reset: step-counter;
}

.activity-instructions ol li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.activity-instructions ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: #22C55E;
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.supply-checklist {
  background: #FEF7FF;
  border: 2px solid #D946EF;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  position: relative;
}

.supply-checklist::before {
  content: "📋";
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.25rem;
}

.supply-checklist .checklist-title {
  font-family: 'Fredoka', cursive;
  font-size: 1.125rem;
  font-weight: 600;
  color: #C026D3;
  margin-bottom: 1rem;
}

.supply-checklist .supply-category {
  margin-bottom: 1rem;
}

.supply-checklist .supply-category h5 {
  font-family: 'Fredoka', cursive;
  font-weight: 600;
  color: #A21CAF;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.supply-checklist ul {
  margin-left: 1rem;
}

.supply-checklist li {
  margin-bottom: 0.25rem;
}

.discussion-questions {
  background: #EFF6FF;
  border: 2px solid #3B82F6;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  position: relative;
}

.discussion-questions::before {
  content: "💬";
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.25rem;
}

.discussion-questions .age-group {
  font-family: 'Fredoka', cursive;
  font-weight: 600;
  color: #1D4ED8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.discussion-questions .question {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
}

.discussion-questions .question-number {
  font-weight: 600;
  color: #1E40AF;
}

/* Responsive adjustments for content blocks */
@media (max-width: 768px) {
  .prayer-box,
  .memory-verse,
  .wonder-truth-highlight,
  .leader-script,
  .activity-instructions,
  .supply-checklist,
  .discussion-questions {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .lesson-content h3 {
    font-size: 1.125rem;
  }
  
  .memory-verse .verse-text,
  .wonder-truth-highlight .truth-text {
    font-size: 1rem;
  }
}

.lesson-section-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lesson-section-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

.lesson-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lesson-card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(90, 45, 130, 0.15);
}

/* Enhanced Badge Styles */
.badge-enhanced {
  @apply font-nunito font-medium px-4 py-2 rounded-full text-sm transition-all duration-300;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-enhanced:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
  transform: scale(1.05);
}

/* Enhanced Action Buttons */
.btn-enhanced {
  @apply font-fredoka font-semibold px-8 py-4 rounded-2xl text-lg transition-all duration-300 transform;
  background: linear-gradient(135deg, var(--sunshine-yellow), var(--lime));
  color: var(--dark-text);
  box-shadow: 0 8px 25px rgba(255, 200, 87, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-enhanced:hover::before {
  left: 100%;
}

.btn-enhanced:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 200, 87, 0.4);
}

/* Enhanced Scallop Cards */
.scallop-card-enhanced {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(90, 45, 130, 0.1);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scallop-card-enhanced::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30'%3E%3Cpath d='M0,30 Q25,0 50,30 T100,30 L100,30 L0,30 Z' fill='white'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 30px;
}

.scallop-card-enhanced::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30'%3E%3Cpath d='M0,0 Q25,30 50,0 T100,0 L100,0 L0,0 Z' fill='white'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 30px;
}

.scallop-card-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(90, 45, 130, 0.15);
}

/* Enhanced Typography */
.prose-enhanced {
  @apply prose prose-lg max-w-none;
  font-family: 'Nunito', sans-serif;
}

.prose-enhanced h2 {
  @apply font-fredoka font-bold text-2xl text-purple-600 mb-4;
}

.prose-enhanced h3 {
  @apply font-fredoka font-semibold text-xl text-purple-600 mb-3;
}

.prose-enhanced p {
  @apply font-nunito text-gray-700 leading-relaxed mb-4;
}

.prose-enhanced ul {
  @apply font-nunito text-gray-700 space-y-2;
}

.prose-enhanced li {
  @apply leading-relaxed;
}

/* Enhanced Callout Boxes */
.callout-enhanced {
  @apply p-6 rounded-2xl my-6 border-l-4;
  font-family: 'Nunito', sans-serif;
  position: relative;
  overflow: hidden;
}

.callout-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  z-index: -1;
}

.callout-enhanced.info {
  background: linear-gradient(135deg, rgba(59, 199, 196, 0.1), rgba(90, 45, 130, 0.05));
  border-left-color: var(--teal);
}

.callout-enhanced.warning {
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.1), rgba(217, 58, 166, 0.05));
  border-left-color: var(--sunshine-yellow);
}

.callout-enhanced.tip {
  background: linear-gradient(135deg, rgba(167, 227, 75, 0.1), rgba(59, 199, 196, 0.05));
  border-left-color: var(--lime);
}

.callout-enhanced strong {
  @apply font-semibold;
  color: var(--primary-purple);
}

/* Responsive Design */
@media (max-width: 768px) {
  .heading-chunky {
    @apply text-3xl;
  }
  
  .scallop-card {
    @apply p-4;
  }
  
  .scallop-card-enhanced {
    @apply p-4;
  }
  
  .btn-playful {
    @apply px-6 py-3 text-base;
  }
  
  .btn-enhanced {
    @apply px-6 py-3 text-base;
  }
  
  .lesson-hero-gradient {
    padding: 3rem 0;
  }
  
  .lesson-section-icon {
    @apply w-10 h-10;
  }
  
  .prose-enhanced h2 {
    @apply text-xl;
  }
  
  .prose-enhanced h3 {
    @apply text-lg;
  }
  
  .callout-enhanced {
    @apply p-4;
  }
}

@media (max-width: 480px) {
  .heading-chunky {
    @apply text-2xl;
  }
  
  .scallop-card-enhanced {
    @apply p-3;
  }
  
  .btn-enhanced {
    @apply px-4 py-2 text-sm;
  }
  
  .lesson-hero-gradient {
    padding: 2rem 0;
  }
  
  .prose-enhanced {
    @apply prose-sm;
  }
}

/* Enhanced Admin Form Styles */
.tooltip-trigger {
  position: relative;
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1F2937;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  white-space: nowrap;
  z-index: 50;
  display: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1F2937;
}

.tab-description {
  display: block;
  font-size: 0.75rem;
  color: #6B7280;
  margin-top: 0.25rem;
}

.modern-tab-button {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem;
  min-height: 80px;
}

.modern-tab-button.active .tab-description {
  color: #5A2D82;
  font-weight: 500;
}

.modern-form-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
}

/* Enhanced TinyMCE Styles */
.tox-tinymce {
  border-radius: 0.75rem !important;
  border: 2px solid #E5E7EB !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.tox-tinymce:hover {
  border-color: #5A2D82 !important;
}

.tox .tox-toolbar__primary {
  background: linear-gradient(135deg, #F8FAFC, #F1F5F9) !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

.tox .tox-tbtn {
  border-radius: 0.375rem !important;
  margin: 0.125rem !important;
}

.tox .tox-tbtn:hover {
  background: #5A2D82 !important;
  color: white !important;
}

.tox .tox-tbtn--enabled {
  background: #5A2D82 !important;
  color: white !important;
}

/* Custom Content Block Styles in Editor */
.tox .prayer-box {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A) !important;
  border-left: 4px solid #F59E0B !important;
  padding: 1rem 1.5rem !important;
  margin: 1rem 0 !important;
  border-radius: 0.5rem !important;
  font-style: italic !important;
}

.tox .memory-verse {
  background: linear-gradient(135deg, #E0E7FF, #C7D2FE) !important;
  border: 2px solid #6366F1 !important;
  padding: 1.5rem !important;
  margin: 1.5rem 0 !important;
  border-radius: 0.75rem !important;
  text-align: center !important;
}

.tox .leader-script {
  background: #F9FAFB !important;
  border-left: 4px solid #10B981 !important;
  padding: 1rem 1.5rem !important;
  margin: 1rem 0 !important;
  border-radius: 0.5rem !important;
}

.tox .activity-instructions {
  background: #F0FDF4 !important;
  border: 2px solid #22C55E !important;
  padding: 1.5rem !important;
  margin: 1.5rem 0 !important;
  border-radius: 0.75rem !important;
}

.tox .supply-checklist {
  background: #FEF7FF !important;
  border: 2px solid #D946EF !important;
  padding: 1.5rem !important;
  margin: 1.5rem 0 !important;
  border-radius: 0.75rem !important;
}

.tox .discussion-questions {
  background: #EFF6FF !important;
  border: 2px solid #3B82F6 !important;
  padding: 1.5rem !important;
  margin: 1.5rem 0 !important;
  border-radius: 0.75rem !important;
}

/* Advanced Content Block Styles */
.bible-verse {
  background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
  border: 2px solid #0EA5E9;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  text-align: center;
  font-style: italic;
}

.bible-verse .verse-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0C4A6E;
  margin-bottom: 0.5rem;
}

.bible-verse .verse-reference {
  font-size: 0.875rem;
  color: #0369A1;
  font-weight: 500;
}

.story-time {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: 2px solid #F59E0B;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
}

.story-time .story-title {
  font-family: 'Fredoka', cursive;
  font-size: 1.25rem;
  font-weight: 600;
  color: #92400E;
  margin-bottom: 1rem;
  text-align: center;
}

.story-time .story-content {
  color: #451A03;
  line-height: 1.7;
}

.craft-instructions {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 2px solid #10B981;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
}

.craft-instructions .craft-title {
  font-family: 'Fredoka', cursive;
  font-size: 1.25rem;
  font-weight: 600;
  color: #047857;
  margin-bottom: 1rem;
  text-align: center;
}

.craft-instructions .craft-supplies,
.craft-instructions .craft-steps {
  margin: 1rem 0;
}

.craft-instructions h4 {
  font-family: 'Fredoka', cursive;
  color: #065F46;
  margin-bottom: 0.5rem;
}

.game-instructions {
  background: linear-gradient(135deg, #FEF7FF, #F3E8FF);
  border: 2px solid #A855F7;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
}

.game-instructions .game-title {
  font-family: 'Fredoka', cursive;
  font-size: 1.25rem;
  font-weight: 600;
  color: #7C2D12;
  margin-bottom: 1rem;
  text-align: center;
}

.game-instructions h4 {
  font-family: 'Fredoka', cursive;
  color: #6B21A8;
  margin-bottom: 0.5rem;
}

.song-block {
  background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
  border: 2px solid #22C55E;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
}

.song-block .song-title {
  font-family: 'Fredoka', cursive;
  font-size: 1.25rem;
  font-weight: 600;
  color: #166534;
  margin-bottom: 1rem;
  text-align: center;
}

.song-block .song-lyrics {
  color: #14532D;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.song-block .song-actions {
  background: rgba(34, 197, 94, 0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
  color: #166534;
}

.callout-box {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border-left: 4px solid #F59E0B;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.callout-box .callout-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.callout-box .callout-content {
  flex: 1;
  color: #92400E;
}

/* Advanced Editor Styles */
.tox .bible-verse {
  background: linear-gradient(135deg, #F0F9FF, #E0F2FE) !important;
  border: 2px solid #0EA5E9 !important;
  padding: 1.5rem !important;
  margin: 1.5rem 0 !important;
  border-radius: 0.75rem !important;
  text-align: center !important;
  font-style: italic !important;
}

.tox .story-time {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A) !important;
  border: 2px solid #F59E0B !important;
  padding: 1.5rem !important;
  margin: 1.5rem 0 !important;
  border-radius: 0.75rem !important;
}

.tox .craft-instructions {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5) !important;
  border: 2px solid #10B981 !important;
  padding: 1.5rem !important;
  margin: 1.5rem 0 !important;
  border-radius: 0.75rem !important;
}

.tox .game-instructions {
  background: linear-gradient(135deg, #FEF7FF, #F3E8FF) !important;
  border: 2px solid #A855F7 !important;
  padding: 1.5rem !important;
  margin: 1.5rem 0 !important;
  border-radius: 0.75rem !important;
}

.tox .song-block {
  background: linear-gradient(135deg, #F0FDF4, #DCFCE7) !important;
  border: 2px solid #22C55E !important;
  padding: 1.5rem !important;
  margin: 1.5rem 0 !important;
  border-radius: 0.75rem !important;
}

.tox .callout-box {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7) !important;
  border-left: 4px solid #F59E0B !important;
  padding: 1rem 1.5rem !important;
  margin: 1rem 0 !important;
  border-radius: 0.5rem !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
}

/* Responsive Design for Advanced Blocks */
@media (max-width: 768px) {
  .modern-tab-button {
    padding: 0.75rem 0.5rem;
    min-height: 70px;
  }
  
  .tab-description {
    font-size: 0.7rem;
  }
  
  .tooltip {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }
}

/* Accessibility Improvements */
.focus-visible:focus {
  outline: 3px solid var(--sunshine-yellow);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  @apply sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4;
  background: var(--primary-purple);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  z-index: 1000;
}

/* Modern Admin Lessons Page Enhancements */
.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;
}

/* Enhanced Card Hover Effects */
.lesson-card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lesson-card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Modern Gradient Backgrounds */
.gradient-purple-pink {
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
}

.gradient-blue-indigo {
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
}

.gradient-green-emerald {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.gradient-yellow-orange {
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
}

/* Enhanced Button Styles */
.btn-modern {
  @apply font-nunito font-semibold px-6 py-3 rounded-2xl text-base transition-all duration-300 transform;
  background: linear-gradient(135deg, var(--primary-purple), var(--magenta));
  color: white;
  box-shadow: 0 4px 15px rgba(90, 45, 130, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-modern:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(90, 45, 130, 0.4);
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-modern:hover::before {
  left: 100%;
}

/* Enhanced Form Elements */
.form-modern {
  @apply w-full px-4 py-3 rounded-2xl border-2 border-gray-200 font-nunito text-gray-900 transition-all duration-200;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.form-modern:focus {
  @apply outline-none border-purple-500;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  background: white;
}

.form-modern:hover {
  @apply border-gray-300;
}

/* Enhanced Badge Styles */
.badge-modern {
  @apply font-nunito font-medium px-3 py-1 rounded-full text-sm transition-all duration-300;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-modern:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
  transform: scale(1.05);
}

/* Enhanced Modal Styles */
.modal-backdrop {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Animation Classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce-slow {
  animation: bounce 2s infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .lesson-card-hover:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .btn-modern:hover {
    transform: translateY(-1px) scale(1.02);
  }
}

@media (max-width: 768px) {
  .lesson-card-hover:hover {
    transform: none;
  }
  
  .btn-modern:hover {
    transform: none;
  }
  
  .modal-content {
    margin: 1rem;
    border-radius: 1rem;
  }
  
  .form-modern {
    @apply px-3 py-2 text-sm;
  }
  
  .badge-modern {
    @apply px-2 py-1 text-xs;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 0.5rem;
    border-radius: 0.75rem;
  }
  
  .btn-modern {
    @apply px-4 py-2 text-sm;
  }
  
  .form-modern {
    @apply px-2 py-2 text-xs;
  }
}

/* Enhanced Focus States */
.focus-modern:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  border-color: #8B5CF6;
}

/* Enhanced Loading States */
.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced Scrollbar Styles */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7C3AED, #DB2777);
}

/* Enhanced Dark Mode Support */
[data-theme="dark"] .form-modern {
  background: rgba(31, 41, 55, 0.9);
  border-color: #374151;
  color: #F9FAFB;
}

[data-theme="dark"] .form-modern:focus {
  border-color: #A78BFA;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
  background: #1F2937;
}

[data-theme="dark"] .modal-content {
  background: #1F2937;
  border-color: #374151;
}

[data-theme="dark"] .badge-modern {
  background: linear-gradient(135deg, rgba(55, 65, 81, 0.2), rgba(31, 41, 55, 0.1));
  border-color: rgba(75, 85, 99, 0.3);
  color: #D1D5DB;
}

/* Enhanced Print Styles */
@media print {
  .lesson-card-hover:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  .btn-modern:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  .modal-backdrop,
  .modal-content {
    display: none !important;
  }
}