/* ==========================================
   PD CHARTS - Scoped styles for chart showcase
   ========================================== */

.pd-charts-section .pd-charts-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    text-align: center;
    margin-bottom: 2rem;
}

.pd-charts-section .showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .pd-charts-section .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .pd-charts-section .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

.pd-charts-section .chart-section {
    min-width: 0;
}

.pd-charts-section .chart-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #2dd4bf;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    padding-left: 2px;
}

.pd-charts-section .chart-section-label::before {
    content: '';
    width: 12px;
    height: 1px;
    background: #14b8a6;
}

/* ==========================================
   CHART CARD - Exact original styles
   ========================================== */
.pd-charts-section .chart-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 0 40px rgba(20, 184, 166, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.pd-charts-section .chart-card:hover {
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 0 60px rgba(20, 184, 166, 0.25);
}

.pd-charts-section .chart-card .chart-header,
.pd-charts-section .chart-card .chart-body {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-charts-section .chart-card.transitioning .chart-header,
.pd-charts-section .chart-card.transitioning .chart-body {
    opacity: 0;
    transform: translateY(8px);
}

.pd-charts-section .chart-card.entering .chart-header,
.pd-charts-section .chart-card.entering .chart-body {
    opacity: 0;
    transform: translateY(-8px);
}

.pd-charts-section .chart-header {
    padding: 24px 24px 0;
}

.pd-charts-section .chart-title {
    font-size: 1.15rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.pd-charts-section .chart-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.pd-charts-section .chart-body {
    padding: 20px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pd-charts-section .chart-body>canvas {
    position: relative;
    inset: auto;
    z-index: 1;
    pointer-events: auto;
    max-width: 100%;
    max-height: 200px;
    filter: drop-shadow(0 0 20px rgba(20, 184, 166, 0.15));
}

.pd-charts-section .chart-body>div {
    width: 100%;
}

/* Chart Navigation */
.pd-charts-section .chart-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.pd-charts-section .nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pd-charts-section .nav-btn:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: #14b8a6;
    color: #2dd4bf;
}

.pd-charts-section .nav-btn:active {
    transform: scale(0.95);
}

.pd-charts-section .nav-btn svg {
    width: 20px;
    height: 20px;
}

.pd-charts-section .nav-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pd-charts-section .nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pd-charts-section .nav-dot.active {
    width: 24px;
    background: linear-gradient(90deg, #14b8a6, #2dd4bf);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.5);
}

/* ==========================================
   GAUGE CHART
   ========================================== */
.pd-charts-section .gauge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pd-charts-section .gauge {
    position: relative;
    width: 160px;
    height: 160px;
}

.pd-charts-section .gauge svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pd-charts-section .gauge-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 12;
}

.pd-charts-section .gauge-fill {
    fill: none;
    stroke: url(#gaugeGrad);
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-charts-section .gauge-glow {
    fill: none;
    stroke: #2dd4bf;
    stroke-width: 12;
    stroke-linecap: round;
    filter: blur(8px);
    opacity: 0.4;
}

.pd-charts-section .gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.pd-charts-section .gauge-value {
    font-size: 2.5rem;
    font-weight: 200;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pd-charts-section .gauge-unit {
    font-size: 1rem;
    color: #2dd4bf;
    font-weight: 300;
}

.pd-charts-section .gauge-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.pd-charts-section .gauge-meta {
    display: flex;
    gap: 28px;
    margin-top: 16px;
}

.pd-charts-section .gauge-stat {
    text-align: center;
}

.pd-charts-section .gauge-stat-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
}

.pd-charts-section .gauge-stat-label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

/* ==========================================
   CONSENSUS METER
   ========================================== */
.pd-charts-section .consensus-container {
    width: 100%;
    padding: 8px;
}

.pd-charts-section .consensus-item {
    margin-bottom: 16px;
}

.pd-charts-section .consensus-item:last-child {
    margin-bottom: 0;
}

.pd-charts-section .consensus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pd-charts-section .consensus-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.pd-charts-section .consensus-value {
    font-size: 0.75rem;
    color: #2dd4bf;
    font-weight: 600;
}

.pd-charts-section .consensus-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.pd-charts-section .consensus-bar {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-charts-section .consensus-bar.teal {
    background: linear-gradient(90deg, #0d9488, #2dd4bf);
}

.pd-charts-section .consensus-bar.amber {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.pd-charts-section .consensus-bar.blue {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

/* ==========================================
   APP INTERFACE MOCKUPS
   ========================================== */
.pd-charts-section .app-mockup {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.pd-charts-section .app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pd-charts-section .app-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
}

.pd-charts-section .app-badge {
    font-size: 0.55rem;
    color: #2dd4bf;
    background: rgba(20, 184, 166, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.pd-charts-section .app-body {
    padding: 16px;
}

/* Role Play Interface */
.pd-charts-section .role-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.pd-charts-section .role-card:last-child {
    margin-bottom: 0;
}

.pd-charts-section .role-label {
    font-size: 0.55rem;
    color: #2dd4bf;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.pd-charts-section .role-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}

.pd-charts-section .role-desc {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

/* Voting Interface */
.pd-charts-section .vote-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pd-charts-section .vote-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pd-charts-section .vote-btn:hover {
    background: rgba(20, 184, 166, 0.08);
    border-color: rgba(20, 184, 166, 0.3);
}

.pd-charts-section .vote-btn.selected {
    background: rgba(20, 184, 166, 0.12);
    border-color: #14b8a6;
}

.pd-charts-section .vote-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.pd-charts-section .vote-icon.approve {
    background: rgba(20, 184, 166, 0.2);
    color: #2dd4bf;
}

.pd-charts-section .vote-icon.revise {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.pd-charts-section .vote-icon.reject {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.pd-charts-section .vote-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Framework Builder Interface */
.pd-charts-section .criteria-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-charts-section .criteria-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.pd-charts-section .criteria-check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(20, 184, 166, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2dd4bf;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.pd-charts-section .criteria-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
}

.pd-charts-section .criteria-votes {
    font-size: 0.6rem;
    color: #2dd4bf;
    font-weight: 600;
}

/* Scenario Interface */
.pd-charts-section .scenario-box {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(20, 184, 166, 0.02));
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.pd-charts-section .scenario-label {
    font-size: 0.55rem;
    color: #2dd4bf;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.pd-charts-section .scenario-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-style: italic;
}

.pd-charts-section .response-area {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
}

.pd-charts-section .response-label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
}

.pd-charts-section .response-input {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.pd-charts-section .response-input::after {
    content: '|';
    animation: pd-blink 1s infinite;
    color: #2dd4bf;
}

@keyframes pd-blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Footer */
.pd-charts-section .pd-charts-footer {
    text-align: center;
    padding: 24px 0 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
}

.pd-charts-section .swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #14b8a6;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 380px) {
    .pd-charts-section .chart-header {
        padding: 20px 20px 0;
    }

    .pd-charts-section .chart-body {
        padding: 16px;
        min-height: 260px;
    }

    .pd-charts-section .gauge {
        width: 140px;
        height: 140px;
    }

    .pd-charts-section .gauge-value {
        font-size: 2rem;
    }

    .pd-charts-section .gauge-meta {
        gap: 20px;
    }
}

/* ==========================================
   ANALYTICS SHOWCASE (New)
   ========================================== */

/* Heatmap */
.pd-charts-section .heatmap {
    width: 100%;
}

.pd-charts-section .heatmap-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.pd-charts-section .heatmap-label {
    width: 65px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    padding-right: 10px;
    flex-shrink: 0;
}

.pd-charts-section .heatmap-cells {
    display: flex;
    gap: 6px;
    flex: 1;
}

.pd-charts-section .heatmap-cell {
    flex: 1;
    aspect-ratio: 1.3;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.pd-charts-section .heatmap-cell .day {
    font-size: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 2px;
}

.pd-charts-section .heatmap-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pd-charts-section .heat-1 {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
}

.pd-charts-section .heat-2 {
    background: rgba(20, 184, 166, 0.35);
    color: #5eead4;
}

.pd-charts-section .heat-3 {
    background: rgba(45, 212, 191, 0.55);
    color: #ffffff;
}

.pd-charts-section .heat-4 {
    background: rgba(251, 191, 36, 0.75);
    color: #ffffff;
}

.pd-charts-section .heat-5 {
    background: rgba(249, 115, 22, 0.9);
    color: #ffffff;
}

.pd-charts-section .heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
}

.pd-charts-section .legend-gradient {
    width: 80px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.15), rgba(45, 212, 191, 0.55), rgba(251, 191, 36, 0.75), rgba(249, 115, 22, 0.9));
}

/* Funnel */
.pd-charts-section .funnel {
    width: 100%;
    padding: 4px;
}

.pd-charts-section .funnel-stage {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.pd-charts-section .funnel-stage:last-child {
    margin-bottom: 0;
}

.pd-charts-section .funnel-info {
    width: 75px;
    flex-shrink: 0;
}

.pd-charts-section .funnel-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.pd-charts-section .funnel-count {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
}

.pd-charts-section .funnel-bar-track {
    flex: 1;
    height: 28px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    overflow: hidden;
}

.pd-charts-section .funnel-bar {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-charts-section .funnel-percent {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Bubble Chart Container */
.pd-charts-section .bubble-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.pd-charts-section .bubble-canvas-wrap {
    position: relative;
    width: 100%;
    height: 180px;
}

.pd-charts-section .bubble-canvas-wrap canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.pd-charts-section .bubble-legend {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

.pd-charts-section .bubble-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.pd-charts-section .bubble-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* KPI Grid */
.pd-charts-section .kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.pd-charts-section .kpi-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.pd-charts-section .kpi-card:hover {
    background: rgba(20, 184, 166, 0.05);
    border-color: rgba(20, 184, 166, 0.2);
}

.pd-charts-section .kpi-value {
    font-size: 1.6rem;
    font-weight: 300;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
}

.pd-charts-section .kpi-value .unit {
    font-size: 0.9rem;
    color: #2dd4bf;
}

.pd-charts-section .kpi-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pd-charts-section .kpi-trend {
    font-size: 0.6rem;
    color: #2dd4bf;
    margin-top: 4px;
}

.pd-charts-section .kpi-trend.down {
    color: #f59e0b;
}

/* Polar Area Container */
.pd-charts-section .polar-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pd-charts-section .polar-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 200px;
    height: 180px;
}

.pd-charts-section .polar-canvas-wrap canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.pd-charts-section .polar-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-top: 14px;
}

.pd-charts-section .polar-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
}

.pd-charts-section .polar-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Data Transformation Mockups */
.pd-charts-section .transform-container {
    width: 100%;
}

.pd-charts-section .transform-stage {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pd-charts-section .transform-stage:last-child {
    margin-bottom: 0;
}

.pd-charts-section .stage-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.pd-charts-section .stage-icon.messy {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.pd-charts-section .stage-icon.processing {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.pd-charts-section .stage-icon.clean {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
}

.pd-charts-section .stage-content {
    flex: 1;
    min-width: 0;
}

.pd-charts-section .stage-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2px;
}

.pd-charts-section .stage-desc {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
}

.pd-charts-section .stage-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pd-charts-section .stage-indicator.complete {
    background: #2dd4bf;
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.5);
}

.pd-charts-section .stage-indicator.active {
    background: #fbbf24;
    animation: pulse 1.5s infinite;
}

.pd-charts-section .stage-indicator.pending {
    background: rgba(255, 255, 255, 0.15);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Messy Spreadsheet Mockup */
.pd-charts-section .spreadsheet-mock {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.pd-charts-section .spreadsheet-header {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pd-charts-section .spreadsheet-cell {
    padding: 8px 10px;
    font-size: 0.55rem;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-charts-section .spreadsheet-cell:last-child {
    border-right: none;
}

.pd-charts-section .spreadsheet-cell.header {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
}

.pd-charts-section .spreadsheet-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pd-charts-section .spreadsheet-row:last-child {
    border-bottom: none;
}

.pd-charts-section .cell-error {
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
}

.pd-charts-section .cell-warning {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}

.pd-charts-section .cell-good {
    color: #2dd4bf;
}

/* Clean Dashboard Mockup */
.pd-charts-section .dashboard-mock {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(20, 184, 166, 0.2);
    overflow: hidden;
}

.pd-charts-section .dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(20, 184, 166, 0.05);
    border-bottom: 1px solid rgba(20, 184, 166, 0.15);
}

.pd-charts-section .dashboard-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: #ffffff;
}

.pd-charts-section .dashboard-badge {
    font-size: 0.5rem;
    color: #2dd4bf;
    background: rgba(20, 184, 166, 0.15);
    padding: 3px 6px;
    border-radius: 4px;
}

.pd-charts-section .dashboard-body {
    padding: 12px;
}

.pd-charts-section .mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.pd-charts-section .mini-stat {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 10px 8px;
    text-align: center;
}

.pd-charts-section .mini-stat-value {
    font-size: 1rem;
    font-weight: 300;
    color: #ffffff;
}

.pd-charts-section .mini-stat-label {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.pd-charts-section .mini-chart {
    height: 50px;
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.15) 0%, transparent 100%);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.pd-charts-section .mini-chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #2dd4bf;
    clip-path: polygon(0 100%, 5% 80%, 15% 85%, 25% 60%, 35% 65%, 45% 40%, 55% 45%, 65% 30%, 75% 35%, 85% 20%, 95% 25%, 100% 10%, 100% 100%);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

.pd-charts-section .mini-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pd-charts-section .mini-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-charts-section .mini-bar-label {
    width: 50px;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
}

.pd-charts-section .mini-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.pd-charts-section .mini-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d9488, #2dd4bf);
    border-radius: 4px;
    transition: width 1s ease;
}

.pd-charts-section .mini-bar-value {
    width: 32px;
    font-size: 0.55rem;
    color: #2dd4bf;
    font-weight: 600;
}

/* AI Processing Animation */
.pd-charts-section .ai-process {
    width: 100%;
    padding: 8px;
}

.pd-charts-section .process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pd-charts-section .process-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pd-charts-section .node-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-charts-section .node-icon svg {
    width: 16px;
    height: 16px;
}

.pd-charts-section .node-icon.source {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.pd-charts-section .node-icon.ai {
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: #2dd4bf;
    animation: aiGlow 2s infinite;
}

.pd-charts-section .node-icon.output {
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}

@keyframes aiGlow {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(20, 184, 166, 0);
    }

    50% {
        box-shadow: 0 0 15px rgba(20, 184, 166, 0.4);
    }
}

.pd-charts-section .node-label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
}

.pd-charts-section .process-arrow {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(20, 184, 166, 0.3), rgba(255, 255, 255, 0.1));
    margin: 0 8px;
    position: relative;
}

.pd-charts-section .process-arrow::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #2dd4bf;
    border-radius: 50%;
    top: -2px;
    animation: flowDot 2s infinite linear;
}

@keyframes flowDot {
    0% {
        left: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: calc(100% - 6px);
        opacity: 0;
    }
}

.pd-charts-section .process-tasks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pd-charts-section .task-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
}

.pd-charts-section .task-check {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    flex-shrink: 0;
}

.pd-charts-section .task-check.done {
    background: rgba(20, 184, 166, 0.2);
    color: #2dd4bf;
}

.pd-charts-section .task-check.working {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    animation: spin 1s linear infinite;
}

.pd-charts-section .task-check.pending {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments for new components */
@media (max-width: 380px) {
    .pd-charts-section .heatmap-label {
        width: 55px;
        font-size: 0.6rem;
    }

    .pd-charts-section .heatmap-cell .day {
        display: none;
    }

    .pd-charts-section .funnel-info {
        width: 65px;
    }

    .pd-charts-section .funnel-bar-track {
        height: 24px;
    }

    .pd-charts-section .kpi-value {
        font-size: 1.4rem;
    }
}