/* ✅ General Layout */
.pdm-frontend {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Segoe UI", sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.pdm-frontend h2,
.pdm-frontend h3 {
    color: #2a2a2a;
    margin-bottom: 10px;
}

/* ✅ Project List */
.pdm-project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pdm-project-card {
    flex: 1 1 45%;
    background: #f7f7f7;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}

.pdm-project-card h3 {
    margin-top: 0;
}

.pdm-project-card a.button {
    display: inline-block;
    margin-top: 10px;
    background: #007cba;
    color: #fff;
    padding: 6px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
}

.pdm-project-card a.button:hover {
    background: #005fa3;
}

/* ✅ Document List */
.pdm-document-list {
    padding-left: 20px;
    margin-bottom: 20px;
}

.pdm-document-list li {
    margin-bottom: 6px;
    font-size: 15px;
}

/* ✅ Buttons */
.button {
    background-color: #007cba;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background-color: #005fa3;
}

/* ✅ Form Styling */
form label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
}

form input[type="text"],
form select,
form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    margin-top: 20px;
}

/* ✅ Single Document View */
.pdm-single-doc {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.pdm-doc-content {
    margin-top: 20px;
    line-height: 1.7;
}

.pdm-single-doc img {
    max-height: 60px;
    margin-bottom: 10px;
}

/* ✅ Mobile Optimization */
@media screen and (max-width: 640px) {
    .pdm-frontend {
        padding: 15px;
    }

    .pdm-project-card {
        flex: 1 1 100%;
    }

    .pdm-project-card h3,
    .pdm-document-list li,
    .pdm-single-doc h2,
    .pdm-single-doc h3 {
        font-size: 18px;
    }

    form input[type="text"],
    form select,
    form textarea {
        font-size: 16px;
    }

    .button {
        font-size: 16px;
        padding: 10px 16px;
    }

    .pdm-single-doc img {
        max-width: 100%;
        height: auto;
    }
}

.pdm-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: white;
    display: inline-block;
}
.pdm-status-pending {
    background-color: #999;
}
.pdm-status-active {
    background-color: #007cba;
}
.pdm-status-completed {
    background-color: #2ea44f;
}