* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #F5F3F0 0%, #FFFFFF 50%, #B8C5D1 100%);
    min-height: 100vh;
    color: #4A5568;
    line-height: 1.6;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(ellipse at top, rgba(200, 168, 216, 0.1) 0%, transparent 50%),
                linear-gradient(135deg, #F5F3F0 0%, #FFFFFF 50%, #B8C5D1 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #8FA0A8, #C8A8D8, #B8C5D1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 500px;
    color: #6B7280;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(200, 168, 216, 0.3);
    box-shadow: 0 4px 16px rgba(143, 160, 168, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, #C8A8D8, #B8C5D1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    color: #FFFFFF;
}

.stat-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #8FA0A8;
}

.stat-content p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
    color: #6B7280;
}

.hero-cta {
    text-align: left;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(45deg, #C8A8D8, #8FA0A8);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(200, 168, 216, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(200, 168, 216, 0.4);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 0;
    color: #6B7280;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

.lotus-svg {
    width: 280px;
    height: 280px;
    filter: drop-shadow(0 0 20px rgba(200, 168, 216, 0.2));
    opacity: 0.85;
}

/* Subtle lotus animations - center is now stationary */
.lotus-center-fixed {
    /* No animation - stays completely stationary */
}

.lotus-heart {
    animation: softGlow 4s ease-in-out infinite alternate;
    transform-origin: center;
}

.outer-petals {
    animation: gentleFloat 12s ease-in-out infinite;
    transform-origin: center;
}

.inner-petals {
    animation: gentleFloat 12s ease-in-out infinite reverse;
    transform-origin: center;
}

/* Zen floating elements */
.zen-1 { animation: zenFloat1 8s ease-in-out infinite; }
.zen-2 { animation: zenFloat2 10s ease-in-out infinite; }
.zen-3 { animation: zenFloat3 12s ease-in-out infinite; }
.zen-4 { animation: zenFloat4 9s ease-in-out infinite; }

/* Keyframes for lotus */
@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes softGlow {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

@keyframes zenFloat1 {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    50% { transform: translate(-5px, -8px); opacity: 0.8; }
}

@keyframes zenFloat2 {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(3px, 6px); opacity: 0.7; }
}

@keyframes zenFloat3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.4; }
    50% { transform: translate(-3px, 5px); opacity: 0.6; }
}

@keyframes zenFloat4 {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    50% { transform: translate(4px, -4px); opacity: 0.8; }
}

/* Features Section */
.features-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(200, 168, 216, 0.2);
    box-shadow: 0 8px 32px rgba(143, 160, 168, 0.1);
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.features-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #8FA0A8, #C8A8D8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-header p {
    font-size: 1.2rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
    color: #6B7280;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(200, 168, 216, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(143, 160, 168, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 168, 216, 0.5);
    box-shadow: 0 12px 40px rgba(143, 160, 168, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #C8A8D8, #B8C5D1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 2;
    color: #FFFFFF;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #8FA0A8;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
    color: #6B7280;
}

/* Pattern Builder Styles */
.pattern-builder {
    flex: 1;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.5s ease;
}

.pattern-builder.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.builder-header {
    text-align: center;
    margin-bottom: 2rem;
}

.builder-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.builder-header p {
    font-size: 1.1rem;
    opacity: 0.7;
    color: #6B7280;
}

/* Presets Section */
.presets-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(200, 168, 216, 0.2);
    box-shadow: 0 4px 16px rgba(143, 160, 168, 0.1);
}

.presets-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #8FA0A8;
}

/* Preset Categories */
.preset-category {
    margin-bottom: 2rem;
}

.preset-category h4 {
    color: #4A5568;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(200, 168, 216, 0.3);
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

/* New Educational Content Styles */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.preset-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.preset-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 154, 237, 0.15);
}

.preset-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.preset-header .preset-btn {
    flex: 1;
    margin: 0;
}

