* {
    /* create color variable */
    --cob-green: #9bbe32;
}

.project-container {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 0 40px 30px 40px;
}

.project-introduction {
    line-height: 1.5;
    font-weight: 600;
    color: #191919;
}

.project-outlook h3,
.project-activities h3,
.project-deliverables h3 {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #191919;
    margin-bottom: 12px;
}

.project-voortgang-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* margin-left: -40px; */
    padding-left: 40px;
    padding-bottom: 16px;
    border-left: 5px solid var(--cob-green);
}

.project-voortgang-section-title h3 {
    font-family: 'Verdana', sans-serif;
    text-transform: uppercase;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--cob-green);
}

.project-voortgang-section h4 {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #191919;
    margin-bottom: 6px;
}

.project-voortgang-section-title {
    font-size: 16px;
    font-weight: 500;
    color: #191919;
}
.project-deliverables {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-deliverables-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.project-deliverable {
    display: flex;
    flex-direction: row;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    gap: 20px;
    padding: 16px 16px;
}

.project-deliverable:last-child {
    border-bottom: 1px solid #e4e4e7;
}

.project-deliverable .left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 24px;
    color: #9bbe32;
}

.project-deliverable .right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-deliverable .deliverable-title {
    font-size: 14px;
    font-weight: 600;
    color: #191919;
}

.project-deliverable .deliverable-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
}

.project-deliverable .deliverable-meta .status-badge {
    padding: 3px 12px;
    border-radius: 24px;
    font-size: 10px;
    color: black;
}

/* .project-deliverable .deliverable-meta > .status-badge.status-badge-disabled {
      cursor: default;
      background-color: #e4e4e7;
      color: #6b7280;
  } */

.project-deliverable
    .deliverable-meta
    > .status-badge:not(.status-badge-disabled):hover {
    cursor: pointer;
}

/* Project Activities List */
.project-activities {
    margin-top: 20px;
}

/* .project-activities h3 {
      font-size: 2rem;
      font-weight: 400;
      font-family: 'Georgia', serif;
      color: #191919;
      margin-bottom: 12px;
  } */

.project-activities ul {
    list-style: disc;
    margin: 0;
    padding-left: 20px;
}

.project-activities li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.project-activities li:last-child {
    margin-bottom: 0;
}

/* .project-activity p {
      margin: 0;
      font-size: 14px;
      color: #374151;
  } */

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: unset !important;
    max-height: unset !important;
    border: none;
    background: transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.modal[open] {
    opacity: 1;
    visibility: visible;
}

body:has(dialog.modal[open]) {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal[open] .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e4e4e7;
}

.modal-header .modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #191919;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    max-height: 60vh;
}

.deliverable-info {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.info-row .label {
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
}

.info-row .value {
    font-weight: 500;
    color: #191919;
    font-size: 14px;
}

.explanation-section h3 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
}

.explanation-section p {
    margin: 0;
    line-height: 1.6;
    color: #374151;
    font-size: 14px;
}

.modal-footer {
    padding: 16px 24px 24px 24px;
    border-top: 1px solid #e4e4e7;
    display: flex;
    justify-content: flex-end;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Disable body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.deliverable-title-link {
    text-decoration: none;
    color: #191919;
}

.deliverable-title-link:hover {
    text-decoration: underline;
}

/* Responsive styles for deliverables and modal */
@media (max-width: 768px) {
    .project-container {
        padding: 0 20px 30px 20px;
    }

    .project-deliverable {
        flex-direction: column;
        gap: 12px;
        padding: 20px 0;
    }

    .project-deliverable .left {
        width: 32px;
        height: 32px;
        font-size: 20px;
        align-self: flex-start;
    }

    .project-deliverable .right {
        gap: 8px;
    }

    .project-deliverable .deliverable-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .project-deliverable .deliverable-meta .status-badge {
        align-self: flex-start;
    }

    .project-activities {
        margin-top: 16px;
    }

    .project-activities ul {
        padding-left: 16px;
    }

    .project-activities li {
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .project-container {
        padding: 0 16px 20px 16px;
    }

    .project-deliverable {
        padding: 16px 0;
    }

    .project-deliverable .deliverable-title {
        font-size: 13px;
    }

    .project-deliverable .deliverable-meta {
        font-size: 11px;
    }

    .project-deliverable .deliverable-meta .status-badge {
        font-size: 9px;
        padding: 2px 8px;
    }

    .modal-content {
        width: 98%;
        margin: 10px;
        max-height: 90vh;
    }

    .modal-header {
        padding: 16px 16px 12px 16px;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 16px;
        max-height: 70vh;
    }

    .modal-footer {
        padding: 12px 16px 16px 16px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .info-row .label,
    .info-row .value {
        font-size: 13px;
    }

    .explanation-section h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .explanation-section p {
        font-size: 13px;
        line-height: 1.5;
    }

    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.btn-primary {
    box-sizing: border-box;
    background-color: #97bf0d;
    color: white;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #82a50c;
}
