﻿/* === Container === */
.stepper {
    display: flex;
}

    .stepper.vertical {
        flex-direction: column;
        gap: 2rem;
    }

.stepper-container {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
   
}

    .stepper-container.vertical {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

.stepper-header {
    margin-top: 2rem;
    margin-bottom: 2rem;
}


.stepper-content {
    min-height: 200px;
}

.stepper-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}


/* === Base Shared Styles === */
.step-tab,
.dot-step,
.numbered-step,
.icon-step,
.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-width: 120px;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
    cursor: pointer;
}

/*.step-tab:hover,
    .dot-step:hover,
    .numbered-step:hover,
    .icon-step:hover,
    .status-step:hover {
        transform: scale(1.03);
    }*/

/* === Layout 01: Tab Step Arrows === */
.step-tab {
    position: relative;
    padding: 0;
    min-width: 160px;
    background-color: transparent;
}

/* Wrap the inner shape to allow filter rendering */
.step-tab-inner-wrapper {
    padding: 2px; /* gives breathing space for shadow */
    filter: none;
}

.step-tab.selected .step-tab-inner-wrapper {
    filter: drop-shadow(0 0 0 #AEA5FA) drop-shadow(0 0 0.5px #AEA5FA);
}

.step-tab-inner {
    background-color: white;
    color: black;
    padding: 1rem 1.75rem;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid lightgray;
}

/* Completed style */
.step-tab.completed .step-tab-inner {
    background-color: #4A516D;
    color: white;
    border: none;
}

/* Last step: remove arrow */
.step-tab:last-child .step-tab-inner {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Text */
.step-tab-inner div:first-child {
    font-size: 0.95rem;
    font-weight: 600;
}

.step-tab-inner div:last-child {
    font-size: 0.75rem;
    opacity: 0.75;
    margin-top: 2px;
}

/* === Layout 02: Dot Progress Steps === */
.dot-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    min-width: 160px;
    flex-shrink: 0;
    padding-top: 1rem;
}

    /* Progress line across the top */
    .dot-step::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 0;
        right: 0;
        height: 4px;
        background-color: var(--color-secondary-light);
        z-index: 0;
    }

    .dot-step.current::before {
        background-color: var(--color-primary);
    }

    .dot-step.completed::before {
        background-color: var(--color-secondary-normal);
    }

/* Circle icon */
.dot-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background-color: white;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* State styles */
.dot-step.completed .dot-step-circle {
    background-color: var(--color-secondary-normal);
    color: var(--color-text-white);
    border-color: var(--color-secondary-normal);
}

.dot-step.current .dot-step-circle {
    border-color: var(--color-primary);
    color: var(--color-text-primary);
}

/* Horizontal stack: icon + title */
.dot-step-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    z-index: 1;
}

    .dot-step-title p {
        font-size: 0.875rem;
        font-weight: 500;
        margin: 0;
        color: #374151;
    }

.dot-step.completed .dot-step-title p {
    color: var(--color-secondary-normal);
}

.dot-step.current .dot-step-title p {
    color: var(--color-primary);
}

/* Description under icon/title */
.dot-step-desc {
    font-size: 0.75rem;
    color: #6b7280;
    max-width: 160px;
    margin-top: 0.25rem;
    z-index: 1;
}



/* === Layout 03: Numbered Steps === */
.numbered-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 160px;
    flex-shrink: 0;
    padding-top: 1.5rem;
}

    .numbered-step::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 0;
        right: 0;
        height: 2px;
        background-color: #e5e7eb;
        z-index: 0;
    }

    .numbered-step:first-child::before {
        left: 50%;
    }

    .numbered-step:last-child::before {
        right: 50%;
    }

/* Numbered circle */
.numbered-step-circle {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background-color: white;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
}

.numbered-step.completed .numbered-step-circle {
    background-color: #4A516D;
    color: white;
    border-color: #4A516D;
}

.numbered-step.current .numbered-step-circle {
    background-color: white;
    color: #6D5DD3;
    border-color: #6D5DD3;
}

/* Title */
.numbered-step-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #374151;
}

.numbered-step.completed .numbered-step-title {
    color: #4A516D;
}

.numbered-step.current .numbered-step-title {
    color: #6D5DD3;
}

/* Support text */
.numbered-step-description {
    font-size: 0.75rem;
    color: #6b7280;
}

/* === Layout 04: Icon Steps === */
.icon-step > div:first-child i {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

.icon-step.completed > div:first-child i {
    color: #10b981;
}

.icon-step.current > div:first-child i {
    color: #3b82f6;
}

.icon-step > div:last-child {
    font-size: 0.85rem;
    color: #4b5563;
}

/* === Layout 05: Status Blocks === */
.status-step {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    min-width: 140px;
}

    .status-step div:nth-child(1) {
        font-weight: 600;
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
        color: #6b7280;
    }

    .status-step div:nth-child(2) {
        font-size: 1rem;
        font-weight: 500;
        color: #374151;
    }

    .status-step div:nth-child(3) {
        font-size: 0.85rem;
        font-weight: 500;
        margin-top: 0.25rem;
    }

    .status-step.completed div:nth-child(3) {
        color: #10b981;
    }

    .status-step.in\\ progress div:nth-child(3) {
        color: #f59e0b;
    }

/* Mobile view: show only current step */
@media (max-width: 768px) {
    .stepper-container {
        display: flex;
        overflow-x: hidden;
        justify-content: center;
        display: none;
    }

        .stepper-container > * {
            display: none;
        }

        .stepper-container > .current {
            display: flex;
        }
    .step-tab, .dot-step, .numbered-step, .icon-step, .status-step {
        min-width: auto;
    }
        .dot-step::before, .numbered-step::before {
            display: none;
        }

}