.project-dashboard {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-dashboard header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.project-dashboard header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #1f1f1f;
}

.project-dashboard header p {
    margin: 0;
    color: #5f6775;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(140px, auto);
    gap: 1rem;
}

.pd-span-3 { grid-column: span 3; }
.pd-span-4 { grid-column: span 4; }
.pd-span-6 { grid-column: span 6; }
.pd-span-8 { grid-column: span 8; }
.pd-span-12 { grid-column: span 12; }

.pd-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pd-card.chart {
    padding: 1.5rem;
}

.pd-card.tight {
    gap: 0.3rem;
}

.pd-card h4 {
    margin: 0;
    font-size: 1rem;
    color: #00214D;
}

.pd-card .pd-value {
    font-size: 2rem;
    font-weight: 600;
    color: #00214D;
}

.pd-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 33, 77, 0.15);
    overflow: hidden;
}

.pd-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #F7DB17, #6CD300);
    width: 0;
    border-radius: 999px;
}


.pd-mini-chart {
    display: flex;
    gap: 0.3rem;
    align-items: flex-end;
    height: 120px;
}

.pd-mini-chart span {
    flex: 1;
    background: rgba(0, 33, 77, 0.08);
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.pd-mini-chart span span {
    width: 100%;
    background: linear-gradient(180deg, rgba(108,211,0,0.9), rgba(0,33,77,0.3));
    border-radius: 6px 6px 0 0;
}

.pd-heatmap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
}

.pd-heatmap span {
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 33, 77, 0.08);
}

.pd-geo-card {
    position: relative;
    min-height: 150px;
    background: radial-gradient(circle at 30% 40%, rgba(247,219,23,0.4), transparent 60%), #edf2fb;
    border-radius: 16px;
    overflow: hidden;
}

.pd-geo-card canvas,
.pd-geo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-geo-card .pd-pin {
    position: absolute;
    background: #FF5F00;
    border-radius: 50%;
    width: 10px;
    height: 10px;
}

.pd-geo-card .pd-pin:nth-child(1) { top: 30%; left: 40%; }
.pd-geo-card .pd-pin:nth-child(2) { top: 55%; left: 60%; }
.pd-geo-card .pd-pin:nth-child(3) { top: 45%; left: 25%; }

.pd-stage-list {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.pd-stage-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 33, 77, 0.12);
    overflow: hidden;
    margin-top: 0.25rem;
}

.pd-stage-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6CD300, #F7DB17);
}

.pd-gauge {
    width: 140px;
    height: 70px;
    border-radius: 140px 140px 0 0;
    background: conic-gradient(#6CD300 calc(var(--value) * 1%), #e5e7ef 0);
    position: relative;
    margin: 0 auto;
}

.pd-gauge::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 45px;
    background: #fff;
    border-radius: 90px 90px 0 0;
}

.pd-gauge-value {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 2rem;
    color: #00214D;
}

.pd-donut {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#F7DB17 calc(var(--value) * 1%), #e5e7ef 0);
    margin: 0 auto;
    position: relative;
}

.pd-donut::after {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: #fff;
}

.pd-donut-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    color: #00214D;
}

.pd-stage {
    flex: 1;
    text-align: center;
}

.pd-stage strong {
    display: block;
    color: #00214D;
}

.pd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.pd-table th,
.pd-table td {
    padding: 0.35rem 0.4rem;
    text-align: left;
    border-bottom: 1px solid #e5e7ef;
}

.pd-table th {
    color: #6b7280;
}

.pd-log-item {
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #edf1f5;
}

.pd-log-item:last-child {
    border-bottom: none;
}

.pd-log-item span {
    font-size: 0.85rem;
    color: #6b7280;
}

.pd-deadline-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 33, 77, 0.15);
    overflow: hidden;
}

.pd-deadline-bar span {
    display: block;
    height: 100%;
    background: #6CD300;
    width: 0;
}

@media (max-width: 768px) {
    .project-dashboard {
        padding: 1rem;
    }
}
.pd-line-chart {
    width: 100%;
    height: 220px;
}

.pd-bar-chart {
    width: 100%;
    height: 180px;
}
