/* Build Dialog Styles */
.build-dialog {
    width: 750px;
    max-width: 90vw;
    height: 80vh;
    max-height: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.build-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.build-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.build-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.build-form-container {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.form-section {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.form-row label {
    font-weight: 500;
    color: #495057;
    margin: 0;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}



/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    grid-column: 1 / -1;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.1);
}

/* Buttons */
.build-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    flex-shrink: 0;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-spinner {
    display: none;
}

/* Progress Styles */
.build-progress {
    padding: 2rem;
    text-align: center;
}

.progress-header h3 {
    margin: 0 0 0.5rem 0;
    color: #495057;
}

.progress-header p {
    margin: 0 0 2rem 0;
    color: #6c757d;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.step.active {
    background-color: #e3f2fd;
    color: #1976d2;
}

.step i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Success/Error States */
.build-success, .build-error {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.error-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.success-details {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    text-align: left;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .build-dialog {
        margin: 1rem;
        max-width: none;
    }
    
    .theme-selector {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .build-actions {
        flex-direction: column;
    }
}
