
body {
    font-family: 'Vazir', Arial, sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
}


/* استایل برای پاپ‌آپ */
#info-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 300px;
    text-align: left;
    font-family: Arial, sans-serif;
}

/* دکمه بستن */
#info-popup .close-btn {
    position: absolute;
    top: 10px;
      left: 10px; /* تغییر مکان به سمت چپ */

    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

#info-popup .close-btn:hover {
    background: #e60000;
}
#info-popup .popup-content {
    text-align: right;
    direction: rtl;
    font-family: 'Vazir', Arial, sans-serif;
}
/* متن پاپ‌آپ */
#info-popup .popup-content p {
    margin: 10px 0;
}

/* استایل ایموجی اطلاعات بیشتر */
.info-emoji {
    cursor: pointer;
    font-size: 20px;
}




/* کادر کلی */
.custom-user-links {
    margin: 20px auto;
    padding: 20px;
       background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px; /* گوشه‌های گرد */
    font-family: 'Vazir', Arial, sans-serif;
    text-align: center;
}

/* عنوان */
.custom-user-links h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* جدول */
.custom-user-links table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.custom-user-links th, .custom-user-links td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.custom-user-links th {
    background-color: #19593a;
    color: #fff;
    font-weight: bold;
}

.custom-user-links tr:nth-child(even) {
    background-color: #f2f2f2; /* رنگ روشن برای خطوط زوج */
}

.custom-user-links tr:nth-child(odd) {
    background-color: #ffffff; /* رنگ سفید برای خطوط فرد */
}

.custom-user-links a {
    color: #19593a;
    text-decoration: none;
}

.custom-user-links a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination-link {
    display: inline-block;
    padding: 8px 12px;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination-link.active {
    background-color: #19593a;
    color: #fff;
    border-color: #007bff;
}

.pagination-link:hover {
    background-color: #0056b3;
    color: #fff;
}





/* کادر کلی پیام موفقیت */
.custom-success-message {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e6f9e6;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 20px;
    max-width: 400px;
    margin: 20px auto; /* مرکزیت */
    text-align: center;
    box-sizing: border-box;
}

/* متن پیام موفقیت */
.custom-success-message p {
    font-size: 18px; /* اندازه بزرگ‌تر */
    color: #28a745; /* رنگ سبز */
    font-weight: bold;
    margin: 0;
}

/* استایل دکمه */
.custom-payment-button {
    display: block; /* برای وسط‌چین کردن دکمه */
    background-color: #f45a2a;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    margin: 20px auto; /* وسط‌چین کردن */
    max-width: 200px; /* حداکثر عرض دکمه */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.custom-payment-button:hover {
    background-color: #257cff;
       color: #ffffff;
    transform: translateY(-2px);
}

/* کادر‌بندی کلی صفحه */
.custom-payment-container {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* کارت مستطیل با گوشه‌های گرد */
.custom-payment-card {
    background: #ffffff;
    border: 1px solid #ddd; /* حاشیه ساده اطراف */
    border-radius: 10px; /* گوشه‌های گرد */
    padding: 20px;
    max-width: 600px;
    width: 100%;
    text-align: right;
    font-family: iranyekan,iranyekan;
    box-sizing: border-box;
}

/* عنوان صفحه */
.custom-payment-title {
    font-size: 24px;
    color: #000;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    text-align: center;
}

/* جزئیات پرداخت */
.custom-payment-detail {
    
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    position: relative;
}

.custom-payment-custom {
    
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    position: relative;
}

/* خط نقطه‌چین فقط زیر جزئیات */
.custom-payment-detail::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    border-bottom: 1px dotted #aaa;
}

/* کادر لینک پرداخت */
.apl-payment-link-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e4fdf7;
    border: 2px solid #196d44;
    border-radius: 10px;
    padding: 10px 20px;
    text-align: center;
    max-width: 600px;
    margin: 20px auto; /* مرکزیت */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

.apl-payment-link-text {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.apl-payment-link {
    color: #196d44;
    text-decoration: none;
    word-break: break-all;
}

.apl-payment-link:hover {
    color: #0056b3;
    text-decoration: underline;
  
}

#apl-amount-toman {
    text-align: center; /* وسط‌چین کردن متن داخل فیلد */
    font-size: 20px; /* افزایش اندازه فونت داخل فیلد */
    padding: 10px; /* افزایش فاصله داخل فیلد */
    border: 2px solid #007bff; /* حاشیه با رنگ مشخص */
    border-radius: 5px; /* گوشه‌های گرد */
        font-weight: bold;

}
#apl-amount-usd {
    max-width: 100%;
    display: block;
    margin: 0 auto; /* مرکزیت */
        text-align: center; /* وسط‌چین کردن متن داخل فیلد */

}
/* استایل فرم پرداخت */
.apl-payment-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    
    min-height: 100vh;
}

.apl-payment-form {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.apl-payment-form h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.apl-form-group {
    margin-bottom: 20px;
    text-align: right;
}

.apl-form-group label {
    display: block;
    margin-bottom: 5px;
    font-family: iranyekan,iranyekan;
    font-weight: bold;
    color: #555;
}

.apl-form-group input,
.apl-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.apl-form-group textarea {
    resize: none;
    height: 80px;
}

.apl-form-group input:focus,
.apl-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.apl-payment-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
}

.apl-payment-button:hover {
    background-color: #0056b3;
}

.apl-payment-button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}




/* استایل ریسپانسیو */
@media (max-width: 768px) {
    .apl-payment-form {
        padding: 20px;
    }

    .apl-payment-form h2 {
        font-size: 20px;
    }
}
