/**
 * استایل‌های افزونه مدیریت INR
 * نسخه: 3.0
 */

/* =============================================================================
   متغیرهای رنگ
   ============================================================================= */
:root {
    --inr-primary: #0073aa;
    --inr-primary-dark: #005177;
    --inr-success: #28a745;
    --inr-success-dark: #1e7e34;
    --inr-warning: #ffc107;
    --inr-warning-dark: #e0a800;
    --inr-danger: #dc3545;
    --inr-danger-dark: #c82333;
    --inr-info: #17a2b8;
    --inr-light: #f8f9fa;
    --inr-dark: #343a40;
    --inr-border: #dee2e6;
    --inr-shadow: rgba(0, 0, 0, 0.1);
    --inr-radius: 12px;
    --inr-radius-sm: 8px;
    --inr-transition: all 0.3s ease;
}

/* =============================================================================
   پیام‌ها
   ============================================================================= */
.inr-msg {
    padding: 16px 20px;
    margin: 15px 0;
    border-radius: var(--inr-radius-sm);
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.6;
    direction: rtl;
}

.inr-msg.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #b1dfbb;
}

.inr-msg.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f1b0b7;
}

.inr-msg.warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffc107;
}

.inr-msg.info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #b8daff;
}
.inr-remaining-forms {
    font-size: 16px;
    margin-bottom: 10px;
    color: #155724;
    background: #d4edda;
    padding: 10px;
    border-radius: 6px;
}

/* =============================================================================
   رپر تک گزارش
   ============================================================================= */
.inr-wrapper {
    max-width: 80%;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: var(--inr-radius);
    box-shadow: 0 5px 30px var(--inr-shadow);
    direction: rtl;
    font-size: 16px;
    line-height: 1.8;
}

.inr-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--inr-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.inr-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--inr-border);
}

/* =============================================================================
   فیلدهای گزارش
   ============================================================================= */
.inr-field {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    transition: var(--inr-transition);
}

.inr-field:hover {
    background: #fafafa;
}

.inr-field:last-child {
    border-bottom: none;
}

.inr-field strong {
    font-weight: 700;
    color: var(--inr-dark);
    min-width: 150px;
}

.inr-field.field-3,
.inr-field.field-18 {
    display: flex;
    gap: 10px;
}

/* =============================================================================
   باکس‌های وضعیت
   ============================================================================= */
.doctor-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 25px;
    border-radius: var(--inr-radius);
    border: 2px solid #2196F3;
    color: #1565c0;
    line-height: 2;
    margin-top: 20px;
    font-size: 15px;
}

.waiting-box {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    padding: 25px;
    border-radius: var(--inr-radius);
    text-align: center;
    color: #e65100;
    border: 2px dashed #FF9800;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
}

.next-test-box {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 20px;
    border-radius: var(--inr-radius);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #2e7d32;
    border: 2px solid #4CAF50;
    margin-top: 20px;
}

/* =============================================================================
   عنوان بخش دکتر
   ============================================================================= */
.doctor-title {
    margin-top: 35px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--inr-primary);
    color: var(--inr-primary);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =============================================================================
   فرم دکتر
   ============================================================================= */

.doctor-form {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: var(--inr-radius);
    margin-top: 25px;
    border: 2px solid var(--inr-border);
}

.doctor-form-group {
    margin-bottom: 25px;
}

.doctor-form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--inr-dark);
    font-size: 16px;
}

.doctor-form textarea {
    width: 100%;
    min-height: 200px;
    padding: 18px;
    font-size: 15px;
    border-radius: var(--inr-radius-sm);
    border: 2px solid var(--inr-border);
    resize: vertical;
    transition: var(--inr-transition);
    font-family: inherit;
    line-height: 1.8;
}

