/* ============================================
   فونت وزیر (Vazir) - مناسب برای سایت‌های پزشکی
   ============================================ */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

/* ===== فضای کلی مدیریت ===== */
.deliar-requests-wrap {
    direction: rtl;
    font-family: 'Vazir', 'Tahoma', sans-serif;
    background: #f4f9fc;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
}

/* ===== هدر صفحه ===== */
.deliar-requests-wrap h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0b3954;
    border-right: 6px solid #2ecc71;
    padding-right: 20px;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.deliar-requests-wrap h1::before {
    content: "🏥 ";
    font-size: 32px;
}

/* ===== دکمه نمایش فرم (گرادیان مدرن) ===== */
#deliar-toggle-form {
    background: linear-gradient(135deg, #0b3954 0%, #1a6b8a 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(11, 57, 84, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 10px;
}
#deliar-toggle-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(11, 57, 84, 0.4);
    background: linear-gradient(135deg, #0e4a6b 0%, #1f7a9e 100%);
}
#deliar-toggle-form:active {
    transform: scale(0.97);
}

/* ===== باکس نمایش شورت‌کد ===== */
.deliar-shortcode-box {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4eaf0 100%);
    padding: 12px 20px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid #b0d4e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin: 15px 0 20px 0;
}
.deliar-shortcode-box strong {
    color: #0b3954;
}
.deliar-shortcode-box code {
    background: #fff;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 15px;
    color: #0b3954;
    font-weight: 600;
    border: 1px solid #cde1e8;
    direction: ltr;
    display: inline-block;
}

/* ===== کانتینر فرم (پزشکی و مدرن) ===== */
#deliar-request-form-container {
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(11, 57, 84, 0.10);
    border: 1px solid rgba(46, 204, 113, 0.15);
    backdrop-filter: blur(2px);
    transition: all 0.3s;
    margin-top: 15px;
}

/* ===== المان‌های فرم ===== */
#deliar-request-form .form-group {
    margin-bottom: 22px;
}
#deliar-request-form label {
    display: block;
    font-weight: 600;
    color: #1a4b62;
    margin-bottom: 6px;
    font-size: 15px;
}
#deliar-request-form label .required {
    color: #e74c3c;
    margin-right: 4px;
}
#deliar-request-form input,
#deliar-request-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2edf2;
    border-radius: 14px;
    font-size: 15px;
    font-family: 'Vazir', sans-serif;
    background: #fafdff;
    transition: all 0.3s;
    box-sizing: border-box;
}
#deliar-request-form input:focus,
#deliar-request-form textarea:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.15);
    outline: none;
    background: #fff;
}
#deliar-request-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== بخش کپچا ===== */
.captcha-group .captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #f0f8fc;
    padding: 10px 18px;
    border-radius: 16px;
    border: 2px dashed #8fc1d4;
}
#deliar-captcha-question {
    font-size: 22px;
    font-weight: 700;
    color: #0b3954;
    min-width: 110px;
    background: #fff;
    padding: 6px 18px;
    border-radius: 40px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.04);
    text-align: center;
}
#deliar-captcha {
    flex: 1;
    min-width: 120px;
    border-radius: 40px !important;
    border: 2px solid #cde1e8 !important;
    background: #fff !important;
}
#deliar-refresh-captcha {
    background: transparent;
    border: 2px solid #2ecc71;
    border-radius: 40px;
    color: #2ecc71;
    font-size: 22px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}
#deliar-refresh-captcha:hover {
    background: #2ecc71;
    color: #fff;
    transform: rotate(180deg);
}

/* ===== دکمه ثبت ===== */
#deliar-submit-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.35);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 160px;
}
#deliar-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.45);
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}
#deliar-submit-btn:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

/* ===== نمایش خطاها ===== */
.error-message {
    color: #e74c3c;
    font-size: 13px;
    display: block;
    margin-top: 5px;
    padding-right: 6px;
    font-weight: 500;
}
.error-message::before {
    content: "⚠️ ";
}

/* ===== پیام وضعیت فرم ===== */
#deliar-form-message {
    margin-top: 25px;
    padding: 14px 22px;
    border-radius: 16px;
    font-weight: 600;
    display: none;
}
#deliar-form-message.success {
    background: #e8f8ee;
    color: #1a6e3b;
    border-right: 8px solid #2ecc71;
    display: block;
}
#deliar-form-message.error {
    background: #fde8e8;
    color: #b03a2e;
    border-right: 8px solid #e74c3c;
    display: block;
}
.loading-spinner {
    display: inline-block;
    margin-right: 18px;
    color: #0b3954;
    font-weight: 500;
}
.loading-spinner::after {
    content: "...";
    animation: dots 1s steps(3, end) infinite;
}
@keyframes dots {
    0% { content: ""; }
    33% { content: "."; }
    66% { content: ".."; }
    100% { content: "..."; }
}

