/* =====================================================
   PDF to ZIP Tool - Additional Styles
   ===================================================== */

/* قسم الملفات المختارة */
.file-section {
    margin-bottom: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border, #e5e7eb);
    padding: 20px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text, #111827);
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-light, #f9fafb);
    border-radius: 8px;
    border: 1px solid var(--border, #e5e7eb);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-item-icon {
    font-size: 1.5rem;
    color: var(--primary, #00008B);
}

.file-item-name {
    font-weight: 500;
    word-break: break-word;
}

.file-item-size {
    font-size: 12px;
    color: var(--text-light, #6b7280);
}

.file-item-remove {
    background: none;
    border: none;
    color: var(--error, #ef4444);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
}

/* قسم المعاينة */
.thumbnail-section {
    margin-top: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border, #e5e7eb);
    padding: 20px;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.thumbnail-item {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    background: white;
}

.thumbnail-canvas {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.thumbnail-label {
    font-size: 11px;
    color: var(--text-light, #6b7280);
    margin-top: 6px;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 640px) {
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    .file-item {
        flex-wrap: wrap;
    }
}