.doctor-form textarea:focus {
    border-color: var(--inr-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
}

.next-test-input {
    width: 100%;
    padding: 18px;
    border: 2px solid var(--inr-border);
    border-radius: var(--inr-radius-sm);
    font-size: 18px;
    text-align: center;
    transition: var(--inr-transition);
    font-family: inherit;
}

.next-test-input:focus {
    border-color: var(--inr-success);
    outline: none;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

/* =============================================================================
   دکمه‌ها
   ============================================================================= */
.btn-main {
    background: linear-gradient(135deg, var(--inr-primary), var(--inr-primary-dark));
    color: #fff !important;
    padding: 14px 28px;
    border-radius: var(--inr-radius-sm);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    font-weight: 600;
    font-size: 15px;
    transition: var(--inr-transition);
    border: none;
    cursor: pointer;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.35);
    color: #fff !important;
}

.btn-save {
    background: linear-gradient(135deg, var(--inr-success), var(--inr-success-dark));
    border: none;
    color: #fff;
    padding: 16px 45px;
    border-radius: var(--inr-radius-sm);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--inr-transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.text-center {
    text-align: center;
}

/* =============================================================================
   جدول گزارشات
   ============================================================================= */
.inr-reports-table,
.inr-doctor-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    border-radius: var(--inr-radius);
    overflow: hidden;
    box-shadow: 0 3px 15px var(--inr-shadow);
}

.inr-reports-table thead,
.inr-doctor-table thead {
    background: linear-gradient(135deg, var(--inr-primary), var(--inr-primary-dark));
}

.inr-reports-table th,
.inr-doctor-table th {
    color: #fff;
    padding: 16px 12px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.inr-reports-table td,
.inr-doctor-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    font-size: 14px;
}

.inr-reports-table tbody tr:hover,
.inr-doctor-table tbody tr:hover {
    background: #f8f9fa;
}

.inr-reports-table tbody tr:last-child td,
.inr-doctor-table tbody tr:last-child td {
    border-bottom: none;
}

/* دکمه وضعیت */
.status-btn {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none !important;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    transition: var(--inr-transition);
}

.status-btn.waiting {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: #fff !important;
}

.status-btn.answered {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: #fff !important;
}

.status-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.waiting {
    color: #856404;
    font-weight: 600;
}

.view-link {
    color: var(--inr-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--inr-transition);
}

.view-link:hover {
    color: var(--inr-primary-dark);
    text-decoration: underline;
}

/* =============================================================================
   پکیج‌ها
   ============================================================================= */
.inr-packages-wrapper,
.inr-packages-wrapper-account {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px 0;
}

.inr-package-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 2px solid #eee;
    transition: var(--inr-transition);
    overflow: hidden;
}

.inr-package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2196F3, #03A9F4);
}

.inr-package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.inr-package-card.featured {
    border-color: #4CAF50;
    transform: scale(1.02);
}
.inr-package-card.pack1 {
	border-color: #08a6f4 !important;
}

.inr-package-card.featured::before {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.inr-package-card.featured:hover {
    transform: scale(1.02) translateY(-10px);
}

.package-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 8px 45px;
    font-size: 12px;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.package-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px dashed #eee;
    margin-bottom: 20px;
}

.package-header h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: var(--inr-dark);
    font-weight: 700;
}

.package-price {
    font-size: 36px;
    font-weight: 800;
    color: #2196F3;
    line-height: 1;
}

.package-price span {
    font-size: 16px;
    font-weight: 400;
    color: #888;
}

.inr-package-card.featured .package-price {
    color: #4CAF50;
}

.package-discount {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    display: inline-block;
}

.package-features {
    margin-bottom: 25px;
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.package-features li:last-child {
    border-bottom: none;
}

/* دکمه خرید پکیج */
.inr-buy-button,
.btn-buy-package {
    display: block;
    text-align: center;
    padding: 16px 25px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white !important;
    text-decoration: none !important;
    border-radius: var(--inr-radius);
    font-weight: 700;
    font-size: 16px;
    transition: var(--inr-transition);
    border: none;
    cursor: pointer;
}

.inr-buy-button:hover,
.btn-buy-package:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
    color: white !important;
}

.inr-buy-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.inr-package-card.featured .inr-buy-button,
.btn-buy-package.featured {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}

.inr-package-card.featured .inr-buy-button:hover,
.btn-buy-package.featured:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* =============================================================================
   عدم اشتراک
   ============================================================================= */
