/* =========================================
   Step 4 Mockup - Modern Glassmorphism Design
   ========================================= */

/* Visual Column Layout - No Background Card */
.step4-visual-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 600px;
    position: relative;
    transform: scale(0.85);
    transform-origin: top center;

    /* Remove the dark background card effect */
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    aspect-ratio: auto !important;
}

/* Main ApoB Card - Enhanced Glassmorphism */
.step4-visual-col .apob-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 6px 24px 0 rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
}

/* Left Content Section */
.apob-content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apob-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.apob-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    margin-bottom: 6px;
}

.apob-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-label {
    padding: 3px 10px;
    background: rgba(55, 195, 132, 0.2);
    border: 1px solid rgba(55, 195, 132, 0.4);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #37C384;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-value {
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
}

.apob-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 8px;
}

/* Right Chart Area */
.apob-chart-area {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Range Labels */
.range-labels {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: space-between;
    height: 100%;
    min-height: 100px;
}

.r-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    writing-mode: horizontal-tb;
}

.r-label.in-range {
    color: rgba(55, 195, 132, 0.9);
}

/* Range Indicators */
.range-indicators {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    min-height: 100px;
    justify-content: space-between;
}

.r-bar {
    width: 20px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.r-bar.active {
    background: rgba(55, 195, 132, 0.3);
    border: 1px solid rgba(55, 195, 132, 0.6);
    box-shadow: 0 0 12px rgba(55, 195, 132, 0.3);
}

/* Chart Graph Container */
.chart-graph-container {
    flex: 1;
    position: relative;
    height: 100px;
}

.graph-svg {
    width: 100%;
    height: 100%;
}

/* Connector Lines */
.connector-vertical-1 {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    margin: 0 auto;
}

.connector-split {
    width: 100%;
    height: 20px;
    position: relative;
}

/* Action Cards - Enhanced Glassmorphism */
.step4-visual-col .action-card {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 3px 12px 0 rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px;
}

.omega-card {
    margin: 0 auto;
    max-width: 400px;
}

/* Action Icon Box */
.action-icon-box {
    width: 36px;
    height: 36px;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Action Text */
.action-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.a-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    display: block;
}

.a-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    display: block;
}

/* Bottom Card Row */
.bottom-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 24px;
    /* Remove extra spacing for precise connector alignment */
}

.small-card {
    padding: 16px 20px;
}

.small-card .action-icon-box {
    width: 36px;
    height: 36px;
}

.small-card .a-title {
    font-size: 0.95rem;
}

.small-card .a-sub {
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .step4-visual-col .apob-card {
        flex-direction: column !important;
        gap: 24px;
        padding: 24px;
    }

    .apob-chart-area {
        flex-direction: column;
        align-items: flex-start;
    }

    .range-labels {
        flex-direction: row;
        min-height: auto;
        width: 100%;
    }

    .range-indicators {
        flex-direction: row;
        min-height: auto;
        width: 100%;
    }

    .r-bar {
        width: 60px;
        height: 24px;
    }

    .chart-graph-container {
        width: 100%;
        height: 100px;
    }

    .bottom-card-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}