/* =====================================================
   CSV to PDF Tool - Additional Styles
   ===================================================== */

/* تنسيق قسم المعاينة */
.preview-section {
    margin-top: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border, #e5e7eb);
    overflow: hidden;
}

.preview-wrapper {
    padding: 20px;
}

.preview-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    font-weight: 600;
    color: var(--text, #111827);
}

.preview-content {
    max-height: 400px;
    overflow-x: auto;
    overflow-y: auto;
}

/* تنسيق جدول المعاينة */
#csv-preview, [data-role="csv-preview"] {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

[data-role="csv-preview"] th,
[data-role="csv-preview"] td {
    padding: 8px 12px;
    border: 1px solid var(--border, #e5e7eb);
    text-align: left;
}

[data-role="csv-preview"] th {
    background: var(--bg-light, #f9fafb);
    font-weight: 600;
    position: sticky;
    top: 0;
}

[data-role="csv-preview"] tr:nth-child(even) {
    background: var(--bg-light, #f9fafb);
}

/* خيارات إضافية للتحكم في النمط */
.striped-rows tr:nth-child(even) {
    background-color: var(--bg-light, #f9fafb);
}
.grid-lines th, .grid-lines td {
    border: 1px solid var(--border, #e5e7eb);
}
.plain th, .plain td {
    border: none;
}

/* رأس الجدول بألوان مختلفة */
.header-primary th {
    background-color: var(--primary, #00008B);
    color: white;
}
.header-dark th {
    background-color: #1f2937;
    color: white;
}
.header-light th {
    background-color: #e5e7eb;
    color: #111827;
}

/* تنسيق شريط التقدم (موجود في tools.css لكن نؤكد) */
.progress-container {
    margin: 20px 0;
}