.nph-vps-dedicated-plans-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

/* نموذج الفلترة */
.nph-vps-dedicated-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nph-vps-dedicated-filters label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568; /* رمادي داكن هادئ */
    font-weight: 600;
}

.nph-vps-dedicated-filters input {
    padding: 8px;
    border: 1px solid #e2e8f0; /* رمادي فاتح ناعم */
    border-radius: 6px;
    width: 100px;
    background: #f7fafc; /* خلفية بيضاء مائلة للرمادي */
    color: #2d3748; /* نص رمادي داكن */
    transition: border-color 0.3s ease;
}

.nph-vps-dedicated-filters input:focus {
    border-color: #90cdf4; /* أزرق فاتح هادئ */
    outline: none;
}

/* الجدول */
.nph-vps-dedicated-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* ظل خفيف جدًا */
    overflow: hidden;
}

.nph-vps-dedicated-table th,
.nph-vps-dedicated-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #edf2f7; /* رمادي فاتح جدًا */
}

.nph-vps-dedicated-table th {
    background: #e2e8f0; /* رمادي فاتح هادئ */
    color: #2d3748; /* نص رمادي داكن */
    font-weight: 700;
}

.nph-vps-dedicated-table tr {
    transition: background 0.3s ease;
}

.nph-vps-dedicated-table tr:hover {
    background: #f7fafc; /* خلفية بيضاء مائلة للرمادي عند الـ Hover */
}

/* الروابط في اسم الخطة واسم المزود */
.nph-vps-dedicated-table td a {
    color: #4a5568; /* رمادي داكن هادئ */
    text-decoration: none;
    transition: color 0.3s ease;
}

.nph-vps-dedicated-table td a:hover {
    color: #90cdf4; /* أزرق فاتح هادئ عند الـ Hover */
}

/* زر احصل على الخطة */
.nph-vps-dedicated-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #a0aec0; /* رمادي مائل للأزرق هادئ */
    color: #ffffff;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-right: 5px; /* مسافة بين الزرين */
}

/* زر التفاصيل */
.nph-vps-dedicated-details-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #e2e8f0; /* رمادي فاتح هادئ */
    color: #2d3748; /* نص رمادي داكن */
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nph-vps-dedicated-btn:hover {
    background: #718096; /* رمادي داكن قليلاً عند الـ Hover */
    transform: scale(1.05);
    color: #ffffff;
}

.nph-vps-dedicated-details-btn:hover {
    background: #cbd5e0; /* رمادي أغمق قليلاً عند الـ Hover */
    transform: scale(1.05);
    color: #2d3748;
}

/* دعم RTL */
[dir="rtl"] .nph-vps-dedicated-table th,
[dir="rtl"] .nph-vps-dedicated-table td {
    text-align: right;
}

[dir="rtl"] .nph-vps-dedicated-filters {
    justify-content: flex-end;
}

[dir="rtl"] .nph-vps-dedicated-btn {
    margin-right: 0;
    margin-left: 5px; /* تعديل المسافة لـ RTL */
}

/* الاستجابة */
@media (max-width: 768px) {
    /* تحويل الجدول إلى تنسيق عمودي */
    .nph-vps-dedicated-table {
        display: block;
        width: 100%;
    }

    .nph-vps-dedicated-table thead {
        display: none; /* إخفاء رأس الجدول على الشاشات الصغيرة */
    }

    .nph-vps-dedicated-table tbody,
    .nph-vps-dedicated-table tr,
    .nph-vps-dedicated-table td {
        display: block;
        width: 100%;
    }

    .nph-vps-dedicated-table tr {
        margin-bottom: 20px;
        border: 1px solid #edf2f7;
        border-radius: 8px;
        padding: 10px;
        background: #ffffff;
    }

    .nph-vps-dedicated-table td {
        padding: 10px;
        text-align: left;
        border-bottom: none;
        position: relative;
    }

    /* إضافة العناوين كعلامات قبل كل خلية */
    .nph-vps-dedicated-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: #4a5568;
        display: block;
        margin-bottom: 5px;
    }

    /* تعديل الأزرار */
    .nph-vps-dedicated-btn,
    .nph-vps-dedicated-details-btn {
        display: inline-block;
        width: 48%; /* لتتناسب جنبًا إلى جنب */
        margin: 5px 1%;
        box-sizing: border-box;
    }

    /* الفلاتر */
    .nph-vps-dedicated-filters {
        flex-direction: column;
        gap: 10px;
    }

    .nph-vps-dedicated-filters input {
        width: 100%;
    }

    /* دعم RTL */
    [dir="rtl"] .nph-vps-dedicated-table td {
        text-align: right;
    }
}

