/**
 * Flow UI Styles
 * Designer-quality UI for multi-step user journeys
 */

/* Flow Step Card */
.flow-step-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.flow-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* Flow Step Header */
.flow-step-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

/* Progress Bar */
.flow-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.flow-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    transition: width 0.6s ease-in-out;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Flow Step Body */
.flow-step-body {
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.flow-prompt {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.flow-help {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Form Elements in Flow */
.flow-step-body .form-control,
.flow-step-body .form-select {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.flow-step-body .form-control:focus,
.flow-step-body .form-select:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    outline: none;
}

.flow-step-body label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Flow Step Footer */
.flow-step-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.flow-step-footer .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.flow-step-footer .btn-primary {
    background: white;
    color: #667eea;
    border: none;
}

.flow-step-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.flow-step-footer .btn-success {
    background: #10b981;
    border: none;
}

.flow-step-footer .btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* AI Generation Status */
.ai-generation-status {
    text-align: center;
    padding: 3rem 2rem;
}

.ai-generation-status .spinner-border {
    width: 4rem;
    height: 4rem;
    border-width: 0.3rem;
}

.ai-generation-status p {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

/* Preview Container */
.preview-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.preview-header h5 {
    font-weight: 600;
    margin: 0;
}

.preview-container iframe {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Deployment Options */
.deployment-options {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.deployment-options h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.deployment-options .form-check {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.deployment-options .form-check:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.deployment-options .form-check-input:checked {
    background-color: #10b981;
    border-color: #10b981;
}

/* Flow Complete Card */
.flow-complete-card {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.flow-complete-icon {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.flow-complete-card h3 {
    font-size: 2rem;
    font-weight: 700;
}

.flow-complete-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Loading Overlay */
.flow-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 16px;
}

.flow-loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flow-step-card {
        padding: 1.5rem;
    }
    
    .flow-step-header h3 {
        font-size: 1.5rem;
    }
    
    .flow-step-footer {
        flex-direction: column;
    }
    
    .flow-step-footer .btn {
        width: 100%;
    }
    
    .preview-container iframe {
        height: 400px;
    }
}

/* Flow Trigger Button (for Vibe Coding section) */
.flow-trigger-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.flow-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.flow-trigger-btn i {
    margin-right: 0.5rem;
}

/* Flow Modal (if needed) */
.flow-modal {
    z-index: 1050;
}

.flow-modal .modal-dialog {
    max-width: 900px;
}

.flow-modal .modal-content {
    border-radius: 16px;
    border: none;
    background: #f8f9fa;
}

.flow-modal .modal-body {
    padding: 2rem;
}