/* ============================================
   کارت‌های لیست درخواست‌ها (استایل درمانی)
   ============================================ */
.deliar-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.deliar-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px 22px;
    box-shadow: 0 8px 25px rgba(11, 57, 84, 0.07);
    border: 1px solid rgba(46, 204, 113, 0.08);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}
.deliar-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #2ecc71, #1a8a4a);
    border-radius: 24px 0 0 24px;
}
.deliar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(11, 57, 84, 0.12);
    border-color: #2ecc71;
}
.deliar-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eef6f9;
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.deliar-card .card-name {
    font-weight: 700;
    font-size: 18px;
    color: #0b3954;
}
.deliar-card .card-name::before {
    content: "👤 ";
    font-size: 20px;
}
.deliar-card .card-date {
    font-size: 13px;
    color: #7f9aa8;
    background: #eef6f9;
    padding: 3px 12px;
    border-radius: 30px;
    white-space: nowrap;
}
.deliar-card .card-body p {
    margin: 8px 0;
    font-size: 14.5px;
    color: #1f4052;
    display: flex;
    align-items: center;
    gap: 6px;
}
.deliar-card .card-body p strong {
    color: #0b3954;
    min-width: 70px;
    display: inline-block;
}
.deliar-card .card-body p:first-of-type strong::before {
    content: "📞 ";
}
.deliar-card .card-body p:nth-of-type(2) strong::before {
    content: "🩺 ";
}
.deliar-card .card-body p:nth-of-type(3) strong::before {
    content: "📝 ";
}
.deliar-card .card-actions {
    margin-top: 16px;
    text-align: left;
    border-top: 1px solid #eef6f9;
    padding-top: 14px;
}
.deliar-card .deliar-edit-btn {
    background: #eaf4f9;
    color: #0b3954;
    border: none;
    padding: 8px 22px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
}
.deliar-card .deliar-edit-btn:hover {
    background: #0b3954;
    color: #fff;
    box-shadow: 0 4px 12px rgba(11, 57, 84, 0.25);
}
.deliar-card .deliar-edit-btn::before {
    content: "✏️ ";
}

/* ===== پیام خالی بودن لیست ===== */
.deliar-no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 24px;
    color: #7f9aa8;
    font-size: 18px;
    border: 2px dashed #cde1e8;
}
.deliar-no-items::before {
    content: "📭 ";
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

/* ============================================
   مودال ویرایش (پزشکی و مدرن)
   ============================================ */
#deliar-edit-modal > div {
    background: #fff;
    border-radius: 32px;
    padding: 30px 35px;
    max-width: 550px;
    margin: 80px auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    border: 1px solid rgba(46, 204, 113, 0.15);
}
#deliar-edit-modal h2 {
    color: #0b3954;
    font-weight: 700;
    border-right: 6px solid #2ecc71;
    padding-right: 18px;
    margin-bottom: 25px;
}
#deliar-edit-modal .form-group {
    margin-bottom: 18px;
}
#deliar-edit-modal label {
    font-weight: 600;
    color: #1a4b62;
    display: block;
    margin-bottom: 4px;
}
#deliar-edit-modal input,
#deliar-edit-modal textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2edf2;
    border-radius: 14px;
    font-family: 'Vazir', sans-serif;
    background: #fafdff;
    transition: 0.3s;
    box-sizing: border-box;
}
#deliar-edit-modal input:focus,
#deliar-edit-modal textarea:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.12);
    outline: none;
}
#deliar-edit-modal .button-primary {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    color: #fff;
    transition: 0.3s;
    cursor: pointer;
}
#deliar-edit-modal .button-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.35);
}
#deliar-close-modal {
    background: #eaf4f9;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    color: #0b3954;
    cursor: pointer;
}
#deliar-close-modal:hover {
    background: #d4e4ec;
}
#edit-message {
    margin-top: 20px;
    padding: 10px 16px;
    border-radius: 14px;
}
#edit-message.success {
    background: #e8f8ee;
    color: #1a6e3b;
}
#edit-message.error {
    background: #fde8e8;
    color: #b03a2e;
}

/* ===== ریسپانسیو موبایل ===== */
@media (max-width: 768px) {
    .deliar-requests-wrap {
        padding: 15px;
    }
    .deliar-cards-wrapper {
        grid-template-columns: 1fr;
    }
    #deliar-request-form-container {
        padding: 20px 18px;
    }
    .captcha-group .captcha-box {
        flex-direction: column;
        align-items: stretch;
    }
    #deliar-captcha-question {
        text-align: center;
    }
    #deliar-edit-modal > div {
        margin: 40px 15px;
        padding: 20px;
    }
}