.inr-no-subscription {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(145deg, #fff5f5, #fff);
    border-radius: 25px;
    border: 3px dashed #e74c3c;
    margin: 25px 0;
}

.no-sub-icon {
    /*font-size: 80px;*/
    margin-bottom: 25px;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.inr-no-subscription h3 {
    color: #e74c3c;
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 700;
}

.inr-no-subscription p {
    color: #666;
    font-size: 17px;
    margin-bottom: 35px;
    line-height: 1.8;
}

.no-sub-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white !important;
    text-decoration: none !important;
    border-radius: var(--inr-radius);
    font-weight: 700;
    transition: var(--inr-transition);
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.btn-buy:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
    color: white !important;
}

.btn-buy.featured {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.btn-buy.featured:hover {
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.4);
}
 .no-sub-icon img.emoji {

	width: 30px !important;
	height: 30px !important;
}
/* =============================================================================
   وضعیت پکیج
   ============================================================================= */
.inr-package-status {
    text-align: center;
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 35px;
}

.inr-package-status.inactive {
    background: linear-gradient(145deg, #fff3e0, #fff);
    border: 2px solid #FF9800;
}

.inr-package-status.active {
    background: linear-gradient(145deg, #e8f5e9, #fff);
    border: 2px solid #4CAF50;
}

.status-icon {
    /*font-size: 60px;*/
    margin-bottom: 20px;
}

.inr-package-status h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
}

.inr-package-status.inactive h3 {
    color: #E65100;
}

.inr-package-status.active h3 {
    color: #2E7D32;
}

.inr-package-status p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* =============================================================================
   لیست گزارشات بیمار
   ============================================================================= */
.inr-report-list-wrapper {
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    padding: 20px 0;
}

.inr-report-list-wrapper h2 {
    color: var(--inr-primary);
    margin-bottom: 25px;
    font-size: 22px;
    border-bottom: 3px solid var(--inr-primary);
    padding-bottom: 15px;
}

.no-report {
    text-align: center;
    padding: 40px;
    background: #fff3e0;
    border-radius: var(--inr-radius);
    color: #856404;
    font-size: 16px;
}

.note {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* =============================================================================
   لودینگ
   ============================================================================= */
#inr-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#inr-loading .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--inr-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================================================
   ریسپانسیو
   ============================================================================= */
@media (max-width: 768px) {
    .inr-wrapper {
        margin: 15px;
        padding: 20px;
    }
    
    .inr-title {
        font-size: 20px;
    }
    
    .inr-field {
        flex-direction: column;
        gap: 5px;
    }
    
    .inr-field strong {
        min-width: auto;
    }
    
    .doctor-form {
        padding: 20px;
    }
    
    .doctor-form textarea {
        min-height: 150px;
    }
    
    .btn-save {
        width: 100%;
        padding: 14px 20px;
    }
    
    .inr-reports-table,
    .inr-doctor-table {
        font-size: 12px;
    }
    
    .inr-reports-table th,
    .inr-reports-table td,
    .inr-doctor-table th,
    .inr-doctor-table td {
        padding: 10px 6px;
    }
    
    .status-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .inr-packages-wrapper,
    .inr-packages-wrapper-account {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }
    
    .inr-package-card {
        width: 100%;
        max-width: 340px;
    }

    .inr-package-card.featured {
        transform: none;
    }
    
    .inr-package-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .package-badge {
        top: 10px;
        right: -40px;
        font-size: 10px;
        padding: 6px 40px;
    }
    
    .no-sub-buttons {
        flex-direction: column;
    }
    
    .btn-buy {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .inr-no-subscription {
        padding: 40px 25px;
    }
    
  
    
    .inr-no-subscription h3 {
        font-size: 22px;
    }
}

/* =============================================================================
   رنگ‌بندی INR
   ============================================================================= */
.inr-value-normal {
    color: #155724;
    font-weight: 700;
}

.inr-value-high {
    color: #d63384;
    font-weight: 700;
}

.inr-value-low {
    color: #fd7e14;
    font-weight: 700;
}

/* =============================================================================
   انیمیشن‌ها
   ============================================================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.inr-wrapper,
.inr-package-card {
    animation: fadeIn 0.5s ease;
}

/* =============================================================================
   پرینت
   ============================================================================= */
@media print {
    .btn-main,
    .btn-save,
    .doctor-form,
    .inr-buy-button,
    .no-sub-buttons {
        display: none !important;
    }
    
    .inr-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


/* =============================================================================
   صفحه تک گزارش - Single Report
   ============================================================================= */

/* رپر اصلی */
.inr-wrapper {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
    direction: rtl;
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.9;
    position: relative;
    overflow: hidden;
}

.inr-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, #0073aa, #00a0d2, #0073aa);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* عنوان اصلی */
.inr-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1a365d;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
}

.inr-title::before {
    content: '';
    width: 5px;
    height: 30px;
    background: linear-gradient(180deg, #0073aa, #00a0d2);
    border-radius: 3px;
}

/* زیرعنوان */
.inr-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border-right: 4px solid #0073aa;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.inr-subtitle span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =============================================================================
   فیلدهای گزارش
   ============================================================================= */
.inr-fields-container {
    background: #fafbfc;
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 30px;
}

.inr-field {
    padding: 16px 20px;
    background: #ffffff;
    margin-bottom: 8px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.inr-field:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transform: translateX(-3px);
}

.inr-field:last-child {
    margin-bottom: 0;
}

.inr-field strong {
    font-weight: 700;
    color: #334155;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.inr-field strong::before {
    content: '◆';
    color: #0073aa;
    font-size: 8px;
}

.inr-field-value {
    flex: 1;
    color: #475569;
}

/* فیلدهای خاص */
.inr-field.field-inr {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
}

.inr-field.field-inr strong {
    color: #92400e;
}

.inr-field.field-inr .inr-field-value {
    font-size: 24px;
    font-weight: 800;
    color: #b45309;
}

/* =============================================================================
   پیام‌ها
   ============================================================================= */
.inr-msg {
    padding: 18px 24px;
    margin: 20px 0;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.inr-msg.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 2px solid #34d399;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.2);
}

.inr-msg.error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 2px solid #f87171;
    box-shadow: 0 4px 15px rgba(248, 113, 113, 0.2);
}

.inr-msg.warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

.inr-msg.info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 2px solid #60a5fa;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.2);
}

/* =============================================================================
   عنوان بخش دکتر
   ============================================================================= */
.doctor-title {
    margin-top: 40px;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.3);
}

.doctor-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), transparent);
    margin-right: 15px;
}

