/**
 * Background Patterns for Theme Customization
 */

/* Pattern: None (Clean) */
body.pattern-none {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

[data-theme="dark"] body.pattern-none {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

/* Pattern: Dots - Colorful */
body.pattern-dots {
    background-color: #fef3c7;
    background-image: radial-gradient(#f59e0b 1.5px, transparent 1.5px),
                      radial-gradient(#ec4899 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

[data-theme="dark"] body.pattern-dots {
    background-color: #1e293b;
    background-image: radial-gradient(#f59e0b 1.5px, transparent 1.5px),
                      radial-gradient(#ec4899 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

/* Pattern: Diagonal Lines - Colorful */
body.pattern-diagonal {
    background: linear-gradient(135deg, #dbeafe 0%, #fce7f3 100%);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(59, 130, 246, 0.3) 20px,
        rgba(59, 130, 246, 0.3) 22px
    );
}

[data-theme="dark"] body.pattern-diagonal {
    background: linear-gradient(135deg, #0c4a6e 0%, #831843 100%);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(59, 130, 246, 0.3) 20px,
        rgba(59, 130, 246, 0.3) 22px
    );
}

/* Pattern: Waves - Colorful */
body.pattern-waves {
    background: linear-gradient(135deg, #bfdbfe 0%, #ddd6fe 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='%233b82f6' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
}

[data-theme="dark"] body.pattern-waves {
    background: linear-gradient(135deg, #1e3a8a 0%, #4c1d95 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='%2360a5fa' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Pattern: Hexagon - Colorful */
body.pattern-hexagon {
    background: linear-gradient(135deg, #fed7aa 0%, #fbbf24 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f97316' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] body.pattern-hexagon {
    background: linear-gradient(135deg, #92400e 0%, #ea580c 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fb923c' fill-opacity='0.3' fill-rule='evenodd'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Pattern: Circuit - Colorful */
body.pattern-circuit {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    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 2z' fill='%2310b981' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
}

[data-theme="dark"] body.pattern-circuit {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    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 2z' fill='%2334d399' fill-opacity='0.3' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* ============================================ */
/* ANIMATED PATTERNS */
/* ============================================ */

/* Pattern: Animated Gradient */
body.pattern-gradient-anim {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

[data-theme="dark"] body.pattern-gradient-anim {
    background: linear-gradient(-45deg, #991b1b, #831843, #1e40af, #065f46);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pattern: Floating Particles */
body.pattern-particles {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

body.pattern-particles::before,
body.pattern-particles::after {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

body.pattern-particles::before {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 200px 200px, 300px 300px, 250px 250px, 180px 180px, 220px 220px;
    animation: particleFloat 20s linear infinite;
}

body.pattern-particles::after {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 30% 90%, rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 280px 280px, 240px 240px, 260px 260px;
    animation: particleFloat 15s linear infinite reverse;
}

[data-theme="dark"] body.pattern-particles {
    background: linear-gradient(135deg, #4338ca 0%, #6b21a8 100%);
}

@keyframes particleFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

/* Pattern: Aurora Borealis */
body.pattern-aurora {
    background: #0a0e27;
    position: relative;
}

body.pattern-aurora::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(to bottom, 
            transparent 0%, 
            rgba(16, 185, 129, 0.2) 25%, 
            rgba(59, 130, 246, 0.2) 50%, 
            rgba(168, 85, 247, 0.2) 75%, 
            transparent 100%);
    animation: auroraWave 20s ease-in-out infinite;
    pointer-events: none;
}

body.pattern-aurora::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(to right, 
            transparent 0%, 
            rgba(236, 72, 153, 0.15) 25%, 
            rgba(59, 130, 246, 0.15) 50%, 
            rgba(16, 185, 129, 0.15) 75%, 
            transparent 100%);
    animation: auroraWave 15s ease-in-out infinite reverse;
    pointer-events: none;
}

[data-theme="dark"] body.pattern-aurora {
    background: #030712;
}

@keyframes auroraWave {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    25% { 
        transform: translateY(20%) translateX(10%) rotate(2deg);
        opacity: 1;
    }
    50% { 
        transform: translateY(10%) translateX(-10%) rotate(-1deg);
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-10%) translateX(5%) rotate(1deg);
        opacity: 1;
    }
}

/* Pattern: Rising Bubbles */
body.pattern-bubbles {
    background: linear-gradient(to bottom, #0ea5e9, #06b6d4, #14b8a6);
    position: relative;
}

body.pattern-bubbles::before {
    content: '';
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 20px, transparent 20px),
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 15px, transparent 15px),
        radial-gradient(circle, rgba(255, 255, 255, 0.25) 25px, transparent 25px),
        radial-gradient(circle, rgba(255, 255, 255, 0.15) 18px, transparent 18px);
    background-size: 10% 40%, 15% 50%, 12% 45%, 8% 35%;
    background-position: 10% 100%, 40% 100%, 70% 100%, 90% 100%;
    background-repeat: no-repeat;
    animation: bubbleRise 12s ease-in-out infinite;
    pointer-events: none;
}

body.pattern-bubbles::after {
    content: '';
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 22px, transparent 22px),
        radial-gradient(circle, rgba(255, 255, 255, 0.18) 16px, transparent 16px),
        radial-gradient(circle, rgba(255, 255, 255, 0.22) 20px, transparent 20px);
    background-size: 8% 38%, 14% 48%, 11% 42%;
    background-position: 25% 100%, 55% 100%, 80% 100%;
    background-repeat: no-repeat;
    animation: bubbleRise 15s ease-in-out infinite;
    animation-delay: 2s;
    pointer-events: none;
}

[data-theme="dark"] body.pattern-bubbles {
    background: linear-gradient(to bottom, #0c4a6e, #155e75, #0f766e);
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

/* Pattern: Neon Icons (Font Awesome) - Ghost Theme */
body.pattern-neon-icons {
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1419 100%);
    position: relative;
}

/* Multiple Ghosts spread evenly */
body.pattern-neon-icons::before {
    content: '\f6e2';
    position: fixed;
    top: 10%;
    left: 8%;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 180px;
    color: transparent;
    /* Create multiple ghosts at spread out positions */
    text-shadow: 
        /* Ghost 1 - top left */
        0 0 8px #00d4ff,
        0 0 15px #00d4ff,
        0 0 25px #00d4ff,
        /* Ghost 2 - top right */
        1100px 50px 8px #00b4d8,
        1100px 50px 15px #00b4d8,
        1100px 50px 25px #00b4d8,
        /* Ghost 3 - bottom left */
        150px 550px 8px #0096c7,
        150px 550px 15px #0096c7,
        150px 550px 25px #0096c7,
        /* Ghost 4 - bottom right */
        1050px 600px 8px #00d4ff,
        1050px 600px 15px #00d4ff,
        1050px 600px 25px #00d4ff;
    opacity: 0.3;
    animation: neonGhostFloat1 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* More spread out ghosts with different animation */
body.pattern-neon-icons::after {
    content: '\f6e2';
    position: fixed;
    top: 35%;
    left: 45%;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 170px;
    color: transparent;
    text-shadow: 
        /* Ghost 5 - center */
        0 0 8px #00d4ff,
        0 0 15px #00d4ff,
        0 0 25px #00d4ff,
        /* Ghost 6 - middle right */
        600px 100px 8px #0096c7,
        600px 100px 15px #0096c7,
        600px 100px 25px #0096c7;
    opacity: 0.28;
    animation: neonGhostFloat2 10s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

[data-theme="dark"] body.pattern-neon-icons {
    background: linear-gradient(135deg, #03045e 0%, #001233 100%);
}

/* Make page titles and text visible on dark neon background */
body.pattern-neon-icons .dashboard-header h1,
body.pattern-neon-icons .welcome-section h1,
body.pattern-neon-icons .page-title,
body.pattern-neon-icons h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.pattern-neon-icons .dashboard-header p,
body.pattern-neon-icons .welcome-section p,
body.pattern-neon-icons .page-subtitle,
body.pattern-neon-icons .subtitle,
body.pattern-neon-icons .page-header p,
body.pattern-neon-icons header p,
body.pattern-neon-icons .header p {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Glassmorphism effect for cards and sections */
body.pattern-neon-icons .stat-card,
body.pattern-neon-icons .dashboard-card,
body.pattern-neon-icons .dashboard-section,
body.pattern-neon-icons .subject-card,
body.pattern-neon-icons .paper-card,
body.pattern-neon-icons .student-card,
body.pattern-neon-icons .tutor-card,
body.pattern-neon-icons .assignment-card,
body.pattern-neon-icons .assignment-item,
body.pattern-neon-icons .form-card,
body.pattern-neon-icons .connect-tutor-banner,
body.pattern-neon-icons .activity-item,
body.pattern-neon-icons .action-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

/* Glassmorphic header */
body.pattern-neon-icons .header {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* Adjust text colors for glassmorphic cards */
body.pattern-neon-icons .stat-card h3,
body.pattern-neon-icons .dashboard-card h3,
body.pattern-neon-icons .dashboard-section h3,
body.pattern-neon-icons .stat-card .stat-value,
body.pattern-neon-icons .stat-card .stat-label {
    color: #ffffff !important;
}

body.pattern-neon-icons .stat-card p,
body.pattern-neon-icons .dashboard-card p,
body.pattern-neon-icons .dashboard-section p,
body.pattern-neon-icons .assignment-item p,
body.pattern-neon-icons .activity-item p,
body.pattern-neon-icons .subject-card p,
body.pattern-neon-icons .paper-card p,
body.pattern-neon-icons .student-card p,
body.pattern-neon-icons .tutor-card p,
body.pattern-neon-icons .assignment-card p,
body.pattern-neon-icons .form-card p,
body.pattern-neon-icons .action-card p {
    color: #ffffff !important;
}

body.pattern-neon-icons .stat-card small,
body.pattern-neon-icons .dashboard-card small,
body.pattern-neon-icons .dashboard-section small,
body.pattern-neon-icons .assignment-item small,
body.pattern-neon-icons .activity-item small,
body.pattern-neon-icons .subject-card small,
body.pattern-neon-icons .paper-card small,
body.pattern-neon-icons .student-card small,
body.pattern-neon-icons .tutor-card small,
body.pattern-neon-icons .assignment-card small,
body.pattern-neon-icons .form-card small,
body.pattern-neon-icons .action-card small {
    color: #ffffff !important;
}

body.pattern-neon-icons .meta-badge {
    color: #ffffff !important;
}

body.pattern-neon-icons .meta-badge i {
    color: #ffffff !important;
}

/* Glassmorphic buttons */
body.pattern-neon-icons .btn {
    background: rgba(0, 180, 216, 0.3) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.5) !important;
    color: #ffffff !important;
}

body.pattern-neon-icons .btn:hover {
    background: rgba(0, 180, 216, 0.5) !important;
    border-color: rgba(0, 212, 255, 0.7) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4) !important;
}

body.pattern-neon-icons .btn-primary {
    background: rgba(0, 180, 216, 0.3) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.5) !important;
    color: #ffffff !important;
}

body.pattern-neon-icons .btn-primary:hover {
    background: rgba(0, 180, 216, 0.5) !important;
    border-color: rgba(0, 212, 255, 0.7) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4) !important;
}

body.pattern-neon-icons .btn-secondary {
    background: rgba(0, 180, 216, 0.3) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.5) !important;
    color: #ffffff !important;
}

body.pattern-neon-icons .btn-secondary:hover {
    background: rgba(0, 180, 216, 0.5) !important;
    border-color: rgba(0, 212, 255, 0.7) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4) !important;
}

/* Chat button - Blue neon style */
body.pattern-neon-icons .open-chat-btn,
body.pattern-neon-icons .btn-chat {
    background: rgba(0, 180, 216, 0.3) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.5) !important;
    color: #ffffff !important;
}

body.pattern-neon-icons .open-chat-btn:hover,
body.pattern-neon-icons .btn-chat:hover {
    background: rgba(0, 180, 216, 0.5) !important;
    border-color: rgba(0, 212, 255, 0.7) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4) !important;
}

/* Icon buttons - Blue neon style */
body.pattern-neon-icons .btn-icon {
    background: rgba(0, 180, 216, 0.3) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.5) !important;
    color: #ffffff !important;
}

body.pattern-neon-icons .btn-icon:hover {
    background: rgba(0, 180, 216, 0.5) !important;
    border-color: rgba(0, 212, 255, 0.7) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4) !important;
}

/* Header navigation and logo */
body.pattern-neon-icons .logo {
    color: #ffffff !important;
}

body.pattern-neon-icons .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.pattern-neon-icons .nav-link:hover,
body.pattern-neon-icons .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Hamburger menu icon */
body.pattern-neon-icons .mobile-menu-toggle span {
    background: #ffffff !important;
}

/* Section headings and icons */
body.pattern-neon-icons h2,
body.pattern-neon-icons h3,
body.pattern-neon-icons h4 {
    color: #ffffff !important;
}

body.pattern-neon-icons .section-header h2,
body.pattern-neon-icons .section-header h3 {
    color: #ffffff !important;
}

body.pattern-neon-icons .fas,
body.pattern-neon-icons .fa,
body.pattern-neon-icons .far,
body.pattern-neon-icons .fab,
body.pattern-neon-icons i[class^="fa"] {
    color: #ffffff !important;
}

/* User menu */
body.pattern-neon-icons .user-menu {
    background: rgba(0, 180, 216, 0.3) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.5) !important;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 8px;
}

body.pattern-neon-icons .user-menu:hover {
    background: rgba(0, 180, 216, 0.5) !important;
    border-color: rgba(0, 212, 255, 0.7) !important;
}

body.pattern-neon-icons .user-menu span {
    color: #ffffff !important;
}

body.pattern-neon-icons .user-menu i {
    color: #00d4ff !important;
}

/* User dropdown menu items */
body.pattern-neon-icons .user-dropdown-content a {
    color: #ffffff !important;
}

body.pattern-neon-icons #theme-text,
body.pattern-neon-icons #theme-text-mobile {
    color: #000000 !important;
}

@keyframes neonGhostFloat1 {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-15px) translateX(10px);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-25px) translateX(-5px);
        opacity: 0.35;
    }
    75% {
        transform: translateY(-10px) translateX(15px);
        opacity: 0.4;
    }
}

@keyframes neonGhostFloat2 {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.25;
    }
    33% {
        transform: translateY(-20px) translateX(-10px) scale(1.05);
        opacity: 0.35;
    }
    66% {
        transform: translateY(-10px) translateX(10px) scale(0.95);
        opacity: 0.3;
    }
}

@keyframes neonGhostFloat3 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.28;
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.38;
    }
}

@keyframes neonGhostFloat4 {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.22;
    }
    40% {
        transform: translateY(-18px) translateX(-8px);
        opacity: 0.32;
    }
    80% {
        transform: translateY(-12px) translateX(12px);
        opacity: 0.28;
    }
}

/* Pattern: Low Poly Geometric */
body.pattern-low-poly {
    background: linear-gradient(135deg, #fef9e7 0%, #f8b4d9 30%, #c084fc 60%, #7c3aed 80%, #4c1d95 100%);
    position: relative;
}

body.pattern-low-poly::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='1000' height='1000' viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23fef3c7;stop-opacity:0.9' /%3E%3Cstop offset='25%25' style='stop-color:%23fce7f3;stop-opacity:0.85' /%3E%3Cstop offset='50%25' style='stop-color:%23e9d5ff;stop-opacity:0.8' /%3E%3Cstop offset='75%25' style='stop-color:%23c084fc;stop-opacity:0.85' /%3E%3Cstop offset='100%25' style='stop-color:%237c3aed;stop-opacity:0.9' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23g1)' fill-opacity='0.8'%3E%3Cpolygon points='0,0 200,50 0,180'/%3E%3Cpolygon points='200,50 0,0 280,0'/%3E%3Cpolygon points='280,0 200,50 420,80'/%3E%3Cpolygon points='420,80 200,50 380,200'/%3E%3Cpolygon points='0,180 200,50 180,280'/%3E%3Cpolygon points='180,280 200,50 380,200'/%3E%3Cpolygon points='420,80 550,0 680,120'/%3E%3Cpolygon points='550,0 420,80 600,0'/%3E%3Cpolygon points='680,120 420,80 650,220'/%3E%3Cpolygon points='650,220 420,80 380,200'/%3E%3Cpolygon points='680,120 800,0 920,140'/%3E%3Cpolygon points='800,0 680,120 850,0'/%3E%3Cpolygon points='920,140 680,120 900,250'/%3E%3Cpolygon points='0,180 180,280 0,380'/%3E%3Cpolygon points='180,280 0,380 220,420'/%3E%3Cpolygon points='380,200 180,280 420,350'/%3E%3Cpolygon points='420,350 180,280 220,420'/%3E%3Cpolygon points='650,220 380,200 600,380'/%3E%3Cpolygon points='600,380 380,200 420,350'/%3E%3Cpolygon points='900,250 650,220 820,400'/%3E%3Cpolygon points='820,400 650,220 600,380'/%3E%3Cpolygon points='0,380 220,420 0,580'/%3E%3Cpolygon points='220,420 0,580 280,620'/%3E%3Cpolygon points='420,350 220,420 450,550'/%3E%3Cpolygon points='450,550 220,420 280,620'/%3E%3Cpolygon points='600,380 420,350 620,580'/%3E%3Cpolygon points='620,580 420,350 450,550'/%3E%3Cpolygon points='820,400 600,380 780,600'/%3E%3Cpolygon points='780,600 600,380 620,580'/%3E%3Cpolygon points='900,250 820,400 1000,420'/%3E%3Cpolygon points='1000,420 820,400 950,580'/%3E%3Cpolygon points='0,580 280,620 0,780'/%3E%3Cpolygon points='280,620 0,780 320,820'/%3E%3Cpolygon points='450,550 280,620 500,750'/%3E%3Cpolygon points='500,750 280,620 320,820'/%3E%3Cpolygon points='620,580 450,550 680,780'/%3E%3Cpolygon points='680,780 450,550 500,750'/%3E%3Cpolygon points='780,600 620,580 850,800'/%3E%3Cpolygon points='850,800 620,580 680,780'/%3E%3Cpolygon points='950,580 780,600 1000,720'/%3E%3Cpolygon points='1000,720 780,600 850,800'/%3E%3Cpolygon points='0,780 320,820 0,1000'/%3E%3Cpolygon points='320,820 0,1000 380,1000'/%3E%3Cpolygon points='500,750 320,820 550,950'/%3E%3Cpolygon points='550,950 320,820 380,1000'/%3E%3Cpolygon points='680,780 500,750 720,920'/%3E%3Cpolygon points='720,920 500,750 550,950'/%3E%3Cpolygon points='850,800 680,780 900,1000'/%3E%3Cpolygon points='900,1000 680,780 720,920'/%3E%3Cpolygon points='1000,720 850,800 1000,920'/%3E%3Cpolygon points='1000,920 850,800 900,1000'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    pointer-events: none;
    opacity: 0.6;
    animation: lowPolyShift 30s ease-in-out infinite;
    z-index: -1;
}

body.pattern-low-poly::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(254, 243, 199, 0.3) 0%,
        rgba(252, 231, 243, 0.3) 20%,
        rgba(233, 213, 255, 0.3) 40%,
        rgba(192, 132, 252, 0.4) 60%,
        rgba(124, 58, 237, 0.5) 80%,
        rgba(76, 29, 149, 0.6) 100%);
    pointer-events: none;
    animation: lowPolyPulse 20s ease-in-out infinite;
    z-index: -1;
}

[data-theme="dark"] body.pattern-low-poly {
    background: linear-gradient(135deg, #2d1b4e 0%, #5b21b6 30%, #7c3aed 60%, #a855f7 80%, #c084fc 100%);
}

@keyframes lowPolyShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: scale(1.05) rotate(1deg);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.02) rotate(-1deg);
        opacity: 0.65;
    }
    75% {
        transform: scale(1.08) rotate(0.5deg);
        opacity: 0.75;
    }
}

