/* CWI Platform Style Enhancements */

/* Step Navigation Tabs */
.step-tabs {
    display: flex;
    width: 100%;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    gap: 0;
}

.step-tab {
    flex: 1;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #C5C9CC;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    border-right: 1px solid #AEB3B7;
    transition: all 0.2s ease;
    position: relative;
}


.step-tab:last-child {
    border-right: none;
}

    .step-tab.active {
        background: #152433;
        color: #FFFFFF;
        border-bottom: 4px solid #B8B1F1;
        border-top: 4px solid #152433;
    }


.step-tab.active::after {
    display: none;
}

    .step-tab.completed {
        background: #00000033;
        color: #FFFFFF;
    }

.step-tab svg {
    display: none;
}

.step-tab:disabled:hover {
    cursor: default;
}

/* Action Buttons Grid */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

    .action-btn:disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
    }

/* Workflow Card */
.workflow-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.workflow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.run-id {
    font-size: 0.875rem;
    color: #6b7280;
    font-family: monospace;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 9999px;
}

/* Agent Flow Visualization */
.agent-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
}

.flow-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.flow-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #10b981 0%, #10b981 50%, #d1d5db 50%, #d1d5db 100%);
    background-size: 100% 8px;
}

.flow-steps {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.flow-step {
    flex: 1;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    position: relative;
}

.flow-step.done {
    border-color: #10b981;
    background: #f0fdf4;
}

.flow-step-icon {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.flow-step.done .flow-step-icon {
    background: #d1fae5;
    color: #10b981;
}

.flow-step-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.flow-step-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
}

.flow-step-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

/* Scope Selection */
.scope-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-zone:hover {
    border-color: #E3A535;
    background: #fffbf0;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    opacity: 0.4;
}

/* Page Type Selector */
.page-type-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.page-type-card:hover {
    border-color: #E3A535;
    box-shadow: 0 1px 3px rgba(227, 165, 53, 0.1);
}

.page-type-card.selected {
    border-color: #E3A535;
    background: #fffbf0;
}

.page-type-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-type-info {
    flex: 1;
}

.page-type-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.page-type-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Radio/Checkbox Options */
.option-group {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}
  
.radio-option input[type="radio"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-content {
    flex: 1;
}

.option-label {
    font-weight: 500;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.25rem;
}

.option-note {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Section Headings */
.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.section-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

/* Footer Actions */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem !important;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    background: #92753d;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
}

.btn-submit:hover {
    background: #745929;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.page-title-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.page-step {
    font-size: 0.875rem;
    color: #6b7280;
}
