/* کلیت راست‌چین */
.acr-wrapper, .acr-container, .acr-step-box, .acr-form-grid, .acr-step-title { 
    direction: rtl; 
    text-align: right; 
    font-family: inherit;
}

/* کارت دوره: متن راست‌چین اجباری و غیرقابل انتخاب */
.acr-course-card { 
    direction: rtl; 
    text-align: right; 
    user-select: none; 
    -webkit-user-select: none; 
    -moz-user-select: none; 
    font-family: inherit;
}

/* اگر خواستی کارت‌ها کاملاً غیرفعال باشند (غیرقابل کلیک)، کلاس no-select pointer-events را غیرفعال می‌کند */
.acr-course-card.no-select { pointer-events: none; opacity: 1; }

/* هشدار نارنجی (non-blocking) */
.acr-warning-message {
    background: #ff9800;
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    margin-top: 8px;
    text-align: right;
    direction: rtl;
    font-size: 13px;
    font-family: inherit;
}

/* بقیه استایل‌ها */
.acr-step-disabled { opacity: 0.54; pointer-events: none; filter: grayscale(10%); }
.acr-wrapper { 
    box-sizing: border-box; 
    font-family: inherit;
    padding: 15px;
    font-size: 14px;
}
.acr-container { 
    max-width: 900px; 
    margin: 0 auto; 
    background: #fff; 
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden; 
    font-family: inherit;
}
.acr-header { 
    padding: 20px;
    color: #fff; 
    direction: rtl; 
    font-family: inherit;
}
.acr-header-inner { 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    gap:10px;
    text-align:center; 
    flex-wrap:wrap; 
}
.acr-header-logo img { max-height:56px; width:auto; display:block; }
.acr-header-title { 
    margin:0; 
    font-size:1.4rem;
    color:inherit; 
    font-family: inherit;
}
.acr-header-subtitle { 
    margin:3px 0 0 0;
    color:inherit; 
    font-size: 0.95rem;
    font-family: inherit;
}
.acr-step-box { 
    margin: 15px;
    padding: 15px;
    border-radius: 8px;
    background: #fafafa; 
    border: 1px solid #e6e6e6; 
    direction: rtl; 
    text-align: right; 
    font-family: inherit;
}
.acr-step-box.active { 
    border-color: #4CAF50; 
    box-shadow: 0 4px 15px rgba(76,175,80,0.08);
    background: #fff; 
}
.acr-step-title { 
    font-weight: bold; 
    color: #333; 
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    gap: 8px;
    direction: rtl; 
    text-align: right; 
    font-size: 15px;
    font-family: inherit;
}
.acr-step-number { 
    background: #4CAF50; 
    color: #fff; 
    width: 26px;
    height: 26px;
    border-radius: 50%; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: 8px;
    margin-left: 0; 
    font-size: 13px;
    font-family: inherit;
}

