/* Quick Wizard Styles */

.wizard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.wizard-overlay.active {
    display: flex;
}

.wizard-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .wizard-modal {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.wizard-header {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 24px 24px 0 0;
}

.wizard-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.wizard-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wizard-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.wizard-progress {
    height: 6px;
    background: rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .wizard-progress {
    background: rgba(59, 130, 246, 0.2);
}

.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.wizard-step-indicator {
    text-align: center;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    background: rgba(59, 130, 246, 0.05);
}

[data-theme="dark"] .wizard-step-indicator {
    color: #9ca3af;
    background: rgba(59, 130, 246, 0.1);
}

.wizard-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.wizard-field-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
    display: flex;
    align-items: center;
}

[data-theme="dark"] .wizard-field-title {
    color: #f3f4f6;
}

.wizard-field-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .wizard-field-subtitle {
    color: #9ca3af;
}

.wizard-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.wizard-option {
    padding: 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    text-align: center;
    font-size: 0.9375rem;
}

[data-theme="dark"] .wizard-option {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

.wizard-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .wizard-option:hover {
    border-color: #3b82f6;
    background: #1f2937;
}

.wizard-option.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.wizard-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.2s;
    background: white;
    color: #1f2937;
}

[data-theme="dark"] .wizard-input {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

.wizard-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wizard-footer {
    padding: 1.5rem;
    border-top: 2px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    background: white;
}

[data-theme="dark"] .wizard-footer {
    border-color: #374151;
    background: #1f2937;
}

.wizard-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Vazirmatn', sans-serif;
}

.wizard-btn-back {
    background: #f3f4f6;
    color: #4b5563;
}

[data-theme="dark"] .wizard-btn-back {
    background: #374151;
    color: #d1d5db;
}

.wizard-btn-back:hover {
    background: #e5e7eb;
    transform: translateX(2px);
}

[data-theme="dark"] .wizard-btn-back:hover {
    background: #4b5563;
}

.wizard-btn-skip {
    background: #fef3c7;
    color: #92400e;
}

[data-theme="dark"] .wizard-btn-skip {
    background: #78350f;
    color: #fef3c7;
}

.wizard-btn-skip:hover {
    background: #fde68a;
    transform: translateY(-2px);
}

[data-theme="dark"] .wizard-btn-skip:hover {
    background: #92400e;
}

.wizard-btn-next {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    flex: 1;
    justify-content: center;
}

.wizard-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .wizard-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .wizard-header {
        border-radius: 0;
    }
    
    .wizard-body {
        padding: 1.5rem;
    }
    
    .wizard-options {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .wizard-option {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .wizard-footer {
        flex-wrap: wrap;
    }
    
    .wizard-btn {
        flex: 1;
        min-width: 100px;
    }
}
