﻿/* ==========================================
   Workflow Designer
==========================================*/

.workflow-header {
    background: #fff;
    border-radius: 18px;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 30px rgba(15,76,201,.08);
    border: 1px solid #e8edf7;
}

.workflow-title {
    font-size: 28px;
    font-weight: 700;
    color: #0F4CC9;
    margin-bottom: 8px;
}

.workflow-description {
    color: #6b7280;
    font-size: 15px;
}

.status-active {
    background: #e8fff0;
    color: #198754;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
}

.status-inactive {
    background: #fff3f3;
    color: #dc3545;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
}

.workflow-timeline {
    max-width: 850px;
    margin: auto;
}

.timeline-item {
    position: relative;
}

.timeline-line {
    display: flex;
    justify-content: center;
    margin: 10px 0 20px;
}

    .timeline-line::before {
        content: "";
        width: 4px;
        height: 45px;
        background: #0F4CC9;
        border-radius: 20px;
    }

.timeline-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 35px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    border: 2px solid #0F4CC9;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0F4CC9;
}

.workflow-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    border: 1px solid #eef2f7;
    transition: .30s;
    overflow: hidden;
}

    .workflow-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(15,76,201,.15);
    }

.workflow-card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #edf2f7;
}

.workflow-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
}

.workflow-title-area {
    margin-left: 18px;
    flex: 1;
}

.workflow-step-no {
    font-size: 13px;
    color: #6b7280;
}

.workflow-step-type {
    font-size: 20px;
    font-weight: 700;
    color: #0F4CC9;
}

.workflow-actions button {
    margin-left: 8px;
}

.workflow-card-body {
    padding: 25px;
}

    .workflow-card-body h5 {
        font-weight: 700;
        color: #111827;
    }

    .workflow-card-body .text-muted {
        font-size: 15px;
    }

    .workflow-card-body .small {
        background: #f8fafc;
        border-left: 4px solid #0F4CC9;
        padding: 12px;
        border-radius: 10px;
    }

#btnAddStep {
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 600;
    margin-top: 15px;
}
