/* =========================================
   TIMELINE STYLE
========================================= */


.ai-page {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: #1c2b3a;
    background: #f5f7fa;
    padding: 2px 28px;
    min-height: 100%;
    box-sizing: border-box;
}

    /* ── Page header ── */
    .ai-page .ai-page-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .ai-page .ai-page-header-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .ai-page .ai-page-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: #e0f7fa;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-shrink: 0;
    }

    .ai-page .ai-page-title {
        font-size: 17px !important;
        font-weight: 600 !important;
        color: #1c2b3a !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        text-transform: none !important;
        letter-spacing: normal !important;
    }

    .ai-page .ai-page-subtitle {
        font-size: 11px;
        color: #7a8fa6;
        margin: 2px 0 0;
        padding: 0;
    }

    /* ── Summary strip ── */
    .ai-page .ai-summary-strip {
        display: flex;
        gap: 12px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .ai-page .ai-stat-card {
        background: #ffffff;
        border: 1px solid #e4eaf1;
        border-radius: 10px;
        padding: 12px 18px;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
        min-width: 130px;
    }

    .ai-page .ai-stat-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        flex-shrink: 0;
    }

        .ai-page .ai-stat-icon.blue {
            background: #e3f0fd;
        }

        .ai-page .ai-stat-icon.amber {
            background: #fff8e1;
        }

        .ai-page .ai-stat-icon.green {
            background: #e8f5e9;
        }

    .ai-page .ai-stat-val {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #1c2b3a !important;
        line-height: 1;
        display: block;
    }

    .ai-page .ai-stat-label {
        font-size: 10px;
        font-weight: 500;
        color: #7a8fa6;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-top: 2px;
        display: block;
    }

    /* ── Controls row ── */
    .ai-page .ai-controls-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .ai-page .ai-search-wrap {
        position: relative;
        flex: 1;
        max-width: 300px;
    }

        .ai-page .ai-search-wrap input {
            width: 100%;
            background: #ffffff;
            border: 1px solid #e4eaf1 !important;
            border-radius: 7px !important;
            padding: 6px 10px 6px 32px !important;
            font-size: 12px !important;
            color: #1c2b3a !important;
            outline: none !important;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07) !important;
            transition: border-color 0.15s;
            font-family: inherit;
            height: auto !important;
        }

            .ai-page .ai-search-wrap input:focus {
                border-color: #00bcd4 !important;
                box-shadow: 0 1px 4px rgba(0, 188, 212, 0.2) !important;
            }

            .ai-page .ai-search-wrap input::placeholder {
                color: #7a8fa6;
            }


.ai-page .ai-search-icon {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    pointer-events: none;
    line-height: 1;
}

.ai-page .ai-status-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-page .ai-status-label {
    font-size: 11px;
    font-weight: 600;
    color: #7a8fa6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.ai-page .ai-timeline {
    background: #ffffff;
    border: 1px solid #e4eaf1;
    border-radius: 12px;
    padding: 20px;
}

/* Assessment Header */

.ai-page .ai-assessment-block {
    margin-bottom: 25px;
}

.ai-page .ai-assessment-header {
    display: flex;
    gap: 14px;
    margin-bottom: 15px;
}

.ai-page .ai-assessment-dot {
    width: 14px;
    height: 14px;
    background: #00bcd4;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.ai-page .ai-assessment-title {
    font-size: 15px;
    font-weight: 600;
    color: #1c2b3a;
}

.ai-page .ai-badge {
    background: #e0f7fa;
    color: #007c91;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.ai-page .ai-assessment-progress {
    font-size: 11px;
    color: #7a8fa6;
    margin-top: 4px;
}

.ai-page .ai-progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 6px;
    width: 200px;
}

.ai-page .ai-progress-fill {
    height: 100%;
    background: #00bcd4;
    border-radius: 4px;
}

/* Timeline Rows */

.ai-page .ai-timeline-row {
    display: grid;
    grid-template-columns: 90px 30px 1fr;
    align-items: flex-start;
    margin-bottom: 12px;
    position: relative;
}

.ai-page .ai-date-col {
    font-size: 11px;
    color: #00bcd4;
    font-weight: 600;
}

.ai-page .ai-line-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.ai-page .ai-line {
    position: absolute;
    width: 2px;
    background: #e4eaf1;
    top: 0;
    bottom: -12px;
}

.ai-page .ai-line-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e0;
    z-index: 1;
    margin-top: 3px;
}

    .ai-page .ai-line-dot.completed {
        background: #2e7d32;
    }

.ai-page .ai-content-col {
    font-size: 13px;
    color: #1c2b3a;
    line-height: 1.4;
}

.ai-page .ai-timeline-row.done .ai-content-col {
    color: #7a8fa6;
}