@keyframes lowPolyPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* Pattern: Sliding Diagonal */
body.pattern-sliding-diagonal {
    background: var(--background);
    position: relative;
}

body.pattern-sliding-diagonal::before {
    content: '';
    animation: slideBackground 3s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, #6366f1 50%, #ec4899 50%);
    bottom: 0;
    left: -50%;
    opacity: 0.5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1;
    pointer-events: none;
}

body.pattern-sliding-diagonal::after {
    content: '';
    animation: slideBackground 4s ease-in-out infinite alternate-reverse;
    background-image: linear-gradient(-60deg, #8b5cf6 50%, #06b6d4 50%);
    bottom: 0;
    left: -50%;
    opacity: 0.5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1;
    pointer-events: none;
}

/* Third sliding layer using a positioned div would require JS, so we'll use a complex gradient instead */
body.pattern-sliding-diagonal {
    background-image: 
        linear-gradient(-60deg, rgba(236, 72, 153, 0.3) 50%, rgba(6, 182, 212, 0.3) 50%);
    background-size: 200% 100%;
    animation: slideBackgroundBase 5s ease-in-out infinite alternate;
}

[data-theme="dark"] body.pattern-sliding-diagonal::before {
    background-image: linear-gradient(-60deg, #4338ca 50%, #be185d 50%);
    opacity: 0.6;
}

[data-theme="dark"] body.pattern-sliding-diagonal::after {
    background-image: linear-gradient(-60deg, #6b21a8 50%, #0e7490 50%);
    opacity: 0.6;
}

[data-theme="dark"] body.pattern-sliding-diagonal {
    background-image: 
        linear-gradient(-60deg, rgba(190, 24, 93, 0.3) 50%, rgba(14, 116, 144, 0.3) 50%);
}

@keyframes slideBackground {
    0% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(25%);
    }
}

@keyframes slideBackgroundBase {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* Pattern: Rainbow Rays */
body.pattern-rainbow-rays {
    background: radial-gradient(circle at center, #f0f9ff 0%, #dbeafe 100%);
    position: relative;
    min-height: 100vh;
    height: auto;
}

/* Prevent height issues from pseudo-elements */
html:has(body.pattern-rainbow-rays) {
    overflow-x: hidden;
}

html:has(body.pattern-rainbow-rays) body {
    overflow-x: hidden;
}

body.pattern-rainbow-rays::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        from 0deg,
        #ff0000 0deg,
        #ff7f00 30deg,
        #ffff00 60deg,
        #00ff00 90deg,
        #00ffff 120deg,
        #0000ff 150deg,
        #8b00ff 180deg,
        #ff00ff 210deg,
        #ff0000 240deg,
        #ff7f00 270deg,
        #ffff00 300deg,
        #00ff00 330deg,
        #00ffff 360deg
    );
    opacity: 0.12;
    filter: blur(40px);
    animation: rainbowRotate 120s linear infinite;
    pointer-events: none;
    z-index: -1;
}

/* Simplified - no animated rays, just rotating rainbow gradient */

[data-theme="dark"] body.pattern-rainbow-rays {
    background: radial-gradient(circle at center, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] body.pattern-rainbow-rays::before {
    opacity: 0.15;
    filter: blur(50px);
}


@keyframes rainbowRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Removed rainbowRotateReverse and rainbowPulse animations - no longer needed */

/* Theme Customizer Modal */
.theme-customizer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.theme-customizer-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-customizer-content {
    background: var(--card-bg);
}

.theme-customizer-header {
    padding: 24px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-customizer-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

[data-theme="dark"] .theme-customizer-header h3 {
    color: var(--text);
}

.close-customizer {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-customizer:hover {
    background: var(--light);
}

.theme-customizer-body {
    padding: 24px;
}

.theme-customizer-body h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

[data-theme="dark"] .theme-customizer-body h4 {
    color: var(--text);
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.pattern-option {
    cursor: pointer;
    transition: all 0.2s;
}

.pattern-option.active .pattern-preview {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.pattern-preview {
    aspect-ratio: 1;
    border-radius: 12px;
    border: 3px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
}

.pattern-preview:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pattern-name {
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 1.2;
}

[data-theme="dark"] .pattern-name {
    background: rgba(31, 41, 55, 0.95);
    color: var(--text);
}

/* Preview backgrounds for each pattern */
.pattern-preview.pattern-none {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.pattern-preview.pattern-dots {
    background-color: #fef3c7;
    background-image: radial-gradient(#f59e0b 2px, transparent 2px);
    background-size: 20px 20px;
}

.pattern-preview.pattern-diagonal {
    background: linear-gradient(135deg, #dbeafe 0%, #fce7f3 100%),
                repeating-linear-gradient(
                    45deg,
                    transparent,
                    transparent 15px,
                    rgba(59, 130, 246, 0.4) 15px,
                    rgba(59, 130, 246, 0.4) 17px
                );
    background-blend-mode: normal;
}

.pattern-preview.pattern-waves {
    background: linear-gradient(135deg, #bfdbfe 0%, #ddd6fe 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='%233b82f6' fill-opacity='0.5' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.pattern-preview.pattern-hexagon {
    background: linear-gradient(135deg, #fed7aa 0%, #fbbf24 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f97316' fill-opacity='0.5' fill-rule='evenodd'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/svg%3E");
}

.pattern-preview.pattern-circuit {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    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 2z' fill='%2310b981' fill-opacity='0.5' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.pattern-preview.pattern-gradient-anim {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

.pattern-preview.pattern-particles {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pattern-preview.pattern-aurora {
    background: #0a0e27;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 50%, #0a0e27 100%);
}

.pattern-preview.pattern-bubbles {
    background: linear-gradient(to bottom, #0ea5e9, #06b6d4, #14b8a6);
}

.pattern-preview.pattern-neon-icons {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.pattern-preview.pattern-neon-icons::after {
    content: '\f6e2';
    position: absolute;
    top: 15%;
    left: 10%;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 65px;
    color: transparent;
    text-shadow: 
        0 0 5px #00d4ff,
        0 0 10px #00d4ff,
        0 0 15px #00d4ff,
        100px 70px 5px #00b4d8,
        100px 70px 10px #00b4d8,
        100px 70px 15px #00b4d8;
    animation: neonGhostFloat1 3s ease-in-out infinite;
}

.pattern-preview.pattern-low-poly {
    background: linear-gradient(135deg, #fef9e7 0%, #f8b4d9 30%, #c084fc 60%, #7c3aed 80%, #4c1d95 100%);
    position: relative;
    overflow: hidden;
}

.pattern-preview.pattern-low-poly::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.3'%3E%3Cpolygon points='0,0 40,10 0,36'/%3E%3Cpolygon points='40,10 0,0 56,0'/%3E%3Cpolygon points='56,0 40,10 84,16'/%3E%3Cpolygon points='0,36 40,10 36,56'/%3E%3Cpolygon points='84,16 110,0 136,24'/%3E%3Cpolygon points='110,0 84,16 120,0'/%3E%3Cpolygon points='36,56 40,10 76,40'/%3E%3Cpolygon points='76,40 40,10 84,16'/%3E%3Cpolygon points='136,24 84,16 130,44'/%3E%3Cpolygon points='0,36 36,56 0,76'/%3E%3Cpolygon points='36,56 0,76 44,84'/%3E%3Cpolygon points='76,40 36,56 84,70'/%3E%3Cpolygon points='84,70 36,56 44,84'/%3E%3Cpolygon points='130,44 76,40 120,76'/%3E%3Cpolygon points='120,76 76,40 84,70'/%3E%3Cpolygon points='0,76 44,84 0,116'/%3E%3Cpolygon points='44,84 0,116 56,124'/%3E%3Cpolygon points='84,70 44,84 90,110'/%3E%3Cpolygon points='90,110 44,84 56,124'/%3E%3Cpolygon points='120,76 84,70 124,116'/%3E%3Cpolygon points='124,116 84,70 90,110'/%3E%3Cpolygon points='0,116 56,124 0,156'/%3E%3Cpolygon points='56,124 0,156 64,164'/%3E%3Cpolygon points='90,110 56,124 100,150'/%3E%3Cpolygon points='100,150 56,124 64,164'/%3E%3Cpolygon points='124,116 90,110 136,156'/%3E%3Cpolygon points='136,156 90,110 100,150'/%3E%3Cpolygon points='0,156 64,164 0,200'/%3E%3Cpolygon points='64,164 0,200 76,200'/%3E%3Cpolygon points='100,150 64,164 110,190'/%3E%3Cpolygon points='110,190 64,164 76,200'/%3E%3Cpolygon points='136,156 100,150 144,184'/%3E%3Cpolygon points='144,184 100,150 110,190'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.5;
}

.pattern-preview.pattern-sliding-diagonal {
    background: linear-gradient(-60deg, #6366f1 50%, #ec4899 50%);
    position: relative;
    overflow: hidden;
}

.pattern-preview.pattern-sliding-diagonal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(-60deg, rgba(139, 92, 246, 0.6) 50%, rgba(6, 182, 212, 0.6) 50%);
    animation: slideBackground 2s ease-in-out infinite alternate;
}

.pattern-preview.pattern-rainbow-rays {
    background: radial-gradient(circle at center, #f0f9ff 0%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
}

.pattern-preview.pattern-rainbow-rays::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        from 0deg,
        #ff0000 0deg,
        #ff7f00 45deg,
        #ffff00 90deg,
        #00ff00 135deg,
        #00ffff 180deg,
        #0000ff 225deg,
        #8b00ff 270deg,
        #ff00ff 315deg,
        #ff0000 360deg
    );
    opacity: 0.3;
    animation: rainbowRotate 10s linear infinite;
}

.pattern-preview.pattern-rainbow-rays::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        transparent 8deg,
        rgba(255, 255, 255, 0.6) 8deg,
        rgba(255, 255, 255, 0.6) 9deg,
        transparent 9deg,
        transparent 20deg
    );
    opacity: 0.8;
}

.theme-customizer-footer {
    padding: 20px 24px;
    border-top: 2px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

[data-theme="dark"] .theme-customizer-header,
[data-theme="dark"] .theme-customizer-footer {
    border-color: var(--border);
}