@media (max-width: 480px) {
    .nph-vps-dedicated-btn,
    .nph-vps-dedicated-details-btn {
        width: 100%; /* الأزرار فوق بعضها على شاشات صغيرة جدًا */
        margin: 5px 0;
    }
}

/* ======================================================
   Filter Styles (Placeholder Approach)
   ====================================================== */

.nph-vps-dedicated-filters {
    display: flex;
    flex-wrap: wrap; /* Allow filters to wrap on smaller screens */
    gap: 15px; /* Spacing between filter elements */
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9; /* Light background for filter area */
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.nph-vps-dedicated-filters input[type="number"],
.nph-vps-dedicated-filters select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    min-width: 150px; /* Give selects/inputs some base width */
    flex-grow: 1; /* Allow elements to grow */
    box-sizing: border-box; /* Include padding and border in width */
}

/* Style for the disabled placeholder option in selects */
.nph-vps-dedicated-filters select option[disabled] {
    color: #999;
}

/* Style placeholders for input fields */
.nph-vps-dedicated-filters input[type="number"]::placeholder {
    color: #999;
    opacity: 1; /* Firefox */
}
.nph-vps-dedicated-filters input[type="number"]:-ms-input-placeholder { /* IE 10-11 */
    color: #999;
}
.nph-vps-dedicated-filters input[type="number"]::-ms-input-placeholder { /* Microsoft Edge */
    color: #999;
}

.nph-filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center; /* Align buttons vertically */
    flex-basis: 100%; /* Make button container take full width on wrap */
    justify-content: flex-start; /* Align buttons to the start */
    margin-top: 10px; /* Add some space if filters wrap */
}
[dir="rtl"] .nph-filter-buttons {
    justify-content: flex-end; /* Align buttons to the end in RTL */
}


/* ======================================================
   Pagination Styles
   ====================================================== */

.nph-pagination {
    margin-top: 30px;
    text-align: center; /* Center the whole block */
}

.nph-pagination ul.page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex; /* Use inline-flex for easy centering and gap */
    gap: 5px; /* Spacing between pagination items */
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
}

.nph-pagination ul.page-numbers li {
    margin: 0; /* Remove default list item margin */
}

.nph-pagination ul.page-numbers li .page-numbers {
    display: block; /* Make links and spans block-level for padding */
    padding: 8px 14px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #007bff; /* Blue color for links */
    background-color: #fff;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 14px;
}

.nph-pagination ul.page-numbers li .page-numbers:hover {
    background-color: #eee;
    color: #0056b3;
}

.nph-pagination ul.page-numbers li .page-numbers.current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: bold;
    cursor: default;
}

.nph-pagination ul.page-numbers li .page-numbers.dots {
    border: none;
    background: none;
    padding: 8px 5px; /* Adjust padding for dots */
    color: #555;
    cursor: default;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .nph-vps-dedicated-filters {
        flex-direction: column; /* Stack filters vertically */
        align-items: stretch; /* Make filters take full width */
    }
    .nph-vps-dedicated-filters input[type="number"],
    .nph-vps-dedicated-filters select {
        min-width: 100%; /* Full width on small screens */
    }
    .nph-filter-buttons {
        justify-content: center;
    }
     .nph-pagination ul.page-numbers li .page-numbers {
        padding: 6px 10px;
        font-size: 13px;
    }
}