/* Style Switcher Components */
.style-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.style-switcher-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.style-switcher-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.style-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
    margin-top: 10px;
    border: 1px solid #e5e7eb;
}

.style-options.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.style-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.style-option:hover {
    background: #f8fafc;
    transform: translateX(-5px);
}

.style-option.active {
    background: #f1f5f9;
    border-color: #6366f1;
}

.style-preview {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #e5e7eb;
}

.terminal-preview {
    background: linear-gradient(135deg, #0a0a0a 50%, #00ff00 150%);
}

.modern-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.default-preview {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
}

.style-option span {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.style-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10001;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

/* Dark mode support for style selector */
@media (prefers-color-scheme: dark) {
    .style-options {
        background: #1f2937;
        border-color: #374151;
    }
    
    .style-option:hover {
        background: #374151;
    }
    
    .style-option.active {
        background: #4b5563;
    }
    
    .style-option span {
        color: #f3f4f6;
    }
    
    .style-preview {
        border-color: #4b5563;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .style-selector {
        top: 10px;
        right: 10px;
    }
    
    .style-switcher-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .style-options {
        min-width: 130px;
    }
}