/* رأس القائمة الرئيسية */
#toplevel_page_multis-main > a {
    background-color: #d32f2f !important;
    color: #fff !important;
}
#toplevel_page_multis-main > a .wp-menu-name {
    color: #fff !important;
    font-weight: bold;
}

/* أيقونة القائمة */
#toplevel_page_multis-main .dashicons-admin-generic {
    color: #fff !important;
}

/* جداول الباقات والعملاء */
.muls-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    background: #fff;
}

.muls-table th, .muls-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.muls-table th {
    background-color: #f44336;
    color: #fff;
    text-align: left;
}

.muls-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.muls-table tr:hover {
    background-color: #f1f1f1;
}

/* تنسيقات التنبيهات الإدارية */
.notice-warning { border-left: 4px solid #ff9800 !important; }
.notice-error   { border-left: 4px solid #d32f2f !important; }
.notice-success { border-left: 4px solid #4caf50 !important; }

/* صفحة التقرير الإداري */
.muls-report h2 {
    color: #d32f2f;
    margin-top: 30px;
}
.muls-report ul {
    list-style: disc;
    margin-left: 20px;
}

/* === أنماط الشورتكودات العامة === */

/* عرض خدمة واحدة */
.muls-service-single {
    border: 1px solid #ddd;
    padding: 20px;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 6px;
}
.muls-service-single .muls-title {
    color: #d32f2f;
    margin-bottom: 10px;
    font-size: 24px;
}
.muls-service-single .muls-content {
    margin-bottom: 15px;
}
.muls-service-single .muls-meta p {
    margin: 5px 0;
    font-size: 14px;
}

/* عرض الخدمات القديم (للتوافق) */
.muls-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.muls-service {
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
    border-radius: 6px;
}
.muls-service:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.muls-thumb {
    margin-bottom: 10px;
    max-width: 100%;
    height: auto;
}
.muls-title {
    color: #d32f2f;
    font-size: 18px;
    margin-bottom: 10px;
}
.muls-country,
.muls-email,
.muls-mobile {
    font-size: 14px;
    margin: 3px 0;
}
.muls-link {
    display: inline-block;
    margin-top: 10px;
    background: #d32f2f;
    color: #fff;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}
.muls-link:hover {
    background: #b71c1c;
}

/* ترقيم الصفحات */
.muls-pagination {
    margin-top: 20px;
    text-align: center;
}
.muls-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}
.muls-pagination .page-numbers:hover {
    background: #f1f1f1;
}
.muls-pagination .current {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}
.muls-pagination .prev,
.muls-pagination .next {
    background: #d32f2f;
    color: #fff;
    border: 1px solid #d32f2f;
    padding: 6px 12px;
    border-radius: 4px;
}
.muls-pagination .prev:hover,
.muls-pagination .next:hover {
    background: #b71c1c;
}

/* إحصائيات الواجهة الأمامية */
.muls-stats-front {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.stat-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #d32f2f;
}
.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #d32f2f;
}
.stat-label {
    font-size: 0.9em;
    color: #666;
}

/* رصيد المستخدم */
.muls-user-quota {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
}
.muls-user-quota h4 {
    margin-top: 0;
    color: #333;
}
.quota-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}
.quota-fill {
    height: 100%;
    background: #4caf50;
    transition: width 0.5s ease;
}
.quota-numbers {
    text-align: center;
    font-weight: bold;
    margin: 10px 0 0 0;
}

/* تجديد الباقة */
.muls-renew {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
}
.muls-renew-btn, .muls-buy-btn {
    display: inline-block;
    background: #d32f2f;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}
.muls-renew-btn:hover, .muls-buy-btn:hover {
    background: #b71c1c;
    color: white;
}
.package-alert {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}
.no-package {
    text-align: center;
    padding: 30px;
}

/* رسائل */
.muls-login-message {
    padding: 15px;
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 4px;
    color: #856404;
}

/* === أنماط الشورتكود المتقدم === */

/* الشبكة الأساسية */
.muls-services-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

/* عدد الأعمدة الديناميكي */
.muls-grid-cols-1 { grid-template-columns: 1fr; }
.muls-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.muls-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.muls-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* بطاقة الخدمة */
.muls-service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.muls-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #d32f2f;
}

/* الصورة المصغرة */
.muls-thumb {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
}

.muls-thumb-img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.muls-service-card:hover .muls-thumb-img {
    transform: scale(1.05);
}

/* العنوان */
.muls-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.muls-title a {
    color: #d32f2f;
    text-decoration: none;
}

.muls-title a:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* البيانات الوصفية */
.muls-meta {
    margin-bottom: 15px;
    flex-grow: 1;
}

.muls-meta p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.muls-meta strong {
    color: #333;
    margin-left: 5px;
}

/* المقتطف */
.muls-excerpt {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* زر التفاصيل */
.muls-details-btn {
    display: inline-block;
    background: #d32f2f;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease;
    margin-top: auto;
}

.muls-details-btn:hover {
    background: #b71c1c;
    color: white;
}

/* حالة عدم وجود خدمات */
.muls-no-services {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.muls-clear-filter {
    display: inline-block;
    margin-top: 15px;
    color: #d32f2f;
    text-decoration: none;
    border: 1px solid #d32f2f;
    padding: 8px 16px;
    border-radius: 4px;
}

.muls-clear-filter:hover {
    background: #d32f2f;
    color: white;
}

/* التجاوب */
@media (max-width: 1024px) {
    .muls-grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .muls-grid-cols-4,
    .muls-grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .muls-grid-cols-4,
    .muls-grid-cols-3,
    .muls-grid-cols-2 { grid-template-columns: 1fr; }
}

/* Responsive العام */
@media (max-width: 768px) {
    .muls-services {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }
    .muls-stats-front {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .muls-services {
        grid-template-columns: 1fr;
    }
    .muls-stats-front {
        grid-template-columns: 1fr;
    }
}


/* === أنماط صفحة الخدمة المفردة === */

/* الحاوية الرئيسية */
.muls-service-single-detail {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* العنوان */
.muls-single-title {
    color: #d32f2f;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 28px;
}

/* معلومات النشر */
.muls-single-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.muls-post-date,
.muls-post-author {
    display: inline-flex;
    align-items: center;
}

/* الصورة البارزة */
.muls-single-featured-image {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.muls-featured-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background: #f5f5f5;
}

/* المحتوى */
.muls-single-content {
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 16px;
}

/* جدول المعلومات */
.muls-single-info-table {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e8e8e8;
}

.muls-info-title {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 20px;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 10px;
}

/* الجدول */
.muls-info-table {
    width: 100%;
    border-collapse: collapse;
}

.muls-info-table th {
    text-align: right;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    width: 30%;
    color: #333;
    font-weight: bold;
    vertical-align: top;
}

.muls-info-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    background: #fff;
    vertical-align: top;
}

.muls-info-table tr:hover th,
.muls-info-table tr:hover td {
    background: #f8f8f8;
}

/* روابط */
.muls-email-link,
.muls-phone-link {
    color: #d32f2f;
    text-decoration: none;
    word-break: break-all;
}

.muls-email-link:hover,
.muls-phone-link:hover {
    text-decoration: underline;
}

/* زر واتساب في الجدول */
.muls-whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: white !important;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 10px;
    font-size: 12px;
    margin-top: 5px;
}

.muls-whatsapp-btn:hover {
    background: #128C7E;
    color: white;
}

/* أيام متبقية */
.muls-days-left {
    color: #4caf50;
    font-weight: bold;
    font-size: 14px;
}

.muls-expired {
    color: #f44336;
    font-weight: bold;
    font-size: 14px;
}

/* أزرار الإجراءات */
.muls-single-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.muls-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.muls-email-btn {
    background: #d32f2f;
    color: white;
}

.muls-email-btn:hover {
    background: #b71c1c;
    color: white;
}

.muls-call-btn {
    background: #4caf50;
    color: white;
}

.muls-call-btn:hover {
    background: #388e3c;
    color: white;
}

.muls-whatsapp-action-btn {
    background: #25D366;
    color: white;
}

.muls-whatsapp-action-btn:hover {
    background: #128C7E;
    color: white;
}

.muls-edit-btn {
    background: #2196f3;
    color: white;
}

.muls-edit-btn:hover {
    background: #1976d2;
    color: white;
}

/* معلومات إدارية */
.muls-admin-info {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.muls-admin-info h4 {
    color: #ff9800;
    margin: 0 0 15px 0;
    border-bottom: 1px solid #ffecb3;
    padding-bottom: 10px;
    font-size: 18px;
}

.muls-admin-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.muls-admin-info li {
    padding: 8px 0;
    border-bottom: 1px dashed #ffecb3;
    font-size: 14px;
}

.muls-admin-info li:last-child {
    border-bottom: none;
}

.muls-admin-info strong {
    color: #333;
    margin-left: 10px;
    display: inline-block;
    min-width: 120px;
}

.muls-admin-info a {
    color: #d32f2f;
    text-decoration: none;
}

.muls-admin-info a:hover {
    text-decoration: underline;
}

/* التجاوب */
@media (max-width: 768px) {
    .muls-service-single-detail {
        padding: 20px;
    }
    
    .muls-single-title {
        font-size: 24px;
    }
    
    .muls-single-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .muls-info-table th,
    .muls-info-table td {
        display: block;
        width: 100%;
        text-align: right;
    }
    
    .muls-info-table th {
        background: #f5f5f5;
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .muls-info-table td {
        padding-top: 5px;
        border-top: none;
    }
    
    .muls-info-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        overflow: hidden;
        padding: 10px;
    }
    
    .muls-single-actions {
        flex-direction: column;
    }
    
    .muls-action-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .muls-admin-info strong {
        display: block;
        margin-bottom: 5px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .muls-service-single-detail {
        padding: 15px;
    }
    
    .muls-single-title {
        font-size: 20px;
    }
    
    .muls-info-title {
        font-size: 18px;
    }
    
    .muls-admin-info h4 {
        font-size: 16px;
    }
}
/* === أنماط صفحة عدم العثور على الخدمة === */
.muls-service-not-found {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.muls-not-found-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.muls-service-not-found h3 {
    color: #856404;
    margin-bottom: 15px;
}

.muls-suggestions {
    text-align: right;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.muls-suggestions li {
    padding: 8px 0;
    border-bottom: 1px dashed #ffeaa7;
}

.muls-suggestions li:last-child {
    border-bottom: none;
}

.muls-suggestions code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #ffd166;
}

.muls-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* === أنماط الخدمات المشابهة === */
.muls-related-services {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.muls-related-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.muls-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.muls-related-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.muls-related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.muls-related-thumb {
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.muls-related-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.muls-related-item:hover .muls-related-img {
    transform: scale(1.05);
}

.muls-related-item-title {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.muls-related-item-title a {
    color: #d32f2f;
    text-decoration: none;
}

.muls-related-item-title a:hover {
    color: #b71c1c;
    text-decoration: underline;
}

.muls-related-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.muls-related-link {
    display: inline-block;
    background: #f8f9fa;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #dee2e6;
}

.muls-related-link:hover {
    background: #e9ecef;
    color: #333;
}

/* === زر الرجوع === */
.muls-back-btn {
    background: #6c757d !important;
    color: white !important;
}

.muls-back-btn:hover {
    background: #545b62 !important;
}

/* === رابط الخدمة الدائم === */
.muls-service-permalink {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.muls-permalink-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin: 10px 0;
    font-family: monospace;
    direction: ltr;
    text-align: left;
}

.muls-service-permalink small {
    color: #666;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* === أنماط إضافية لصفحة الخدمة المفردة === */

.muls-no-data {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

.muls-meta-debug {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    font-family: monospace;
}

.muls-meta-debug table {
    width: 100%;
    border-collapse: collapse;
}

.muls-meta-debug th {
    background: #e9ecef;
    padding: 10px;
    text-align: right;
    border: 1px solid #dee2e6;
}

.muls-meta-debug td {
    padding: 10px;
    border: 1px solid #dee2e6;
    background: white;
}

.muls-meta-debug em {
    color: #dc3545;
}

/* فيديو الخدمة */
.muls-single-video {
    text-align: center;
    margin: 20px auto;
}

.muls-single-video iframe,
.muls-single-video video {
    width: 50%;
    height: 550px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .muls-single-video iframe,
    .muls-single-video video {
        width: 100%;
        height: auto;
        max-height: 350px;
    }
}
/* عرض صفحة الخدمة المفردة 70% وتوسيط */
.muls-service-single-detail {
    width: 70%;
    margin: 20px auto;
}

@media (max-width: 1024px) {
    .muls-service-single-detail {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .muls-service-single-detail {
        width: 95%;
        padding: 20px;
    }
}

/* ========== أنماط نموذج الفلترة ========== */
.multis-filter-form {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
    direction: rtl;
}

.multis-filter-form select {
    padding: 12px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    font-size: 16px;
    line-height: 1.5;
    min-width: 200px;
    max-width: 280px;
    width: auto;
    flex: 0 0 auto;
    color: #333;
    height: auto;
    appearance: menulist; /* يحافظ على المظهر الأصلي للقائمة */
}

.multis-filter-form button {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    font-size: 16px;
    line-height: 1.5;
}

.multis-filter-form button:hover {
    background: #b71c1c;
}

@media (max-width: 600px) {
    .multis-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .multis-filter-form select,
    .multis-filter-form button {
        width: 100%;
        max-width: 100%;
    }
}