/* استایل‌های ویجت پروژه */
.project-widget-container {
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

/* استایل لیست */
.project-list .project-field {
    display: flex;
    align-items: center;
    /* آیکون در مرکز ارتفاع */
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: right;
}

.project-list .project-field:last-child {
    margin-bottom: 0;
}

/* استایل گرید */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.project-grid .project-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* استایل مخصوص شرح فعالیت - در حالت گرید */
.project-grid .project-field-activity_description {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    grid-column: span 2;
    /* عرض کامل */
}

/* استایل مخصوص شرح فعالیت - در حالت لیست */
.project-list .project-field-activity_description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* آیکون مخصوص شرح فعالیت */
.project-activity-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    margin-right: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-list .project-activity-icon {
    align-self: flex-start;
}

.project-grid .project-activity-icon {
    margin-bottom: 15px;
}

/* محتوای مخصوص شرح فعالیت */
.project-activity-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-list .project-activity-content {
    align-items: flex-start;
}

.project-grid .project-activity-content {
    align-items: center;
}

/* متن شرح فعالیت */
.project-activity-value {
    text-align: right;
    line-height: 1.8;
    white-space: pre-line;
    width: 100%;
    margin-top: 5px;
}

.project-grid .project-activity-value {
    text-align: center;
}

.project-list .project-activity-value {
    text-align: right;
}

/* آیکون‌های عادی */
.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-list .project-icon {
    width: 30px;
    height: 30px;
    order: 2;
    /* آیکون سمت چپ */
    margin-right: 12px;
    /* فاصله از متن */
}

.project-grid .project-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
}

/* محتوای عادی */
.project-list .project-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-grow: 1;
    order: 1;
    /* محتوا سمت راست */
    gap: 4px;
}

.project-grid .project-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* لیبل و مقدار عادی */
.project-label {
    font-weight: bold;
    color: #2c3e50;
    white-space: nowrap;
    text-align: right;
    width: 100%;
}

.project-value {
    color: #555;
    text-align: right;
    width: 100%;
}

.project-grid .project-label {
    font-size: 14px;
}

.project-grid .project-value {
    font-size: 16px;
    font-weight: bold;
}

/* لیبل و مقدار شرح فعالیت */
.project-field-activity_description .project-label {
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
}

