/* ==========================================================
 *  GlobalPress Refsam — الإشعارات
 * ========================================================== */

/* ==========================================================
 *  1) Badge في شريط الأدمن
 * ========================================================== */
#wpadminbar .gprs-bar-node > .ab-item {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 0 10px !important;
}

#wpadminbar .gprs-bar-node .gprs-bar-icon {
    font-size: 15px;
    line-height: 1;
}

#wpadminbar .gprs-bar-node .gprs-bar-label {
    font-size: 13px;
}

#wpadminbar .gprs-bar-node .gprs-bar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-right: 4px;
    background: #e53935;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    border-radius: 10px;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.25);
    animation: gprs-pulse 2s infinite;
}

#wpadminbar .gprs-bar-node.has-unread > .ab-item {
    position: relative;
}

#wpadminbar .gprs-bar-node.has-unread > .ab-item:hover .gprs-bar-badge {
    background: #c62828;
    transform: scale(1.08);
    transition: transform 0.15s ease;
}

/* نبض خفيف للفت الانتباه */
@keyframes gprs-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.25); }
    50%      { box-shadow: 0 0 0 5px rgba(229, 57, 53, 0.05); }
}

/* ==========================================================
 *  2) لوحة ووردبريس الرئيسية
 * ========================================================== */
.gprs-dash-widget {
    font-family: inherit;
}

.gprs-dash-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef1f6;
}

.gprs-dash-stat {
    flex: 1;
    background: #f9fbfd;
    border: 1.5px solid #e0e5ee;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.gprs-dash-stat.has-unread {
    background: linear-gradient(135deg, #fdecec 0%, #fad9d9 100%);
    border-color: #f0b8b8;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.1);
}

.gprs-dash-num {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: #1a2b4a;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.gprs-dash-stat.has-unread .gprs-dash-num {
    color: #b32d2e;
}

.gprs-dash-label {
    display: block;
    font-size: 12px;
    color: #5a6a85;
    font-weight: 700;
}

.gprs-dash-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.gprs-dash-item {
    border-bottom: 1px solid #f0f4fa;
    transition: background 0.15s ease;
}

.gprs-dash-item:last-child {
    border-bottom: none;
}

.gprs-dash-item.is-unread {
    background: #fff9f9;
    border-right: 3px solid #e53935;
    padding-right: 8px;
}

.gprs-dash-item:hover {
    background: #f9fbfd;
}

.gprs-dash-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    text-decoration: none;
    color: inherit;
}

.gprs-dash-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.gprs-dash-title {
    flex: 1;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a2b4a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gprs-dash-item.is-unread .gprs-dash-title {
    font-weight: 800;
}

.gprs-dash-date {
    font-size: 11.5px;
    color: #8a94a6;
    flex-shrink: 0;
    white-space: nowrap;
}

.gprs-dash-footer {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #eef1f6;
    text-align: center;
}

/* ==========================================================
 *  الجوال
 * ========================================================== */
@media (max-width: 782px) {

    #wpadminbar .gprs-bar-node .gprs-bar-label {
        display: none;
    }

    .gprs-dash-summary {
        flex-direction: column;
    }
}


/* ==========================================================
 *  شارات الحالة في جدول الرسائل
 * ========================================================== */
.gprs-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
    line-height: 1.6;
}

/* ==========================================================
 *  صندوق الحالة داخل صفحة الرسالة
 * ========================================================== */
.gprs-status-box p {
    margin: 6px 0;
    font-size: 13px;
}

.gprs-status-box select {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
}

/* ==========================================================
 *  شارة الحالة داخل لوحة ووردبريس
 * ========================================================== */
.gprs-dash-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
    margin-right: auto;
    margin-left: 8px;
}

/* ==========================================================
 *  تحسين شكل إجراءات الصف
 * ========================================================== */
.row-actions .gprs_read,
.row-actions .gprs_progress,
.row-actions .gprs_spam {
    font-weight: 700;
}