/* Grid layout: 4 blokken per rij op grote schermen */
.pd-dashboard {
    display: grid;
    grid-gap: 20px;
    margin-top: 20px;
}

@media (min-width: 1200px) {
    .pd-dashboard {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .pd-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .pd-dashboard {
        grid-template-columns: 1fr;
    }
}

/* Projectblok styling */
.pd-project-block {
    position: relative;
    border-radius: 16px;
    padding: 16px 18px;
    color: #ffffff;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

/* Statuskleuren */
.pd-status-ok {
    background: #1b5e20; /* donkergroen */
}

.pd-status-attention {
    background: #f9a825; /* geel/oranje */
    color: #1b1b1b;
}

.pd-status-issue {
    background: #b71c1c; /* donkerrood */
}

.pd-status-paused {
    background: #424242; /* grijs */
}

/* Header */
.pd-project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.pd-project-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.pd-project-title a {
    color: inherit;
    text-decoration: none;
}

.pd-project-title a:hover {
    text-decoration: underline;
}

.pd-project-client {
    font-size: 0.85rem;
    opacity: 0.9;
}

.pd-project-smiley {
    font-size: 2.2rem;
    line-height: 1;
}

/* Voortgangsbalk */
.pd-project-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.pd-progress-label {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
}

.pd-progress-bar {
    flex: 1 1 auto;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.pd-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4caf50, #cddc39);
}

/* Deadline */
.pd-project-deadline {
    font-size: 0.85rem;
    margin-top: 4px;
    opacity: 0.9;
}

/* Takenlijst in blok */
.pd-project-tasks {
    margin-top: 8px;
}

.pd-project-tasks ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pd-task-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pd-task-row:last-child {
    border-bottom: none;
}

.pd-task-symbol {
    width: 18px;
    text-align: center;
    font-weight: 700;
}

.pd-task-title {
    flex: 1 1 auto;
}

.pd-task-deadline {
    font-size: 0.75rem;
    opacity: 0.9;
}

.pd-task-done .pd-task-title {
    text-decoration: line-through;
    opacity: 0.7;
}

.pd-task-done .pd-task-symbol {
    opacity: 0.8;
}

/* Admin actiebalk */
.pd-project-actions {
    margin-top: 8px;
}

/* Knipperen als de deadline nadert */
@keyframes pd-blink {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.01);
        box-shadow: 0 0 18px 0 rgba(255, 255, 255, 0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
}

.pd-blink {
    animation: pd-blink 1s ease-in-out infinite;
}