.project-field-activity_description .project-value {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

/* استایل آیکون‌ها */
.project-icon i,
.project-icon svg {
    display: block;
}

/* استایل‌های وضعیت */
.project-info,
.project-error {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* ریسپانسیو - تبلت */
@media (max-width: 1024px) {
    .project-widget-container {
        padding: 18px;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .project-grid .project-field-activity_description {
        grid-column: span 2;
    }

    .project-list .project-field {
        padding: 12px;
    }

    .project-list .project-field-activity_description {
        padding: 18px 12px;
    }

    .project-activity-icon {
        width: 36px;
        height: 36px;
    }
}

/* ریسپانسیو - موبایل */
@media (max-width: 767px) {
    .project-widget-container {
        padding: 15px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-grid .project-field-activity_description {
        grid-column: span 1;
    }

    .project-list .project-field {
        align-items: center;
        padding: 12px;
        margin-bottom: 10px;
    }

    .project-list .project-field-activity_description {
        padding: 15px 12px;
        margin-bottom: 10px;
    }

    .project-list .project-icon {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }

    .project-list .project-content {
        align-items: flex-end;
        gap: 3px;
    }

    .project-activity-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }

    .project-label {
        font-size: 14px;
    }

    .project-value {
        font-size: 13px;
    }

    .project-field-activity_description .project-label {
        font-size: 15px;
    }

    .project-field-activity_description .project-value {
        font-size: 14px;
    }
}

/* ریسپانسیو - موبایل کوچک */
@media (max-width: 480px) {
    .project-widget-container {
        padding: 12px;
    }

    .project-list .project-field {
        padding: 10px;
        margin-bottom: 8px;
    }

    .project-list .project-field-activity_description {
        padding: 12px 10px;
        margin-bottom: 8px;
    }

    .project-list .project-icon {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }

    .project-grid .project-field {
        padding: 15px 10px;
    }

    .project-grid .project-field-activity_description {
        padding: 15px 10px;
    }

    .project-grid .project-icon {
        width: 25px;
        height: 25px;
        margin-bottom: 8px;
    }

    .project-activity-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 6px;
    }

    .project-label {
        font-size: 13px;
    }

    .project-value {
        font-size: 12px;
    }

    .project-field-activity_description .project-label {
        font-size: 14px;
    }

    .project-field-activity_description .project-value {
        font-size: 13px;
    }
}

/* ریسپانسیو - بسیار کوچک */
@media (max-width: 360px) {
    .project-widget-container {
        padding: 10px;
    }

    .project-list .project-field {
        flex-direction: row;
        align-items: center;
        text-align: right;
        padding: 8px;
    }

    .project-list .project-field-activity_description {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 8px;
    }

    .project-list .project-icon {
        order: 2;
        margin-right: 6px;
        margin-bottom: 0;
    }

    .project-list .project-content {
        order: 1;
        align-items: flex-end;
        gap: 2px;
    }

    .project-list .project-activity-icon {
        margin-bottom: 6px;
    }

    .project-label,
    .project-value {
        text-align: right;
    }
}

/* استایل مخصوص شرح فعالیت - در حالت گرید */
.project-grid .project-field-activity_description {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    grid-column: span 2;
    /* عرض کامل */
}

/* استایل مخصوص شرح فعالیت - در حالت لیست */
.project-list .project-field-activity_description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* آیکون مخصوص شرح فعالیت */
.project-activity-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    margin-right: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-list .project-activity-icon {
    align-self: flex-start;
}

.project-grid .project-activity-icon {
    margin-bottom: 15px;
}

/* محتوای مخصوص شرح فعالیت */
.project-activity-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-list .project-activity-content {
    align-items: flex-start;
}

.project-grid .project-activity-content {
    align-items: center;
}

/* متن شرح فعالیت */
.project-activity-value {
    text-align: right;
    line-height: 1.8;
    white-space: pre-line;
    width: 100%;
    margin-top: 5px;
}

.project-grid .project-activity-value {
    text-align: center;
}

.project-list .project-activity-value {
    text-align: right;
}

/* لیبل و مقدار شرح فعالیت */
.project-field-activity_description .project-label {
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
}

.project-field-activity_description .project-value {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

/* ریسپانسیو - تبلت */
@media (max-width: 1024px) {
    .project-grid .project-field-activity_description {
        grid-column: span 2;
    }

    .project-list .project-field-activity_description {
        padding: 18px 12px;
    }

    .project-activity-icon {
        width: 36px;
        height: 36px;
    }
}

/* ریسپانسیو - موبایل */
@media (max-width: 767px) {
    .project-grid .project-field-activity_description {
        grid-column: span 1;
    }

    .project-list .project-field-activity_description {
        padding: 15px 12px;
        margin-bottom: 10px;
    }

    .project-activity-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }

    .project-field-activity_description .project-label {
        font-size: 15px;
    }

    .project-field-activity_description .project-value {
        font-size: 14px;
    }
}

/* ریسپانسیو - موبایل کوچک */
@media (max-width: 480px) {
    .project-list .project-field-activity_description {
        padding: 12px 10px;
        margin-bottom: 8px;
    }

    .project-grid .project-field-activity_description {
        padding: 15px 10px;
    }

    .project-activity-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 6px;
    }

    .project-field-activity_description .project-label {
        font-size: 14px;
    }

    .project-field-activity_description .project-value {
        font-size: 13px;
    }
}

/* ریسپانسیو - بسیار کوچک */
@media (max-width: 360px) {
    .project-list .project-field-activity_description {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 8px;
    }

    .project-list .project-activity-icon {
        margin-bottom: 6px;
    }
}



.project-list .project-field-activity_description{
    display: flex;
    align-items: flex-start;
    text-align: right;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    flex-direction: row;
}


.project-list .project-field-activity_description .project-icon svg{
    padding-top: 20px;
}