/* status_bar.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Outlined');



.status-bar-container {
    margin-bottom: 3rem;
    background-color: var(--sb-white);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--sb-slate-200);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: var(--sb-slate-900);
    box-sizing: border-box;
    width: 100%;
}

.status-bar-container * {
    box-sizing: border-box;
}

.status-bar-bg-blur-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background-color: rgba(99, 102, 241, 0.05);
    border-radius: 50%;
    filter: blur(48px);
    transform: translateY(-50%) translateX(33%);
    pointer-events: none;
}

.status-bar-bg-blur-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 16rem;
    height: 16rem;
    background-color: rgba(96, 165, 250, 0.05);
    border-radius: 50%;
    filter: blur(48px);
    transform: translateY(50%) translateX(-25%);
    pointer-events: none;
}

.status-bar-content {
    position: relative;
    z-index: 10;
}

.status-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.status-bar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sb-slate-900);
    margin: 0;
    line-height: 1.2;
}

.status-bar-subtitle {
    color: var(--sb-slate-500);
    margin-top: 0.25rem;
    margin-bottom: 0;
    font-size: 1rem;
}

.status-bar-highlight {
    color: var(--sb-primary);
    font-weight: 500;
}

.status-bar-badge-container {
    display: none;
}

@media (min-width: 1000px) {
    .status-bar-badge-container {
        display: block;
    }
}

.status-bar-badge {
    background-color: var(--sb-blue-50);
    color: var(--sb-blue-700);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--sb-blue-100);
    white-space: nowrap;
}

.status-bar-stepper {
    position: relative;
    display: none;
    /* hidden on mobile, shown on desktop */
    align-items: flex-start;
    /* changed from center to flex-start to allow text to wrap nicely */
    justify-content: space-between;
    width: 100%;
    margin-bottom: 3.5rem;
    /* Increased from 2rem to prevent multi-line labels from being cut off by container overflow:hidden */
}

@media (min-width: 1000px) {
    .status-bar-stepper {
        display: flex;
    }
}

.stepper-line-bg {
    position: absolute;
    left: 0;
    top: 1.5rem;
    /* center it to the 3rem height icons */
    transform: translateY(-50%);
    width: 100%;
    height: 0.25rem;
    background-color: var(--sb-slate-100);
    z-index: -10;
    border-radius: 9999px;
}

.stepper-line-progress {
    position: absolute;
    left: 0;
    top: 1.5rem;
    transform: translateY(-50%);
    /* Set inline in HTML now */
    height: 0.25rem;
    background-color: var(--sb-green);
    z-index: -10;
    border-top-left-radius: 9999px;
    border-bottom-left-radius: 9999px;
}

.stepper-line-gradient {
    position: absolute;
    /* Set inline in HTML now */
    top: 1.5rem;
    transform: translateY(-50%);
    height: 0.25rem;
    background: linear-gradient(to right, var(--sb-green), var(--sb-slate-200));
    z-index: -10;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    /* allow spreading out */
    max-width: 8rem;
    /* Keep text from getting too wide per step */
}



.step-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 0 4px var(--sb-white);
}

.step-icon .material-icons-outlined {
    font-size: 1.5rem;
}

.step-completed {
    background-color: var(--sb-green);
    color: var(--sb-white);
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.2), 0 0 0 4px var(--sb-white);
}

.step-in-progress {
    background-color: var(--sb-primary);
    color: var(--sb-white);
    box-shadow: 0 10px 15px -3px rgba(67, 56, 202, 0.3), 0 0 0 4px var(--sb-white);
    animation: sb-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes sb-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .7;
    }
}

.step-pending {
    background-color: var(--sb-slate-100);
    color: var(--sb-slate-400);
}

.step-tooltip {
    position: absolute;
    top: -2.5rem;
    background-color: var(--sb-primary);
    color: var(--sb-white);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.step-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: var(--sb-primary) transparent transparent transparent;
}

.step-label {
    position: absolute;
    margin-top: 3.5rem;
    text-align: center;
    width: max-content;
    max-width: 9.5rem;
    /* Increased to allow slightly longer text before wrapping */
    display: none;
}

@media (min-width: 1000px) {
    .step-label {
        display: block;
    }
}

.step-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0;
    color: var(--sb-slate-900);
}

.step-title.active-text {
    color: var(--sb-primary);
}

.step-title.pending-text {
    color: var(--sb-slate-600);
    /* Darken from slate-500 for better visibility */
    font-weight: 600;
    /* Made slightly bolder */
}

.step-desc {
    font-size: 0.75rem;
    margin: 0;
    color: var(--sb-slate-500);
}

.step-desc.active-text {
    color: rgba(67, 56, 202, 0.9);
    font-weight: 600;
}

.step-desc.pending-text {
    color: var(--sb-slate-500);
    /* Darken from slate-400 for better visibility */
}

.status-bar-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 1000px) {
    .status-bar-mobile {
        display: none;
    }
}

.mobile-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.mobile-completed {
    background-color: var(--sb-green-light);
    border: 1px solid var(--sb-green-border);
}

.mobile-in-progress {
    background-color: var(--sb-primary-light);
    border: 1px solid var(--sb-primary-border);
}

.mobile-pending {
    /* Removed opacity: 0.6 which made text too faint */
    background-color: var(--sb-slate-50);
}

.mobile-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.mobile-icon-completed {
    background-color: var(--sb-green);
    color: var(--sb-white);
}

.mobile-icon-completed .material-icons-outlined {
    font-size: 0.875rem;
}

.mobile-icon-in-progress {
    background-color: var(--sb-primary);
    color: var(--sb-white);
}

.mobile-icon-pending {
    background-color: var(--sb-slate-200);
    color: var(--sb-slate-600);
}

.mobile-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--sb-slate-900);
    margin: 0;
}

.mobile-title.active-text {
    color: var(--sb-primary);
}

.mobile-title.pending-text {
    color: var(--sb-slate-600);
    font-weight: 600;
}

.mobile-desc {
    font-size: 0.75rem;
    color: var(--sb-slate-500);
    margin: 0;
}

.mobile-desc.active-text {
    color: rgba(67, 56, 202, 0.9);
}