/* 🎨 استایل جدید برای کارت‌های دوره */
.acr-course-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.acr-course-card { 
    border: 2px solid #e0e0e0; 
    border-radius: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    cursor: pointer; 
    transition: all 0.3s ease; 
    min-height: 140px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.acr-course-card:hover { 
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #4CAF50;
}

.acr-course-card.selected { 
    border-color: #f44336; 
    background: linear-gradient(135deg, #fff8f8, #ffeaea);
    transform: scale(1.02);
}

.acr-course-card.selected::after { 
    content: "✓ انتخاب شد"; 
    position: absolute; 
    top: 10px;
    left: 10px;
    background: #f44336; 
    color: #fff; 
    padding: 4px 8px;
    border-radius: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 700; 
    font-size: 11px;
    z-index: 2;
}

/* 🎯 عنوان دوره بزرگتر و با کادر - سبز فیروزه */
.acr-course-title { 
    font-size: 16px;
    font-weight: 800; 
    margin-bottom: 12px;
    font-family: inherit;
    background: linear-gradient(135deg, #20c997, #00b4a0);
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #17a589;
    box-shadow: 0 3px 10px rgba(32, 201, 151, 0.3);
    position: relative;
}

/* 🎨 استایل‌های متفاوت برای هر بخش جزئیات */
.acr-course-detail { 
    font-size: 12px;
    margin-bottom: 8px;
    font-family: inherit;
    padding: 6px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* استایل اول: شهریه تکمیلی - آبی */
.acr-course-detail:nth-of-type(1) {
    background: linear-gradient(135deg, #20c997, #00b4a0);
    color: white;
    border-right: 3px solid #17a589;
    font-weight: 600;
}

/* استایل دوم: حداقل سن مجاز - نارنجی */
.acr-course-detail:nth-of-type(2) {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    border-right: 3px solid #dee2e6;
    font-weight: 600;
}

/* 🎨 استایل سوم: پیش‌نیاز - بنفش */
.acr-course-detail:nth-of-type(3) {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    color: #6c757d !important;
    border-right: 3px solid #dee2e6 !important;
    font-weight: 500 !important;
}

/* 🎨 استایل چهارم: مدت زمان دوره - آبی روشن */
.acr-course-detail:nth-of-type(4) {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    color: #6c757d !important;
    border-right: 3px solid #dee2e6 !important;
    font-weight: 500 !important;
}

/* 🎨 استایل پنجم: شروع دوره - سبز */
.acr-course-detail:nth-of-type(5) {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    color: #6c757d !important;
    border-right: 3px solid #dee2e6 !important;
    font-weight: 500 !important;
}

/* 🔹 آیکون‌های جدید برای تمام فیلدها */
.acr-course-detail:nth-of-type(1)::before {
    content: "💰"; /* آیکون برای شهریه تکمیلی */
    font-size: 14px;
    margin-left: 8px;
}

.acr-course-detail:nth-of-type(2)::before {
    content: "🎯"; /* آیکون برای حداقل سن */
    font-size: 14px;
    margin-left: 8px;
}

.acr-course-detail:nth-of-type(3)::before {
    content: "📋"; /* آیکون برای پیش‌نیاز */
    font-size: 14px;
    margin-left: 8px;
}

.acr-course-detail:nth-of-type(4)::before {
    content: "⏱️"; /* آیکون برای مدت زمان دوره */
    font-size: 14px;
    margin-left: 8px;
}

.acr-course-detail:nth-of-type(5)::before {
    content: "📅"; /* آیکون برای تاریخ شروع دوره */
    font-size: 14px;
    margin-left: 8px;
}

/* استایل‌های متفاوت برای کارت‌های مختلف */
.acr-course-card:nth-child(odd) {
    border-left: 4px solid #20c997;
}

.acr-course-card:nth-child(even) {
    border-left: 4px solid #20c997;
}

.acr-course-card:nth-child(3n) {
    border-left: 4px solid #20c997;
}

.acr-course-card:nth-child(4n) {
    border-left: 4px solid #20c997;
}

/* 🖥️ استایل جدید برای کامپیوترها */
.acr-computer-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 20px;
    direction: rtl; 
    text-align: center;
}

.acr-computer-seat { 
    padding: 15px 10px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    cursor: pointer; 
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.acr-computer-seat::before {
    content: '💻';
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.acr-computer-seat:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

.acr-computer-seat.occupied { 
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    cursor: not-allowed;
    border-color: #f1b0b7;
}

.acr-computer-seat.occupied::before {
    content: '❌';
}

.acr-computer-seat.occupied:hover {
    transform: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-color: #f1b0b7;
}

.acr-computer-seat.selected { 
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #3d8b40;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.acr-computer-seat.selected::before {
    content: '✅';
}

/* افکت برای کامپیوترهای انتخاب شده */
.acr-computer-seat.selected::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #4CAF50;
    border-radius: 14px;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { border-color: #4CAF50; }
    50% { border-color: #8BC34A; }
    100% { border-color: #4CAF50; }
}

/* استایل‌های مختلف برای کامپیوترهای فرد و زوج */
.acr-computer-seat:nth-child(odd) {
    border-left: 3px solid #667eea;
}

.acr-computer-seat:nth-child(even) {
    border-left: 3px solid #ff6b6b;
}

.acr-computer-seat:nth-child(3n) {
    border-left: 3px solid #20c997;
}

.acr-computer-seat:nth-child(4n) {
    border-left: 3px solid #ffa502;
}

/* استایل‌های عمومی */
.acr-btn { 
    padding: 8px 16px;
    border-radius: 6px;
    background: #4CAF50; 
    color: #fff; 
    border: none; 
    cursor: pointer; 
    font-weight: 700; 
    font-size: 13px;
    font-family: inherit;
}
.acr-btn:disabled { background: #ccc; cursor: not-allowed; }
.acr-hidden { display: none; }
.acr-error-message { 
    background: #f44336; 
    color: #fff; 
    padding: 10px;
    border-radius: 6px; 
    margin-top: 10px; 
    text-align: right; 
    direction: rtl; 
    font-size: 13px;
    font-family: inherit;
}
.acr-success-message { 
    background: #4CAF50; 
    color: #fff; 
    padding: 15px;
    border-radius: 8px; 
    text-align: right; 
    direction: rtl; 
    font-size: 14px;
    font-family: inherit;
}
.acr-form-grid { 
    display: grid; 
    gap: 8px;
    direction: rtl; 
    text-align: right; 
}
.acr-form-grid input, .acr-form-grid textarea, .acr-form-grid select { 
    width: 100%; 
    box-sizing: border-box; 
    padding: 7px;
    border: 1px solid #ddd; 
    border-radius: 5px;
    direction: rtl; 
    text-align: right; 
    font-size: 13px;
    font-family: inherit;
}

/* 💰 استایل بخش پرداخت */
.acr-payment-section { 
    text-align: center !important; 
    margin-top: 25px;
}

.acr-payment-amount { 
    margin-bottom: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* مبلغ سبز رنگ */
.acr-payment-amount span {
    color: #28a745;
    font-weight: 700;
    font-size: 18px;
    background: linear-gradient(135deg, #f0fff4, #d4edda);
    padding: 4px 12px;
    border-radius: 8px;
    border: 2px solid #c3e6cb;
    display: inline-block;
    margin: 0 5px;
}

.acr-btn-payment { 
    background: #28a745; 
    color: #fff; 
    border: none; 
    padding: 12px 30px;
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 700; 
    transition: all 0.3s ease; 
    font-size: 16px;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    margin-top: 15px;
}

.acr-btn-payment:hover, .acr-btn-payment:focus { 
    background: #218838; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    outline: none; 
}

.acr-btn-payment:disabled { 
    background: #6c757d; 
    cursor: not-allowed; 
    transform: none;
    box-shadow: none;
}

/* 👥 متن ظرفیت باقی‌مانده - مرکز و زیبا */
.acr-capacity-display { 
    margin: 20px auto;
    direction: rtl; 
    text-align: center; 
    font-size: 18px;
    font-family: inherit;
    color: #2c5530;
    font-weight: 700;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* عدد ظرفیت */
.acr-capacity-display span {
    color: #e53e3e;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    padding: 4px 12px;
    border-radius: 8px;
    border: 2px solid #fc8181;
    margin: 0 6px;
    display: inline-block;
}

/* انیمیشن پالس */
@keyframes pulse-glow {
    0% { box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 5px 25px rgba(255, 107, 107, 0.5); }
    100% { box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3); }
}

.acr-capacity-display {
    animation: pulse-glow 2s infinite;
}

/* 📱 ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .acr-computer-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 10px;
    }
    
    .acr-computer-seat {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .acr-computer-seat::before {
        font-size: 16px;
    }
    
    .acr-header { padding: 15px; }
    .acr-course-grid { 
        grid-template-columns: 1fr;
    }
    .acr-step-title { font-size: 14px; }
    .acr-wrapper { padding: 10px; }
    .acr-step-box { margin: 10px; padding: 12px; }
    .acr-course-title {
        font-size: 15px;
        padding: 8px 10px;
    }
    .acr-capacity-display {
        width: 90%;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .acr-computer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .acr-warning-message {
        font-size: 12px;
        padding: 8px;
    }
    
    .acr-capacity-display {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .acr-capacity-display span {
        font-size: 20px;
        padding: 4px 10px;
    }
}
/* استایل برای کامپیوترهای اشغال شده */
.acr-computer-seat.occupied {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    cursor: not-allowed;
    border-color: #f1b0b7;
    opacity: 0.7;
}

.acr-computer-seat.occupied::before {
    content: '❌';
}

.acr-computer-seat.occupied:hover {
    transform: none;
    box-shadow: none;
    border-color: #f1b0b7;
}

/* استایل برای ظرفیت صفر */
.acr-capacity-display.zero-capacity {
    color: #f44336 !important;
    font-weight: bold !important;
    animation: pulse-alert 2s infinite;
}

@keyframes pulse-alert {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}
/* استایل برای ظرفیت صفر در دوره */
.acr-capacity-display.zero-capacity {
    color: #f44336 !important;
    font-weight: bold !important;
    animation: pulse-alert 2s infinite;
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #fc8181;
}

@keyframes pulse-alert {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* استایل برای کامپیوترهای اشغال شده در دوره */
.acr-computer-seat.occupied {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    cursor: not-allowed;
    border-color: #f1b0b7;
    opacity: 0.7;
}

.acr-computer-seat.occupied::before {
    content: '❌';
}

/* استایل برای کامپیوترهای آزاد در دوره */
.acr-computer-seat:not(.occupied):hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

/* 🔹 استایل‌های پاپ آپ جزئیات دوره */

/* انیمیشن نمایش پاپ آپ */
@keyframes acrPopupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.acr-popup-overlay[style*="display: flex"] .acr-popup-content {
    animation: acrPopupFadeIn 0.3s ease-out;
}

/* 🔹 استایل برای بخش توضیحات کامل در پاپ‌آپ - نسخه نهایی */
#acr-popup-course-description {
    font-size: 14px;
    line-height: 1.8; /* فاصله بین خطوط */
    max-height: 400px;
    overflow-y: auto;
    text-align: justify; /* تراز دوطرفه */
    font-weight: bold; /* ضخیم کردن فونت */
    direction: rtl; /* راست به چپ */
    word-spacing: 1px; /* فاصله بین کلمات */
    letter-spacing: 0.2px; /* فاصله بین حروف */
    margin-bottom: 15px; /* فاصله از پایین */
}

/* فاصله بین پاراگراف‌ها */
#acr-popup-course-description p {
    margin-bottom: 12px; /* فاصله بین پاراگراف‌ها */
    line-height: 1.8; /* فاصله بین خطوط در پاراگراف */
}

/* 🔹 استایل برای عنوان بخش توضیحات کامل - نسخه نهایی */
#acr-long-description-section h3 {
    font-weight: bold; /* ضخیم کردن عنوان */
    text-align: right; /* تراز راست برای عنوان */
    direction: rtl; /* راست به چپ */
    margin-bottom: 15px; /* فاصله از پایین */
    line-height: 1.6; /* فاصله بین خطوط */
}

#acr-popup-course-description h4 {
    color: #2c5530;
    margin: 18px 0 10px 0; /* فاصله بیشتر بالا و پایین */
    border-right: 3px solid #4CAF50;
    padding-right: 10px;
    text-align: right; /* تراز راست برای عناوین داخلی */
    font-weight: bold; /* ضخیم کردن عناوین داخلی */
    direction: rtl; /* راست به چپ */
    line-height: 1.6; /* فاصله بین خطوط */
}

#acr-popup-course-description ul, 
#acr-popup-course-description ol {
    margin-right: 20px;
    margin-bottom: 18px; /* فاصله بیشتر از پایین */
    text-align: right; /* تراز راست برای لیست‌ها */
    direction: rtl; /* راست به چپ */
    line-height: 1.8; /* فاصله بین خطوط */
}

#acr-popup-course-description li {
    margin-bottom: 10px; /* فاصله بیشتر بین آیتم‌های لیست */
    position: relative;
    padding-right: 15px;
    text-align: justify; /* تراز دوطرفه برای آیتم‌های لیست */
    direction: rtl; /* راست به چپ */
    line-height: 1.7; /* فاصله بین خطوط */
}

#acr-popup-course-description li:before {
    content: "•";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    right: 0;
    margin-top: 2px; /* تنظیم موقعیت بولت */
}

/* فاصله بین بخش‌های مختلف */
#acr-popup-course-description br {
    margin-bottom: 8px; /* فاصله بین خطوط با تگ br */
    display: block;
    content: "";
}

/* استایل برای متن‌های طولانی */
#acr-popup-course-description .text-block {
    margin-bottom: 12px; /* فاصله بین بلوک‌های متن */
    line-height: 1.8; /* فاصله بین خطوط */
}

/* اسکرول بار زیبا برای توضیحات طولانی */
#acr-popup-course-description::-webkit-scrollbar {
    width: 8px;
}

#acr-popup-course-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#acr-popup-course-description::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#acr-popup-course-description::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* استایل‌های responsive برای موبایل */
@media (max-width: 768px) {
    .acr-popup-content {
        width: 95% !important;
        margin: 20px;
        padding: 20px !important;
    }
    
    .acr-course-details-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .acr-popup-footer {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .acr-popup-select-btn,
    .acr-popup-close-btn {
        width: 100% !important;
        margin: 5px 0 !important;
    }
    
    #acr-popup-course-description {
        max-height: 300px;
        font-size: 13px;
        text-align: justify; /* حفظ تراز دوطرفه در موبایل */
        font-weight: bold; /* حفظ ضخامت فونت در موبایل */
        direction: rtl; /* راست به چپ */
        line-height: 2; /* فاصله بیشتر بین خطوط در موبایل */
        word-spacing: 0.5px; /* فاصله کمتر بین کلمات در موبایل */
        letter-spacing: 0.1px; /* فاصله کمتر بین حروف در موبایل */
    }

    #acr-popup-course-description p {
        margin-bottom: 14px; /* فاصله بیشتر بین پاراگراف‌ها در موبایل */
        line-height: 2; /* فاصله بیشتر بین خطوط در موبایل */
    }

    #acr-long-description-section h3 {
        text-align: right; /* حفظ تراز راست در موبایل */
        font-weight: bold; /* حفظ ضخامت فونت در موبایل */
        direction: rtl; /* راست به چپ */
        line-height: 2; /* فاصله بین خطوط */
        margin-bottom: 12px; /* فاصله از پایین */
    }

    #acr-popup-course-description h4 {
        margin: 16px 0 8px 0; /* فاصله در موبایل */
        line-height: 2; /* فاصله بین خطوط */
    }

    #acr-popup-course-description ul, 
    #acr-popup-course-description ol {
        margin-bottom: 16px; /* فاصله در موبایل */
        line-height: 2; /* فاصله بیشتر بین خطوط */
    }

    #acr-popup-course-description li {
        margin-bottom: 8px; /* فاصله در موبایل */
        line-height: 2; /* فاصله بین خطوط */
    }
}