/* =============================================================================
   باکس پاسخ دکتر
   ============================================================================= */
.doctor-box {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    padding: 30px;
    border-radius: 18px;
    border: 2px solid #34d399;
    color: #065f46;
    line-height: 2.2;
    margin-top: 20px;
    font-size: 15px;
    position: relative;
    box-shadow: 0 8px 30px rgba(52, 211, 153, 0.15);
}

.doctor-box::before {
    content: '✓ پاسخ پزشک';
    position: absolute;
    top: -12px;
    right: 25px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.doctor-box p {
    margin: 0 0 15px 0;
}

.doctor-box p:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   باکس انتظار
   ============================================================================= */
.waiting-box {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    padding: 40px 30px;
    border-radius: 18px;
    text-align: center;
    color: #b45309;
    border: 2px dashed #f59e0b;
    margin-top: 20px;
    font-size: 17px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.waiting-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(251, 191, 36, 0.1) 50%,
        transparent 70%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.waiting-box .waiting-icon {
    font-size: 50px;
    display: block;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* =============================================================================
   باکس تاریخ آزمایش بعدی
   ============================================================================= */
.next-test-box {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    padding: 25px 30px;
    border-radius: 18px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #5b21b6;
    border: 2px solid #8b5cf6;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.next-test-box .next-test-icon {
    font-size: 35px;
}

.next-test-box .next-test-label {
    font-size: 14px;
    font-weight: 500;
    color: #7c3aed;
    display: block;
    margin-bottom: 5px;
}

.next-test-box .next-test-date {
    font-size: 22px;
    font-weight: 800;
}

/* =============================================================================
   فرم دکتر
   ============================================================================= */
.doctor-form {
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    padding: 35px;
    border-radius: 20px;
    margin-top: 25px;
    border: 2px solid #cbd5e1;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
}

.doctor-form-group {
    margin-bottom: 28px;
}

.doctor-form-group:last-of-type {
    margin-bottom: 0;
}

.doctor-form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doctor-form-group label .required {
    color: #ef4444;
}

.doctor-form textarea {
    width: 100%;
    min-height: 220px;
    padding: 20px;
    font-size: 15px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 2;
    background: #ffffff;
}

.doctor-form textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
}

.doctor-form textarea::placeholder {
    color: #94a3b8;
}

.next-test-input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #ffffff;
    font-weight: 600;
}

.next-test-input:focus {
    border-color: #8b5cf6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.next-test-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* =============================================================================
   دکمه‌ها
   ============================================================================= */
.btn-main {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #ffffff !important;
    padding: 14px 30px;
    border-radius: 12px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.4);
    color: #ffffff !important;
    background: linear-gradient(135deg, #005a87, #004165);
}

.btn-save {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #ffffff;
    padding: 18px 50px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    margin-top: 20px;
}

.btn-save:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-save:active {
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
}

/* دکمه بازگشت */
.btn-back {
    background: linear-gradient(135deg, #64748b, #475569);
    color: #ffffff !important;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 116, 139, 0.3);
}

/* =============================================================================
   دکمه‌های اکشن
   ============================================================================= */
.inr-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 14px;
}

/* =============================================================================
   اطلاعات بیمار - هدر
   ============================================================================= */
.patient-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid #bfdbfe;
}

.patient-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.patient-details h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #1e40af;
}

