/* Palette and font matched to the site header/footer and the Profile Details card */
.elementor-widget-my_projects_listing_aac4c2d9 {
    --mp-blue: var(--e-global-color-4ab95de, #1D4ED8);
    --mp-accent: #467FF7;
    --mp-heading: #1C244B;
    --mp-text: #324A6D;
    --mp-lighter: var(--e-global-color-5407c2d, #E3F3FF);
    --mp-success: var(--e-global-color-45cba0d, #12CE90);
    --mp-border: #C8D5DC;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    color: var(--mp-text);
}

.my-projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.editor-notice {
    font-size: 12px;
    color: var(--mp-text);
    background: var(--mp-lighter);
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.project-item-card {
    background: #ffffff;
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.project-item-card:hover {
    transform: translateY(-2px);
    border-color: var(--mp-accent);
    box-shadow: 0 4px 12px rgba(28, 36, 75, 0.08);
}

.project-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}

.project-item-title {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--mp-heading);
}

.status-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-badge.publish {
    background-color: #12CE9015;
    color: var(--mp-success);
    border-color: #12CE9040;
}

.status-badge.pending,
.status-badge.future {
    background-color: var(--mp-lighter);
    color: var(--mp-blue);
    border-color: #467FF740;
}

.status-badge.draft {
    background-color: #C8D5DC40;
    color: var(--mp-text);
    border-color: var(--mp-border);
}

.project-item-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.stage-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid var(--mp-border);
    background: #fff;
    color: var(--mp-text);
    white-space: nowrap;
}

.stage-badge.stage-in_progress { color: #0E9F6E; border-color: #12CE9040; }
.stage-badge.stage-finished { color: var(--mp-heading); background: #1C244B10; }
.stage-badge.stage-cancelled { color: #C0695D; border-color: #C0695D40; }

.project-item-excerpt {
    font-size: 15px;
    color: var(--mp-text);
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.project-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--mp-lighter);
    padding-top: 12px;
    font-size: 14px;
}

.project-item-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}

.new-apps-count {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--mp-blue);
    color: #fff;
    font-size: 12px;
}

.project-item-date {
    color: var(--mp-text);
    opacity: 0.8;
}

.elementor-widget-my_projects_listing_aac4c2d9 .view-project-link {
    color: var(--mp-accent);
    text-decoration: none;
    font-weight: 500;
}

.elementor-widget-my_projects_listing_aac4c2d9 .view-project-link:hover {
    text-decoration: underline;
}

.no-projects-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 32px 20px;
    background: var(--mp-lighter);
    border: 1px dashed var(--mp-accent);
    border-radius: 10px;
    color: var(--mp-text);
    font-size: 15px;
    line-height: 1.5;
}

.no-projects-box p {
    margin: 0;
}

.login-required-msg {
    text-align: center;
    color: var(--mp-text);
    font-weight: 500;
}

/* Restricted by moderation */
.status-badge.restricted { background-color: #C0695D15; color: #B32D2E; border-color: #C0695D30; }

/* Post your project: above the owned projects (and in the empty state) */
.elementor-widget-my_projects_listing_aac4c2d9 .mp-post-btn { display: inline-block; margin: 0 0 16px; padding: 10px 20px; border: 1px solid var(--mp-accent); border-radius: 10px; background: var(--mp-blue); color: #fff; font-family: "Poppins", sans-serif; font-size: 15px; font-weight: 400; line-height: 1.2; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; }
.elementor-widget-my_projects_listing_aac4c2d9 .mp-post-btn:hover { background: transparent; color: var(--mp-accent); }
.no-projects-box .mp-post-btn { margin: 0; }
