/* From Uiverse.io by PriyanshuGupta28 */
.stepper-box {
    background-color: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stepper-step {
    display: flex;
    margin-bottom: 32px;
    position: relative;
}

.stepper-step:last-child {
    margin-bottom: 0;
}

.stepper-line {
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -32px;
    width: 2px;
    background-color: #e2e8f0;
    z-index: 1;
}

.stepper-step:last-child .stepper-line {
    display: none;
}

.stepper-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    z-index: 2;
}

.stepper-completed .stepper-circle {
    background-color: var(--epf-primary);
    color: white;
}

.stepper-active .stepper-circle {
    border: 2px solid var(--epf-primary);
    color: var(--epf-primary);
}

.stepper-pending .stepper-circle {
    border: 2px solid #e2e8f0;
    color: #94a3b8;
}

.stepper-content {
    flex: 1;
}

.stepper-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.stepper-completed .stepper-title {
    color: var(--epf-slate);
}

.stepper-active .stepper-title {
    color: var(--epf-slate);
}

.stepper-pending .stepper-title {
    color: #94a3b8;
}

.stepper-status {
    font-size: 13px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
}

.stepper-completed .stepper-status {
    background-color: #dcfce7;
    color: #166534;
}

.stepper-active .stepper-status {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.stepper-pending .stepper-status {
    background-color: #f1f5f9;
    color: #64748b;
}

.stepper-time {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.stepper-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
}

.stepper-controls .epf-btn {
    width: 100%;
    justify-content: center;
}

/* --- Submission ToC (independent from stepper) --- */
.toc-box {
    background-color: white;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.toc-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.toc-item:last-child {
    border-bottom: none;
}

.toc-item-active {
    border-left: 3px solid var(--epf-primary);
    background-color: rgba(35, 196, 131, 0.06);
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 21px;
    padding-right: 24px;
}

.toc-title {
    font-weight: 600;
    color: var(--epf-slate);
    margin-bottom: 4px;
}

.toc-title a {
    color: inherit;
    text-decoration: none;
}

.toc-title a:hover {
    color: var(--epf-primary);
}

.toc-status {
    font-size: 13px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 2px;
}

.toc-item-complete .toc-status {
    background-color: #dcfce7;
    color: #166534;
}

.toc-item-open .toc-status {
    background-color: #dbeafe;
    color: #1d4ed8;
}