/* استایل برای موبایل‌های کوچک‌تر */
@media (max-width: 480px) {
    #acr-popup-course-description {
        line-height: 3.0; /* فاصله بیشتر بین خطوط در موبایل‌های کوچک */
        font-size: 12px; /* فونت کوچک‌تر */
        text-align: justify; /* تضمین تراز دوطرفه */
        word-spacing: 0.3px; /* فاصله کمتر بین کلمات */
    }

    #acr-popup-course-description p {
        line-height: 3.0; /* فاصله بیشتر بین خطوط */
        margin-bottom: 16px; /* فاصله بیشتر بین پاراگراف‌ها */
    }

    #acr-popup-course-description li {
        line-height: 2; /* فاصله بیشتر بین خطوط */
        margin-bottom: 10px; /* فاصله بیشتر بین آیتم‌ها */
    }
}

/* استایل دکمه جزئیات در کارت دوره */
.acr-course-details-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea) !important;
}

/* استایل برای کارت‌های دوره با دکمه جزئیات */
.acr-course-card {
    position: relative;
}

/* بهبود ظاهر کارت‌ها وقتی دکمه جزئیات اضافه شد */
.acr-course-card .acr-course-details-btn {
    transition: all 0.3s ease !important;
}

/* استایل برای نمایش بهتر جزئیات در پاپ آپ */
.detail-item {
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* استایل‌های زیبا برای بخش‌های مختلف پاپ آپ */
.detail-section h3 {
    transition: all 0.3s ease;
}

.detail-section:hover h3 {
    color: #4CAF50 !important;
}

/* 🔹 استایل برای فیلدهای جدید */
.acr-course-detail:nth-of-type(4) {
    background: linear-gradient(135deg, #e9d8fd, #d6bcfa);
    color: #553c9a;
    border-right: 3px solid #9f7aea;
    font-weight: 600;
}

.acr-course-detail:nth-of-type(5) {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #c53030;
    border-right: 3px solid #fc8181;
    font-weight: 600;
}

/* 🔹 آیکون‌های جدید برای تمام فیلدها - به روز شده */
.acr-course-detail:nth-of-type(1)::before {
    content: "💰"; /* آیکون برای شهریه تکمیلی */
    font-size: 14px;
    margin-left: 8px;
}

.acr-course-detail:nth-of-type(2)::before {
    content: "🎯"; /* آیکون برای حداقل سن */
    font-size: 14px;
    margin-left: 8px;
}

.acr-course-detail:nth-of-type(3)::before {
    content: "📋"; /* آیکون برای پیش‌نیاز */
    font-size: 14px;
    margin-left: 8px;
}

.acr-course-detail:nth-of-type(4)::before {
    content: "⏱️"; /* آیکون برای مدت زمان دوره */
    font-size: 14px;
    margin-left: 8px;
}

.acr-course-detail:nth-of-type(5)::before {
    content: "📅"; /* آیکون برای تاریخ شروع دوره */
    font-size: 14px;
    margin-left: 8px;
}

/* استایل برای مقادیر فیلدهای جدید */
.acr-course-detail:nth-of-type(4) span,
.acr-course-detail:nth-of-type(5) span {
    color: #2d3748;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 8px;
    border-radius: 6px;
    margin-right: 5px;
}
@media print {
    @page {
        size: A4;
        margin: 20mm;
    }
    
    body {
        font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
        direction: rtl;
        text-align: right;
        line-height: 2;
        font-size: 14pt;
        background: white;
        color: black;
    }
    
    .no-print {
        display: none !important;
    }
    
    .contract-page-break {
        page-break-before: always;
    }
    
    h1, h2, h3 {
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: none !important;
    }
    
    .signature-area {
        margin-top: 50mm;
    }
}
/* استایل دکمه‌ها */
#acr-cancel-edit {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

#acr-cancel-edit:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#acr-clear-form {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    border: none;
    transition: all 0.3s ease;
}

#acr-clear-form:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#form-submit-btn {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

#form-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

#form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.acr-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ================================
   Course Card – Premium UI
================================ */

/* گرید سه ستونه عریض‌تر */
.acr-course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* کارت دوره */
.acr-course-card {
    background: linear-gradient(180deg, #ffffff, #fafafa);
    border-radius: 18px;
    padding: 18px 18px 20px;
    border: 1px solid #eaeaea;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    height: 100%;
}

/* نوار تزئینی سمت راست */
.acr-course-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #4CAF50, #2e7d32);
    opacity: 0.85;
}

/* Hover کارت */
.acr-course-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* عنوان دوره */
.acr-course-title {
    font-size: 16px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.6;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e5e7eb;
}

/* جزئیات دوره */
.acr-course-detail {
    background: #f8fafc;
    border-radius: 10px;
    padding: 9px 12px;
    margin-top: 8px;
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
    border-right: 3px solid #e5e7eb;
    transition: all 0.25s ease;
}

/* Hover روی آیتم‌ها */
.acr-course-card:hover .acr-course-detail {
    background: #ffffff;
}

/* شهریه */
.acr-course-detail:nth-of-type(2) {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
    border-right-color: #10b981;
    font-weight: 700;
}

/* حداقل سن */
.acr-course-detail:nth-of-type(3) {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    border-right-color: #3b82f6;
}

/* پیش‌نیاز */
.acr-course-detail:nth-of-type(4) {
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    color: #9a3412;
    border-right-color: #fb923c;
}

/* مدت زمان */
.acr-course-detail:nth-of-type(5) {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #6b21a8;
    border-right-color: #a855f7;
}

/* تاریخ شروع */
.acr-course-detail:nth-of-type(6) {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #991b1b;
    border-right-color: #ef4444;
}

/* کارت انتخاب‌شده */
.acr-course-card.active {
    border-color: #4CAF50;
    box-shadow:
        0 0 0 2px rgba(76, 175, 80, 0.25),
        0 18px 40px rgba(0, 0, 0, 0.14);
}

/* موبایل */
@media (max-width: 768px) {
    .acr-course-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .acr-course-title {
        font-size: 15px;
    }

    .acr-course-detail {
        font-size: 13px;
    }
}
