/* TruPeople Dashboard & Insights — page-specific styles */

/* Overview: KPI dashboard mockup */
.tp-dash-overview-visual-frame {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.tp-dash-kpi-board {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 320px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 50px rgba(4, 30, 34, 0.35);
    padding: 1.25rem;
    backdrop-filter: blur(4px);
}

.tp-dash-kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tp-dash-kpi-head strong {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
}

.tp-dash-kpi-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #a8f0df;
    font-size: 0.7rem;
    font-weight: 600;
}

.tp-dash-kpi-live::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.tp-dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.tp-dash-kpi-tile {
    padding: 0.85rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tp-dash-kpi-tile span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.68rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.tp-dash-kpi-tile strong {
    display: block;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}

.tp-dash-kpi-tile--alert {
    background: rgba(255, 214, 140, 0.12);
    border-color: rgba(255, 214, 140, 0.28);
}

.tp-dash-kpi-tile--alert strong {
    color: #ffe4a8;
}

/* Problems: mosaic grid */
.tp-dash-problems-mosaic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.15rem;
    margin-top: 2rem;
}

.tp-dash-problem-tile {
    padding: 1.5rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(8, 62, 69, 0.1);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tp-dash-problem-tile--a {
    grid-column: span 7;
}

.tp-dash-problem-tile--b {
    grid-column: span 5;
}

.tp-dash-problem-tile--c {
    grid-column: span 5;
}

.tp-dash-problem-tile--d {
    grid-column: span 7;
}

.tp-dash-problem-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(8, 62, 69, 0.08);
    color: var(--tp-base-color);
}

.tp-dash-problem-icon .tp-outline-svg {
    width: 1.4rem;
    height: 1.4rem;
}

.tp-dash-problem-tile p {
    margin: 0;
    color: #243b40;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
}

/* Workflow: layer stack + content split */
.tp-dash-workflow-section {
    padding: 4.5rem 0;
    background: #ffffff;
}

.tp-dash-workflow-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #eef8f9 0%, #ffffff 55%, #f7fbfb 100%);
    border: 1px solid rgba(8, 62, 69, 0.1);
    box-shadow: 0 20px 50px rgba(8, 62, 69, 0.08);
}

.tp-dash-workflow-visual {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-dash-layer-stack {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 260px;
}

.tp-dash-layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(8, 62, 69, 0.12);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    font-size: 0.78rem;
    font-weight: 700;
    color: #52696e;
    text-align: center;
}

.tp-dash-layer--1 {
    bottom: 0;
    z-index: 1;
    opacity: 0.55;
    width: 76%;
}

.tp-dash-layer--2 {
    bottom: 52px;
    z-index: 2;
    opacity: 0.72;
    width: 82%;
}

.tp-dash-layer--3 {
    bottom: 104px;
    z-index: 3;
    opacity: 0.88;
    width: 86%;
}

.tp-dash-layer--top {
    bottom: 156px;
    z-index: 4;
    background: linear-gradient(135deg, #083e45, #0b5560);
    border-color: rgba(168, 240, 223, 0.35);
    color: #ffffff;
    padding: 1rem;
    box-shadow: 0 16px 40px rgba(8, 62, 69, 0.22);
}

.tp-dash-layer--top span {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(168, 240, 223, 0.85);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.tp-dash-layer--top strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
}

.tp-dash-workflow-content {
    display: grid;
    gap: 1.25rem;
}

.tp-dash-workflow-title {
    color: #083e45;
    font-size: clamp(1.55rem, 2.3vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0.75rem 0 0;
}

.tp-dash-workflow-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.tp-dash-workflow-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(8, 62, 69, 0.08);
    color: #243b40;
    font-weight: 600;
    line-height: 1.5;
    font-size: 0.98rem;
}

.tp-dash-workflow-list i {
    color: var(--tp-base-color);
    margin-top: 0.15rem;
}

.tp-dash-workflow-footnote {
    margin: 0;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(168, 240, 223, 0.22) 0%, rgba(168, 240, 223, 0.08) 100%);
    border: 1px solid rgba(8, 62, 69, 0.1);
    color: #3d5a5f;
    font-weight: 600;
    line-height: 1.55;
    font-size: 0.96rem;
}

@media (max-width: 991px) {
    .tp-dash-overview-visual-frame {
        min-height: 280px;
    }

    .tp-dash-problems-mosaic {
        grid-template-columns: 1fr;
    }

    .tp-dash-problem-tile--a,
    .tp-dash-problem-tile--b,
    .tp-dash-problem-tile--c,
    .tp-dash-problem-tile--d {
        grid-column: span 1;
    }

    .tp-dash-workflow-card {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    .tp-dash-workflow-visual {
        min-height: 240px;
        order: 2;
    }

    .tp-dash-workflow-content {
        order: 1;
    }
}

@media (max-width: 575px) {
    .tp-dash-workflow-card {
        padding: 1.5rem 1.15rem;
    }
}