.info-toggle {
    background: rgba(139, 154, 237, 0.1);
    border: 2px solid rgba(139, 154, 237, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-toggle:hover {
    background: rgba(139, 154, 237, 0.2);
    border-color: rgba(139, 154, 237, 0.5);
    transform: scale(1.1);
}

.preset-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 154, 237, 0.2);
    animation: slideDown 0.3s ease-out;
}

.preset-info.hidden {
    display: none;
}

.technique-overview {
    margin-bottom: 1.5rem;
}

.technique-overview h5 {
    color: #4C51BF;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.technique-overview p {
    color: #4A5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.research-benefits {
    margin-bottom: 1.5rem;
}

.research-benefits h6 {
    color: #2D3748;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.research-benefits ul {
    list-style: none;
    padding: 0;
}

.research-benefits li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(139, 154, 237, 0.1);
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4A5568;
}

.research-benefits li:last-child {
    border-bottom: none;
}

.research-benefits strong {
    color: #4C51BF;
    font-weight: 600;
}

.expert-quote {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 154, 237, 0.05) 0%, rgba(157, 123, 196, 0.05) 100%);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid #8B9AED;
}

.expert-quote blockquote {
    margin: 0;
    font-style: italic;
    color: #4A5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

.expert-quote blockquote::before {
    content: '"';
    font-size: 1.5rem;
    color: #8B9AED;
    font-weight: bold;
}

.expert-quote blockquote::after {
    content: '"';
    font-size: 1.5rem;
    color: #8B9AED;
    font-weight: bold;
}

.how-it-works h6 {
    color: #2D3748;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.how-it-works p {
    color: #4A5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Animation for expanding content */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Educational Content */
@media (max-width: 768px) {
    .preset-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .preset-card {
        padding: 1rem;
    }
    
    .preset-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .info-toggle {
        align-self: center;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .technique-overview h5 {
        font-size: 1.1rem;
    }
    
    .research-benefits li,
    .technique-overview p,
    .how-it-works p {
        font-size: 0.85rem;
    }
    
    .expert-quote {
        padding: 0.75rem;
    }
    
    .expert-quote blockquote {
        font-size: 0.85rem;
    }
}

.preset-btn {
    background: linear-gradient(135deg, #8b9aed 0%, #9d7bc4 100%);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(139, 154, 237, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preset-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 154, 237, 0.3);
    background: linear-gradient(135deg, #a5b2f0 0%, #b599d1 100%);
}

/* Category-specific color variations - lighter variations of the main theme */
.preset-category:nth-child(2) .preset-btn {
    background: linear-gradient(135deg, #7c8ce5 0%, #8b6dd4 100%);
    box-shadow: 0 4px 15px rgba(124, 140, 229, 0.2);
}

.preset-category:nth-child(2) .preset-btn:hover {
    background: linear-gradient(135deg, #9bb0f0 0%, #a890e3 100%);
    box-shadow: 0 8px 25px rgba(124, 140, 229, 0.3);
}

.preset-category:nth-child(3) .preset-btn {
    background: linear-gradient(135deg, #7c72f0 0%, #a265b8 100%);
    box-shadow: 0 4px 15px rgba(124, 114, 240, 0.2);
}

.preset-category:nth-child(3) .preset-btn:hover {
    background: linear-gradient(135deg, #9691f5 0%, #be87d1 100%);
    box-shadow: 0 8px 25px rgba(124, 114, 240, 0.3);
}

.preset-category:nth-child(4) .preset-btn {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.2);
}

.preset-category:nth-child(4) .preset-btn:hover {
    background: linear-gradient(135deg, #c4b5fd 0%, #ddd6fe 100%);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.3);
}

.preset-category:nth-child(5) .preset-btn {
    background: linear-gradient(135deg, #8b9aed 0%, #a78bfa 100%);
    box-shadow: 0 4px 15px rgba(139, 154, 237, 0.2);
}

.preset-category:nth-child(5) .preset-btn:hover {
    background: linear-gradient(135deg, #a5b2f0 0%, #c4b5fd 100%);
    box-shadow: 0 8px 25px rgba(139, 154, 237, 0.3);
}

/* Steps Builder */
.steps-builder {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(200, 168, 216, 0.2);
    box-shadow: 0 4px 16px rgba(143, 160, 168, 0.1);
}

/* Collapsible Sections */
.collapsible-toggle {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.collapsible-toggle:hover {
    color: #C8A8D8;
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    display: inline-block;
    min-width: 1rem;
}

.collapsible-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    max-height: 0;
}

.collapsible-content.expanded {
    max-height: 2000px; /* Large enough to accommodate content */
}

.collapsible-content.collapsed {
    max-height: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.3rem;
    color: #8FA0A8;
}

.add-step-btn {
    background: linear-gradient(45deg, #C8A8D8, #B8C5D1);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(200, 168, 216, 0.3);
}

.add-step-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 168, 216, 0.4);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(143, 160, 168, 0.1);
}

.step-item:hover {
    border-color: rgba(200, 168, 216, 0.5);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(143, 160, 168, 0.15);
}

.step-item.dragging {
    opacity: 0.7;
    transform: scale(1.05);
    z-index: 1000;
}

.step-handle {
    cursor: grab;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.2s;
}

.step-handle:hover {
    background: rgba(200, 168, 216, 0.2);
    color: #8FA0A8;
}

.step-handle:active {
    cursor: grabbing;
}

.step-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto auto 2fr;
    gap: 1rem;
    align-items: center;
}

.step-type {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(200, 168, 216, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    color: #4A5568;
    font-size: 1rem;
    cursor: pointer;
}

.step-type option {
    background: #FFFFFF;
    color: #4A5568;
}

.step-duration {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(200, 168, 216, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    color: #4A5568;
    font-size: 1rem;
    text-align: center;
    width: 70px;
}

.step-duration::-webkit-outer-spin-button,
.step-duration::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.duration-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.step-label {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(200, 168, 216, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    color: #4A5568;
    font-size: 1rem;
}

.step-label::placeholder {
    color: rgba(107, 114, 128, 0.6);
}

.remove-step-btn {
    background: rgba(244, 67, 54, 0.8);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-step-btn:hover {
    background: rgba(244, 67, 54, 1);
    transform: scale(1.1);
}

/* Styling Section */
.styling-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(200, 168, 216, 0.2);
    box-shadow: 0 4px 16px rgba(143, 160, 168, 0.1);
}

.styling-section h3 {
    font-size: 1.3rem;
    color: #8FA0A8;
    margin-bottom: 1.5rem;
}

.style-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.style-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.style-option label {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Style Groups */
.style-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.style-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.style-group h4 {
    color: #8FA0A8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Color Presets */
.color-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
}

.color-preset {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(143, 160, 168, 0.1);
}

.color-preset:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(143, 160, 168, 0.15);
}

.color-preset.active {
    border-color: #C8A8D8;
    background: rgba(200, 168, 216, 0.1);
}

.preset-colors {
    display: flex;
    gap: 2px;
    margin-bottom: 0.25rem;
}

.preset-colors span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.color-preset span {
    font-size: 0.75rem;
    color: rgba(107, 114, 128, 0.8);
    font-weight: 500;
}

/* Color Controls */
.color-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.color-controls .style-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

input[type="color"] {
    width: 40px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

/* Toggle Switches */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(143, 160, 168, 0.3);
    transition: .2s;
    border-radius: 24px;
    z-index: 1;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: #C8A8D8;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
}

/* Range Sliders */
.line-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.line-controls .style-option {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-input {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(143, 160, 168, 0.3);
    outline: none;
    -webkit-appearance: none;
}

.slider-input::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #C8A8D8;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #C8A8D8;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.range-value {
    min-width: 40px;
    text-align: right;
    font-size: 0.9rem;
    color: rgba(107, 114, 128, 0.8);
    font-weight: 500;
}

/* Effects Controls */
.effects-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.effects-controls .style-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Controls Section */
.controls-section {
    text-align: center;
}

.generate-btn {
    background: linear-gradient(45deg, #C8A8D8, #8FA0A8);
    border: none;
    padding: 1rem 3rem;
    border-radius: 25px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(200, 168, 216, 0.4);
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 168, 216, 0.6);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Visualization Area */
.visualization-area {
    flex: 1;
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    background: linear-gradient(135deg, #F5F3F0 0%, #B8C5D1 100%);
    min-height: 100vh;
}

.visualization-area.active {
    display: flex;
}

.viz-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 1px solid rgba(200, 168, 216, 0.2);
    box-shadow: 0 4px 16px rgba(143, 160, 168, 0.1);
}

.back-btn {
    background: rgba(143, 160, 168, 0.3);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: #4A5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(200, 168, 216, 0.3);
}

.back-btn:hover {
    background: rgba(200, 168, 216, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(143, 160, 168, 0.15);
}

.visualization-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 0.25rem;
    gap: 0.25rem;
    border: 1px solid rgba(200, 168, 216, 0.3);
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    color: rgba(107, 114, 128, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.toggle-btn.active {
    background: rgba(200, 168, 216, 0.3);
    color: #4A5568;
}

.toggle-btn:hover:not(.active) {
    background: rgba(200, 168, 216, 0.2);
    color: rgba(74, 85, 104, 0.9);
}

.current-step {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C8A8D8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.svg-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(200, 168, 216, 0.2);
    box-shadow: 0 4px 16px rgba(143, 160, 168, 0.1);
}

#breathingSVG {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(200, 168, 216, 0.2));
}

.playback-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.control-btn {
    background: linear-gradient(45deg, #C8A8D8, #B8C5D1);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(200, 168, 216, 0.3);
}

.control-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200, 168, 216, 0.4);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.control-btn#pauseBtn {
    background: linear-gradient(45deg, #8FA0A8, #B8C5D1);
}

.control-btn#pauseBtn:hover:not(:disabled) {
    box-shadow: 0 6px 18px rgba(143, 160, 168, 0.4);
}

.control-btn#resetBtn {
    background: linear-gradient(45deg, #8FA0A8, #6B7280);
}

.control-btn#resetBtn:hover:not(:disabled) {
    box-shadow: 0 6px 18px rgba(107, 114, 128, 0.4);
}

/* Audio Controls */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Audio Controls in Style Section */
.audio-controls-style {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Temporary Audio Switcher in Visualizer */
.temp-audio-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    margin: 1rem 0;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.temp-audio-switcher label {
    color: #FFD700;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.temp-audio-switcher select {
    background: linear-gradient(45deg, #4B5563, #374151);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
    outline: none;
    transition: all 0.3s ease;
}

.temp-audio-switcher select:hover {
    background: linear-gradient(45deg, #6B7280, #4B5563);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.temp-audio-switcher select:focus {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.temp-audio-switcher select option {
    background: #374151;
    color: white;
    padding: 0.5rem;
}

.audio-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    align-items: center;
}

.audio-mode-btn {
    background: linear-gradient(45deg, #6B7280, #4B5563);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.audio-mode-btn:hover {
    background: linear-gradient(45deg, #9CA3AF, #6B7280);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.audio-mode-btn.active {
    background: linear-gradient(45deg, #10B981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.audio-mode-btn.active:hover {
    background: linear-gradient(45deg, #34D399, #10B981);
}

.audio-btn {
    background: linear-gradient(45deg, #FF9800, #FF5722);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.audio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.audio-btn.muted {
    background: linear-gradient(45deg, #9E9E9E, #757575);
    box-shadow: 0 2px 8px rgba(158, 158, 158, 0.3);
}

.mode-btn {
    background: linear-gradient(45deg, #4CAF50, #388E3C) !important;
    min-width: 90px !important;
}

.mode-btn:hover {
    background: linear-gradient(45deg, #45a049, #2E7D32) !important;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#volumeSlider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #C8A8D8, #B8C5D1);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#volumeSlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #C8A8D8, #B8C5D1);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.volume-label {
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 35px;
    text-align: center;
}

.pattern-summary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(200, 168, 216, 0.2);
    box-shadow: 0 4px 16px rgba(143, 160, 168, 0.1);
}

.pattern-summary h4 {
    color: #8FA0A8;
    margin-bottom: 0.5rem;
}

.pattern-summary .summary-steps {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.summary-step {
    background: rgba(200, 168, 216, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #4A5568;
    border: 1px solid rgba(200, 168, 216, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .breathing-animation {
        width: 300px;
        height: 300px;
    }
    
    .hero-visual {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 1rem;
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .pattern-builder {
        padding: 1rem;
    }
    
    .builder-header h2 {
        font-size: 2rem;
    }
    
    .features-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .features-header h2 {
        font-size: 2rem;
    }
    
    .features-header p {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .preset-buttons {
        grid-template-columns: 1fr;
    }
    
    .step-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .collapsible-toggle {
        font-size: 1rem;
    }
    
    .toggle-icon {
        font-size: 0.7rem;
    }
    
    .style-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .color-presets {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .color-controls .style-option,
    .line-controls .style-option,
    .effects-controls .style-option {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .viz-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .playback-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .hero-cta {
        text-align: center;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* SVG Animation Styles */
#breathingPath {
    stroke-dasharray: 0;
    stroke-dashoffset: 0;
    transition: stroke-dasharray 0.1s ease-out;
}

#breathingBall {
    transition: all 0.1s ease-out;
}

#stepIndicator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Quiz Section Styles */
.quiz-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.quiz-header {
    text-align: center;
    margin-bottom: 1rem;
}

.quiz-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2D3748;
}

.quiz-header p {
    color: #718096;
    margin-bottom: 1.5rem;
}

.quiz-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.quiz-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.quiz-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 25%; /* 1/4 questions */
}

.progress-text {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-question h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2D3748;
    line-height: 1.4;
}

.quiz-question p {
    color: #718096;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.quiz-options {
    display: grid;
    gap: 0.75rem;
}

.quiz-option {
    background: #F7FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quiz-option:hover {
    border-color: #CBD5E0;
    background: #EDF2F7;
}

.quiz-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.quiz-option.selected .option-icon {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.quiz-option .option-icon {
    font-size: 1.25rem;
    min-width: 24px;
}

.quiz-option .option-text {
    flex: 1;
}

.quiz-option .option-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quiz-option .option-desc {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.3;
}

.quiz-navigation {
    display: flex;
    justify-content: flex-start;
    margin-top: 2rem;
    gap: 1rem;
}

.quiz-nav-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #E2E8F0;
    background: white;
    color: #4A5568;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 150px;
}

.quiz-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quiz-nav-btn:not(:disabled):hover {
    border-color: #CBD5E0;
    background: #F7FAFC;
}

.quiz-nav-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.quiz-nav-btn.primary:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.quiz-results {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2D3748;
}

.results-subtitle {
    color: #718096;
    font-size: 1rem;
}

.recommended-techniques {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.recommended-technique {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.recommended-technique:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.recommended-technique::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.technique-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.technique-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2D3748;
}

.technique-match {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.technique-category {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.technique-description {
    color: #4A5568;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.technique-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.benefit-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quiz-action-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #E2E8F0;
    background: white;
    color: #4A5568;
    transition: all 0.3s ease;
    min-width: 160px;
}

.quiz-action-btn.secondary {
    border-color: #CBD5E0;
}

.quiz-action-btn.secondary:hover {
    border-color: #A0AEC0;
    background: #F7FAFC;
}

.quiz-action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.quiz-action-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.hidden {
    display: none !important;
}

/* Responsive Quiz Styles */
@media (max-width: 768px) {
    .quiz-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .quiz-container,
    .quiz-results {
        padding: 1.5rem;
    }
    
    .quiz-navigation {
        flex-direction: column;
    }
    
    .quiz-nav-btn {
        max-width: none;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .quiz-action-btn {
        min-width: auto;
        width: 100%;
    }
    
    .technique-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}