/* Enhanced AI Demo Styles */

.auto-scanning-indicator {
    display: none;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid #6366f1;
    border-radius: 8px;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% { 
        box-shadow: 0 0 20px 5px rgba(99, 102, 241, 0.2);
    }
}

.animated-sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.animated-sidebar-icon svg {
    width: 24px;
    height: 24px;
}

.sidebar-icon.active.animated-sidebar-icon svg {
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

/* Ensure breakdown items align properly */
.breakdown-item-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breakdown-item-mini svg {
    flex-shrink: 0;
}

/* Quick action button animations */
.action-btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.action-btn-mini svg {
    flex-shrink: 0;
}

/* Essay paragraph enhanced scanning effect */
.essay-paragraph.scanning {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.1) 50%, 
        transparent 100%);
    animation: scanWave 1s ease-out;
}

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

/* Auto-play indicator */
.demo-instructions {
    position: relative;
    padding-left: 30px;
}

.demo-instructions::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid #10b981;
    border-radius: 50%;
    border-top-color: transparent;
    animation: rotate 1s linear infinite;
}

/* Enhanced result animations */
.results-section:not(.results-hidden) {
    animation: slideInRight 0.5s ease-out;
}

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