/* Workflow Modern Styles - White Theme */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --success-color: #10b981;
    --error-color: #ef4444;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-light: #e2e8f0;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

.workflow-container {
    min-height: 100vh;
    background: #f1f5f9;
    padding: 24px;
}

.workflow-header {
    background: white;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.workflow-header h1 {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid var(--primary-color);
}

.back-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-4px);
}

/* Workflow Steps Navigation */
.workflow-steps {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.step-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-light);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.step-item:hover::before {
    transform: scaleX(1);
}

.step-item.active {
    background: white;
    color: var(--text-primary);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.step-item.active::before {
    transform: scaleX(1);
    height: 4px;
    background: var(--primary-color);
}

.step-item.completed {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    color: var(--primary-color);
}

.step-item.active .step-number {
    color: var(--primary-color);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

/* Workflow Content */
.workflow-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    min-height: 500px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.summary-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.summary-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.summary-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.summary-card li:last-child {
    border-bottom: none;
}

.workflow-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.workflow-table thead {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-light);
}

.workflow-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.workflow-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.workflow-table tbody tr:hover {
    background: var(--primary-light);
}

.workflow-table tbody tr:last-child td {
    border-bottom: none;
}

/* Technical Data Modal */
.technical-data-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.technical-data-modal.active {
    display: flex;
}

.technical-modal-content {
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

@keyframes slideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.technical-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    border-bottom: 1px solid var(--border-light);
    background: white;
    color: var(--text-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.technical-modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.technical-modal-body {
    padding: 32px;
    background: white;
}

.technical-step {
    display: none;
}

.technical-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.technical-step h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.technical-info-box {
    background: var(--primary-light);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.technical-form-group {
    margin-bottom: 24px;
}

.technical-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.technical-form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.technical-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.technical-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.technical-modal-nav {
    display: flex;
    gap: 12px;
}

.technical-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.technical-btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.technical-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-hover);
}

.technical-btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.technical-btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .workflow-container {
        padding: 12px;
    }
    
    .workflow-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px;
    }
    
    .workflow-header h1 {
        font-size: 1.75rem;
    }
    
    .workflow-steps {
        flex-direction: column;
        padding: 24px;
    }
    
    .step-item {
        width: 100%;
    }
    
    .workflow-content {
        padding: 24px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .technical-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .technical-modal-body {
        padding: 24px;
    }
    
    .technical-modal-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .technical-modal-nav {
        width: 100%;
        flex-direction: column;
    }
    
    .technical-btn {
        width: 100%;
        justify-content: center;
    }
}
