/* =====================================================
   Organize PDF (Split) - Processing Area Fine-Tuning
   ===================================================== */

/* تنسيق صف معلومات الملف */
.file-box .file-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}

.file-box .file-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.file-box .file-size,
.file-box .file-pages {
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 20px;
}

/* جعل خيارات التقسيم في ترتيب عمودي (حقل تحت الآخر) */
.tool-settings .options-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.option-group {
    width: 100%;
}

.option-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.option-input {
    width: 20%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

.option-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0,0,139,0.1);
}

.tool-settings select, .tool-settings input[type="text"], .tool-settings input[type="range"] {
    width: 20%;
    padding: 10px;
    border: 1px solid #DADADA;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 5px;
}

/* Action buttons inside tool-settings */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.2s;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary, #00008B);
    color: white;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success, #10b981);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-secondary {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* شريط التقدم */
.progress-container {
    margin: 24px 0;
    display: none;
}

.progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-top: 6px;
}

/* إخفاء زر الإزالة إذا لم يكن مطلوبًا (اختياري) */
.remove-file {
    display: none;
}

/* تنسيق رسالة الحالة مؤقتة (toast) */
.status-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    z-index: 1000;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.status-message.show {
    opacity: 1;
}
.status-message.success {
    background: #10b981;
}
.status-message.error {
    background: #ef4444;
}