/* ===============================
   Flow Creation Wizard Styles
   =============================== */

/* Wizard Modal Overlay */
.wizard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.wizard-modal.show {
    opacity: 1;
}

/* Wizard Container */
.wizard-container {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: linear-gradient(145deg, #1e1e1e 0%, #252526 100%);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wizard-modal.show .wizard-container {
    transform: scale(1) translateY(0);
}

/* Wizard Header */
.wizard-header {
    padding: 24px 30px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(155, 89, 182, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wizard-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wizard-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db 0%, #9b59b6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.wizard-title h2 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
}

.wizard-title p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.wizard-close-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.wizard-close-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
    color: #e74c3c;
}

/* Progress Bar */
.wizard-progress {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wizard-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-number {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #3498db;
    color: #fff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.wizard-step.completed .wizard-step-number {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-color: #2ecc71;
    color: #fff;
}

.wizard-step.completed .wizard-step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.wizard-step-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.wizard-step.active .wizard-step-label,
.wizard-step.completed .wizard-step-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Wizard Content */
.wizard-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.wizard-page {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.wizard-page.active {
    display: block;
}

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

/* Page Titles */
.wizard-page-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizard-page-title i {
    color: #3498db;
}

.wizard-page-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 25px 0;
}

/* Template Selection (Step 1) */
.template-type-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.template-type-card {
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.template-type-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.template-type-card.selected {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.2);
}

.template-type-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(155, 89, 182, 0.2) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #3498db;
    transition: all 0.3s ease;
}

.template-type-card:hover .template-type-icon,
.template-type-card.selected .template-type-icon {
    transform: scale(1.1);
}

.template-type-card.selected .template-type-icon {
    background: linear-gradient(135deg, #3498db 0%, #9b59b6 100%);
    color: #fff;
}

.template-type-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
}

.template-type-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

/* Template Grid */
.wizard-templates-section {
    margin-top: 20px;
    display: none;
}

.wizard-templates-section.visible {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.wizard-templates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.wizard-templates-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-templates-filter {
    display: flex;
    gap: 8px;
}

.wizard-filter-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.wizard-filter-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

.wizard-templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.wizard-template-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wizard-template-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.wizard-template-card.selected {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
}

.wizard-template-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.wizard-template-card-icon {
    width: 36px;
    height: 36px;
    background: rgba(52, 152, 219, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    font-size: 16px;
}

.wizard-template-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    flex: 1;
}

.wizard-template-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.4;
}

.wizard-template-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wizard-template-difficulty {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.wizard-template-difficulty.easy {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.wizard-template-difficulty.medium {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

.wizard-template-difficulty.hard {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.wizard-template-nodes {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Form Fields (Step 2) */
.wizard-form-group {
    margin-bottom: 24px;
}

.wizard-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.wizard-form-label span {
    color: #e74c3c;
}

.wizard-form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.wizard-form-input:focus {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.wizard-form-input:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.wizard-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.wizard-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.wizard-form-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}

/* Icon Selector */
.wizard-icon-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.wizard-icon-option {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
}

.wizard-icon-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.wizard-icon-option.selected {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

/* Execution Mode (Step 3) */
.wizard-execution-modes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wizard-execution-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.wizard-execution-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.wizard-execution-card.selected {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
}

.wizard-execution-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.wizard-execution-card.selected .wizard-execution-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.wizard-execution-content {
    flex: 1;
}

.wizard-execution-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px 0;
}

.wizard-execution-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

.wizard-execution-radio {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wizard-execution-card.selected .wizard-execution-radio {
    border-color: #3498db;
    background: #3498db;
}

.wizard-execution-card.selected .wizard-execution-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* Cron Config */
.wizard-cron-config {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: none;
}

.wizard-execution-card.selected .wizard-cron-config {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.wizard-cron-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.wizard-cron-preset {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-cron-preset:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.wizard-cron-preset.selected {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

/* Summary (Step 4) */
.wizard-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wizard-summary-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.wizard-summary-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wizard-summary-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    font-size: 18px;
}

.wizard-summary-card-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.wizard-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.wizard-summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wizard-summary-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.wizard-summary-value {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    text-align: right;
    max-width: 60%;
}

.wizard-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(52, 152, 219, 0.15);
    border-radius: 6px;
    font-size: 12px;
    color: #3498db;
}

/* Wizard Footer */
.wizard-footer {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wizard-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-skip-btn {
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.wizard-skip-btn:hover {
    color: #fff;
}

.wizard-footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wizard-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.wizard-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.wizard-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.wizard-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.wizard-btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.wizard-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Animations */
@keyframes wizardPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
}

.wizard-btn-primary.pulse {
    animation: wizardPulse 2s infinite;
}

/* Scrollbar for wizard */
.wizard-content::-webkit-scrollbar,
.wizard-templates-grid::-webkit-scrollbar {
    width: 6px;
}

.wizard-content::-webkit-scrollbar-track,
.wizard-templates-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.wizard-content::-webkit-scrollbar-thumb,
.wizard-templates-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.wizard-content::-webkit-scrollbar-thumb:hover,
.wizard-templates-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===============================
   AI Generator Styles
   =============================== */

/* AI Badge */
.ai-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

/* AI Gradient Icon */
.template-type-icon.ai-gradient {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    position: relative;
}

.template-type-icon.ai-gradient i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.template-type-card[data-type="ai"]:hover .template-type-icon.ai-gradient,
.template-type-card[data-type="ai"].selected .template-type-icon.ai-gradient {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* AI Section Container */
.wizard-ai-section {
    display: none;
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

.wizard-ai-section.visible {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AI Generator Container */
.ai-generator-container {
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
}

/* AI Header */
.ai-generator-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.ai-header-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ai-header-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
}

.ai-header-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* AI Input */
.ai-input-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.ai-prompt-input {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
}

.ai-prompt-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ai-prompt-input:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* AI Input Footer */
.ai-input-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 12px;
}

/* AI Examples */
.ai-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1;
}

.ai-examples-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.ai-example-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ai-example-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    color: #fff;
}

.ai-example-btn i {
    font-size: 10px;
    opacity: 0.7;
}

/* AI Generate Button */
.ai-generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ai-generate-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ai-generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ai-generate-btn i {
    font-size: 14px;
}

/* AI Generating State */
.ai-generating-state {
    padding: 30px 20px;
    text-align: center;
}

.ai-loading-animation {
    margin-bottom: 24px;
}

.ai-loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ai-loading-dots span {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    animation: aiDotPulse 1.4s ease-in-out infinite;
}

.ai-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes aiDotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.ai-loading-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* AI Loading Steps */
.ai-loading-steps {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ai-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.ai-step i {
    font-size: 14px;
}

.ai-step.active {
    color: #667eea;
}

.ai-step.completed {
    color: #2ecc71;
}

.ai-step.completed i::before {
    content: "\f00c";
}

/* AI Result Preview */
.ai-result-preview {
    animation: fadeIn 0.3s ease;
}

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

.ai-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ai-result-header h5 {
    font-size: 14px;
    font-weight: 600;
    color: #2ecc71;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-regenerate-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.ai-regenerate-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    color: #fff;
}

/* AI Result Summary */
.ai-result-summary {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.ai-result-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-stat {
    text-align: center;
}

.ai-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* AI Result Nodes */
.ai-result-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-result-node {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.ai-result-node i {
    font-size: 11px;
    opacity: 0.7;
}

.ai-node-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
}

/* AI Result Description */
.ai-result-description {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.ai-result-description p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-container {
        width: 95%;
        max-height: 95vh;
    }

    .template-type-selection {
        grid-template-columns: 1fr;
    }

    .wizard-templates-grid {
        grid-template-columns: 1fr;
    }

    .wizard-steps::before {
        display: none;
    }

    .wizard-step-label {
        display: none;
    }

    .ai-input-footer {
        flex-direction: column;
    }

    .ai-examples {
        order: 2;
    }

    .ai-generate-btn {
        width: 100%;
        justify-content: center;
        order: 1;
    }

    .ai-loading-steps {
        flex-direction: column;
        gap: 12px;
    }
}
