/* Base styles */
body {
    font-family: 'Lato', sans-serif;
    position: relative;
    overflow-x: hidden;
    background-color: #f3f0ff;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  }
  
  /* Text effects */
  .title-emboss {
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.2), 
                -1px -1px 2px rgba(0, 0, 0, 0.2);
  }
  
  .shimmer-text {
    background: linear-gradient(to right, #6a5acd 20%, #fff 40%, #9d8bc4 60%, #6a5acd 80%);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .glow-text {
    text-shadow: 0 0 10px rgba(106, 90, 205, 0.5), 
                 0 0 20px rgba(106, 90, 205, 0.3),
                 0 0 30px rgba(106, 90, 205, 0.1);
  }
  
  .magic-text {
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(120deg, #9d8bc4 0%, #6a5acd 50%, #9d8bc4 100%);
  }
  
  /* Memory date label */
  .memory-date {
    background-color: rgba(106, 90, 205, 0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
  }
  
  /* Enhanced memories styling */
  .memory-media {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
  }
  
  .memory-media img {
    transition: all 0.7s ease;
  }
  
  .memory-media:hover img {
    transform: scale(1.1);
  }
  
  /* Background effects */
  .sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
      radial-gradient(circle at 20% 30%, rgba(157, 139, 196, 0.1) 0%, transparent 8%),
      radial-gradient(circle at 50% 80%, rgba(106, 90, 205, 0.1) 0%, transparent 10%),
      radial-gradient(circle at 80% 10%, rgba(224, 216, 240, 0.1) 0%, transparent 5%);
  }
  
  .floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
  }
  
  .floating-particles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
      radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 0.5%),
      radial-gradient(circle at 10% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 0.5%),
      radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.3) 0%, transparent 0.5%),
      radial-gradient(circle at 70% 90%, rgba(255, 255, 255, 0.4) 0%, transparent 0.5%),
      radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 0.5%),
      radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 0.5%);
  }
  
  .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
                             rgba(106, 90, 205, 0.1) 0%, 
                             rgba(157, 139, 196, 0.1) 25%, 
                             rgba(224, 216, 240, 0.1) 50%,
                             rgba(157, 139, 196, 0.1) 75%,
                             rgba(106, 90, 205, 0.1) 100%);
    background-size: 400% 400%;
    pointer-events: none;
  }
  
  /* Shadow effect */
  .shadow-magical {
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.4), 0 3px 5px rgba(0, 0, 0, 0.1);
  }
  
  /* Fix for use-toast error in React components */
  .toaster {
    position: fixed;
    z-index: 9999;
    top: 1rem;
    right: 1rem;
    bottom: auto;
    pointer-events: none;
  }
  
  /* Mobile-specific styles */
  @media (max-width: 767px) {
    .book {
      height: 85vh !important;
    }
    
    #page-counter {
      font-size: 0.85rem;
      padding: 0.35rem 0.75rem;
    }
    
    .page {
      height: 100% !important;
    }
    
    .page-content {
      padding: 20px !important;
    }
    
    .nav-btn-floating {
      display: none;
    }
  }
  
  /* Prevents text selection during page flipping */
  .no-select {
    user-select: none;
    -webkit-user-select: none;
  }
  