.patient-details p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* =============================================================================
   جدول خلاصه
   ============================================================================= */
.inr-summary-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.summary-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.summary-item:hover {
    border-color: #0073aa;
    box-shadow: 0 5px 20px rgba(0, 115, 170, 0.1);
}

.summary-item .summary-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.summary-item .summary-value {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
}

.summary-item.inr-value .summary-value {
    color: #b45309;
}

.summary-item.status-waiting .summary-value {
    color: #f59e0b;
}

.summary-item.status-answered .summary-value {
    color: #10b981;
}

/* =============================================================================
   تایم‌لاین
   ============================================================================= */
.inr-timeline {
    position: relative;
    padding-right: 30px;
    margin: 30px 0;
}

.inr-timeline::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #0073aa, #00a0d2);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding: 20px;
    background: #ffffff;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    margin-right: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -33px;
    top: 25px;
    width: 14px;
    height: 14px;
    background: #0073aa;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.timeline-item.answered::before {
    background: #10b981;
}

/* =============================================================================
   پرینت
   ============================================================================= */
@media print {
    .inr-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
        max-width: 100%;
        margin: 0;
        padding: 20px;
    }
    
    .inr-wrapper::before {
        display: none;
    }
    
    .btn-main,
    .btn-save,
    .btn-back,
    .doctor-form,
    .inr-actions {
        display: none !important;
    }
    
    .doctor-box,
    .next-test-box,
    .waiting-box {
        break-inside: avoid;
    }
    
    .inr-field {
        page-break-inside: avoid;
    }
}

/* =============================================================================
   ریسپانسیو
   ============================================================================= */
@media (max-width: 768px) {
    .inr-wrapper {
        margin: 15px;
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .inr-title {
        font-size: 20px;
    }
    
    .inr-subtitle {
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
    }
    
    .inr-field {
        flex-direction: column;
        gap: 8px;
        padding: 14px 16px;
    }
    
    .inr-field strong {
        min-width: auto;
        font-size: 13px;
    }
    
    .doctor-title {
        font-size: 17px;
        padding: 16px 20px;
    }
    
    .doctor-form {
        padding: 25px 20px;
    }
    
    .doctor-form textarea {
        min-height: 180px;
        padding: 15px;
    }
    
    .btn-save {
        width: 100%;
        padding: 16px 25px;
        justify-content: center;
    }
    
    .btn-main {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .inr-actions {
        flex-direction: column;
    }
    
    .patient-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    .inr-summary-table {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .doctor-box,
    .waiting-box,
    .next-test-box {
        padding: 25px 20px;
    }
    
    .next-test-box {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .inr-wrapper {
        margin: 10px;
        padding: 20px 15px;
    }
    
    .inr-title {
        font-size: 18px;
        gap: 8px;
    }
    
    .inr-title::before {
        width: 4px;
        height: 24px;
    }
    
    .inr-field {
        padding: 12px;
    }
    
    .doctor-form {
        padding: 20px 15px;
    }
    
    .inr-summary-table {
        grid-template-columns: 1fr;
    }
    
    .summary-item .summary-value {
        font-size: 18px;
    }
    
    .btn-save {
        font-size: 16px;
        padding: 14px 20px;
    }
}

/* =============================================================================
   انیمیشن‌ها
   ============================================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inr-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.inr-field {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.inr-field:nth-child(1) { animation-delay: 0.1s; }
.inr-field:nth-child(2) { animation-delay: 0.15s; }
.inr-field:nth-child(3) { animation-delay: 0.2s; }
.inr-field:nth-child(4) { animation-delay: 0.25s; }
.inr-field:nth-child(5) { animation-delay: 0.3s; }
.inr-field:nth-child(6) { animation-delay: 0.35s; }
.inr-field:nth-child(7) { animation-delay: 0.4s; }
.inr-field:nth-child(8) { animation-delay: 0.45s; }

.doctor-box,
.waiting-box,
.next-test-box {
    animation: fadeInUp 0.5s ease-out 0.5s;
    animation-fill-mode: both;
}

/* =============================================================================
   دارک مود (اختیاری)
   ============================================================================= */
@media (prefers-color-scheme: dark) {
    .inr-wrapper.dark-mode {
        background: #1e293b;
        color: #e2e8f0;
    }
    
    .inr-wrapper.dark-mode .inr-field {
        background: #334155;
    }
    
    .inr-wrapper.dark-mode .inr-field strong {
        color: #f1f5f9;
    }
}