/* AEC Profile Monitoring & GIS Dashboard */
.apd-page {
    padding: 15px 10px 30px;
}

.apd-page-title {
    color: #1b5e20;
    font-weight: 700;
    margin-bottom: 18px;
    border-left: 5px solid #2e7d32;
    padding-left: 12px;
}

.apd-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease;
}

.apd-card:hover {
    transform: translateY(-2px);
}

.apd-card .card-body {
    padding: 18px 20px;
}

.apd-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.apd-card-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.apd-card-label {
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.apd-bg-green { background: linear-gradient(135deg, #2e7d32, #43a047); }
.apd-bg-teal { background: linear-gradient(135deg, #00695c, #00897b); }
.apd-bg-orange { background: linear-gradient(135deg, #ef6c00, #fb8c00); }
.apd-bg-blue { background: linear-gradient(135deg, #1565c0, #1e88e5); }

.apd-filter-bar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 16px;
    margin-bottom: 18px;
}

.apd-map-wrap {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 18px;
}

#apdMap {
    height: 700px;
    width: 100%;
    background: #e8f5e9;
}

.apd-chart-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 14px;
    margin-bottom: 18px;
    min-height: 280px;
}

.apd-chart-card h6 {
    color: #1b5e20;
    font-weight: 600;
    margin-bottom: 10px;
}

.apd-badge-completed { background: #2e7d32; color: #fff; }
.apd-badge-pending-gps { background: #ef6c00; color: #fff; }
.apd-badge-pending-profile { background: #c62828; color: #fff; }

.apd-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #c8e6c9;
}

.apd-thumb:hover {
    border-color: #2e7d32;
}

.apd-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
}

.apd-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.apd-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.apd-dot-green { background: #2e7d32; }
.apd-dot-orange { background: #ef6c00; }
.apd-dot-red { background: #c62828; }

.apd-detail-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 18px;
    margin-bottom: 16px;
}

.apd-detail-section h5 {
    color: #1b5e20;
    border-bottom: 2px solid #c8e6c9;
    padding-bottom: 8px;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 600;
}

.apd-detail-map {
    height: 360px;
    border-radius: 8px;
}

.apd-detail-photo {
    max-width: 100%;
    border-radius: 8px;
    border: 3px solid #c8e6c9;
    cursor: pointer;
}

@media (max-width: 768px) {
    #apdMap {
        height: 420px;
    }
}
