/* تنظیمات پایه */
body {
    font-family: 'Tahoma', 'Arial', sans-serif;
    background-color: #fdfdfd;
    color: #333;
    line-height: 1.8;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border: 1px solid #ddd;
}

/* هدر */
header {
    text-align: center;
    border-bottom: 3px double #2c3e50;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

header h1 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.student-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
}

/* بخش‌های آزمایش */
.lab-section {
    margin-bottom: 60px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

h2 {
    background: #2c3e50;
    color: #fff;
    padding: 10px 15px;
    font-size: 19px;
    border-radius: 4px;
}

h3 {
    color: #e67e22;
    border-right: 4px solid #e67e22;
    padding-right: 10px;
    margin-top: 25px;
    font-size: 17px;
}

/* جداول */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    direction: ltr;
}

.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* فرمول‌ها */
.formula {
    background: #f4f4f4;
    padding: 15px;
    margin: 15px 0;
    direction: ltr;
    text-align: center;
    font-family: 'Consolas', 'Monaco', monospace;
    border-radius: 4px;
    border-left: 5px solid #2c3e50;
    font-size: 1.1em;
}

/* پاورقی */
footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #777;
}
/* اضافه کردن استایل برای محل تصاویر */
.image-placeholder {
    width: 100%;
    height: auto;
    min-height: 400px;
    border: 2px dashed #ccc;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    color: #999;
}

/* اگر عکسی داخلش گذاشتید فیت شود */
.image-placeholder img {
    max-width: 100%;
    height: auto;
}

/* بهینه‌سازی چاپ */
@media print {
    body { padding: 0; background: none; }
    .container { border: none; width: 100%; max-width: none; }
    .lab-section { page-break-inside: avoid; }
}