/* Container Wizard Styles */

.modal-wizard {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-wizard .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Progress Steps */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #2196F3;
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: #4CAF50;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    max-width: 80px;
}

.progress-step.active .step-label {
    color: #2196F3;
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 0.5rem;
    position: relative;
    top: -15px;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

.wizard-step h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.wizard-step > .text-secondary {
    margin-bottom: 1.5rem;
}

/* App Type Grid */
.app-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.app-type-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.app-type-card:hover {
    border-color: #2196F3;
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.app-type-card.selected {
    border-color: #2196F3;
    background: #2196F3;
    color: white;
}

.app-type-card.selected .app-type-desc {
    color: rgba(255, 255, 255, 0.9);
}

.app-type-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.app-type-card h4 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.app-type-desc {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.type-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.2rem;
}

.auto-detect-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #1a1a2e;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.auto-detect-info strong {
    color: #fff;
}

.auto-detect-info #autoDetectResult {
    color: #ccc;
    margin-left: 0.25rem;
}

/* Code Editor */
.editor-container {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.code-editor {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    border: none;
    resize: vertical;
    background: #1a1a2e;
    color: #aed581;
}

.code-editor:focus {
    outline: none;
    background: #1a1a2e;
    border-color: #2196F3;
}

.step-actions {
    display: flex;
    gap: 0.5rem;
}

.validation-result {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.validation-result.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4CAF50;
}

.validation-result.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

/* Environment Variables */
.env-vars-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.env-var-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.env-var-row input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
}

.env-var-row input:focus {
    outline: none;
    border-color: #2196F3;
}

.env-key {
    font-family: monospace;
    text-transform: uppercase;
}

.preset-env-vars {
    border-top: 2px solid #e0e0e0;
    padding-top: 1rem;
}

.preset-env-vars h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2196F3;
}

.input-with-suffix {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.input-with-suffix:focus-within {
    border-color: #2196F3;
}

.input-with-suffix input {
    flex: 1;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
}

.input-with-suffix input:focus {
    outline: none;
}

.domain-suffix {
    padding: 0.75rem;
    background: #f5f5f5;
    color: #666;
    font-family: monospace;
    font-size: 0.95rem;
    border-left: 1px solid #e0e0e0;
}

/* Review Section */
.review-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
}

.review-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #fff;
}

.review-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.review-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-label {
    font-size: 0.85rem;
    color: #aaa;
    font-weight: 500;
}

.review-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

.docker-compose-preview {
    background: #263238;
    color: #aed581;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
}

.warning-card {
    background: #1a1a2e;
    border-color: #ffb74d;
}

.warning-card h4 {
    color: #ffb74d;
}

.review-notes {
    margin: 0;
    padding-left: 1.5rem;
}

.review-notes li {
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
}

.review-notes strong {
    color: #ffb74d;
}

/* Wizard Footer */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 2px solid #e0e0e0;
    background: #1a1a2e;
    border-radius: 0 0 12px 12px;
}

.wizard-footer button {
    min-width: 120px;
}

/* Toast */
#wizardToast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #333;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#wizardToast.show {
    opacity: 1;
    transform: translateY(0);
}

#wizardToast.toast-success {
    background: #4CAF50;
}

#wizardToast.toast-error {
    background: #f44336;
}

#wizardToast.toast-info {
    background: #2196F3;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-progress {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .progress-line {
        display: none;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .app-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .wizard-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .wizard-footer button {
        width: 100%;
    }
}
