/* ==========================================================
   DONEPDF — Universal Tools CSS
   Applies to ALL PDF Tool Pages
   Version: 3.0 (Cleaned & Refactored)
   Author: DonePDF.com
   ========================================================== */

/* =====================================================
   1. CSS Variables
   ===================================================== */
:root {
    /* Colors */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #f3f4f6;
    --secondary-hover: #e5e7eb;
    --success: #10b981;
    --success-hover: #059669;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --warning: #f59e0b;
    
    /* Text */
    --text: #1f2937;
    --text-light: #6b7280;
    --text-white: #ffffff;
    
    /* Borders */
    --border: #e5e7eb;
    --border-dark: #d1d5db;
    
    /* Backgrounds */
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-blue: #f0f9ff;
    --bg-success: #d1fae5;
    --bg-danger: #fee2e2;
    --bg-warning: #fef3c7;
    
    /* Effects */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.1);
    
    /* Sizes */
    --container-max: 720px;
    --container-wide: 1100px;
}

/* =====================================================
   2. Reset & Base
   ===================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg-white);
    overflow-x: hidden;
}

/* =====================================================
   3. Main Container
   ===================================================== */
.tool-wrapper {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* =====================================================
   Page Header – العنوان والشرح (مركز، عرض محدود)
   ===================================================== */
.page-header {
    width: 100%;
    max-width: var(--container-max); /* 720px مثل منطقة الرفع */
    margin: 0 auto 30px; /* توسيط أفقي ومسافة أسفل */
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.page-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 auto;
    max-width: 600px; /* عرض مثالي للقراءة */
}

/* التحكم في إظهار النصوص حسب الجهاز (للموبايل والديسبتوب) */
.mobile-text {
    display: none;
}
.desktop-text {
    display: inline;
}

/* =====================================================
   استجابة للشاشات المتوسطة والصغيرة
   ===================================================== */
@media (max-width: 768px) {
    .page-header {
        padding: 0 16px;
        margin-bottom: 20px;
    }
    .page-title {
        font-size: 24px;
    }
    .page-description {
        font-size: 14px;
        max-width: 100%;
    }
    /* إظهار النص المخصص للموبايل وإخفاء النص الطويل */
    .desktop-text {
        display: none;
    }
    .mobile-text {
        display: inline;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }
    .page-description {
        font-size: 13px;
    }
}

/* =====================================================
   4. Upload Area (الأول - المحتفظ به)
   ===================================================== */
.upload-area {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto 20px;
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius);
    background: var(--bg-light);
    padding: 40px 20px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    box-sizing: border-box;
}

.upload-area:hover {
    border-color: var(--primary);
    background: #f0f4ff;
}

.upload-area.drag-over {
    border-color: var(--primary) !important;
    background: #e8edff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    font-size: 48px;
    color: var(--primary);
    opacity: 0.8;
}

.upload-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.upload-hint {
    font-size: 14px;
    color: var(--text-light);
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.upload-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.upload-btn:active {
    transform: scale(0.98);
}

/* =====================================================
   5. Info Note
   ===================================================== */
.info-note {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto 20px;
    padding: 14px 18px;
    background: var(--bg-blue);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    font-size: 13px;
    color: #1e40af;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: var(--shadow);
}

.info-note i {
    font-size: 18px;
    margin-top: 1px;
    flex-shrink: 0;
    color: var(--primary);
}

.info-note .note-content {
    flex: 1;
    line-height: 1.5;
}

/* =====================================================
   6. File Box
   ===================================================== */
.file-box {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto 20px;
    padding: 16px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    box-sizing: border-box;
    display: none;
}

.file-box:hover {
    border-color: var(--border-dark);
}

.file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
    word-break: break-word;
}

.file-size {
    font-size: 13px;
    color: var(--text-light);
}

.file-details {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.remove-file {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--bg-danger);
    border: none;
    cursor: pointer;
    color: var(--danger);
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remove-file:hover {
    background: #fecaca;
    transform: scale(1.05);
}

/* =====================================================
   6. Result Preview Box
===================================================== */
.result-box {
    max-width: 1000px;
    margin: 30px auto 0;
    padding: 25px;
    border: 1px solid #E6E6E6;
    border-radius: 10px;
    background: #FFFFFF;
}

.result-box h3 {
    font-size: 20px;
    color: #0A3A40;
    margin-bottom: 15px;
}

.result-box h3 i {
    margin-right: 8px;
    color: #0C7CA8;
}

.preview {
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
    cursor: grab;
}

.preview-image,
.preview img {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.1s ease;
    transform-origin: center center;
    cursor: zoom-in;
}

.preview-image.zoomed {
    max-height: none;
    cursor: zoom-out;
}

.preview-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.preview-controls button {
    padding: 6px 12px;
    border: none;
    background: #0C7CA8;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.preview-controls button:hover {
    background: #095F80;
}

.preview-image {
    transition: transform 0.2s ease;
}

#zoomControls {
    display: none;
}

#zoomControls.show {
    display: flex;
}

/* =====================================================
   7. Options Panel
   ===================================================== */
.options-panel,
.tool-settings {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-sizing: border-box;
    box-shadow: var(--shadow);
    display: none;
}

.options-panel h3,
.tool-settings h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.options-panel h3 i,
.tool-settings h3 i {
    color: var(--primary);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    align-items: start;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.option-group label {
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
}

.option-group select,
.option-group input[type="text"],
.option-group input[type="range"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.option-group select:focus,
.option-group input[type="text"]:focus,
.option-group input[type="range"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.range-value {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

/* =====================================================
   8. Action Buttons
   ===================================================== */
.action-buttons {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto 20px;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text-white);
}

.action-buttons .btn:active {
    transform: scale(0.97);
}

.action-buttons .btn-secondary {
    background: var(--secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.action-buttons .btn-secondary:hover {
    background: var(--secondary-hover);
}

.action-buttons .btn-primary {
    background: var(--primary);
    color: var(--text-white);
}

.action-buttons .btn-primary:hover {
    background: var(--primary-hover);
}

.action-buttons .btn-success {
    background: var(--success);
    color: var(--text-white);
}

.action-buttons .btn-success:hover {
    background: var(--success-hover);
}

.action-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* =====================================================
   9. Progress Bar
   ===================================================== */
.progress-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto 16px;
    position: relative;
    height: 24px;
    background: var(--border);
    border-radius: 30px;
    overflow: hidden;
    display: none;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #4f46e5);
    border-radius: 30px;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

/* =====================================================
   10. Messages
   ===================================================== */
.message {
    width: 100%;
    max-width: var(--container-max);
    margin: 12px auto;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.message-success {
    background: var(--bg-success);
    color: #065f46;
    border-left: 4px solid var(--success);
}

.message-error {
    background: var(--bg-danger);
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.message-warning {
    background: var(--bg-warning);
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.loading {
    width: 100%;
    max-width: var(--container-max);
    margin: 12px auto;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-blue);
    border-radius: var(--radius-sm);
    color: #1e40af;
    font-size: 14px;
    border-left: 4px solid var(--primary);
    box-sizing: border-box;
}

.loading .spinner {
    font-size: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================================
   11. Output Section
   ===================================================== */
.output-section {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto 20px;
    display: none;
}

.output-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.output-preview {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    max-height: 400px;
    overflow: auto;
    font-size: 12px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    box-shadow: var(--shadow);
}

/* =====================================================
   12. Smart Funnel
   ===================================================== */
.smart-funnel {
    width: 100%;
    max-width: var(--container-max);
    margin: 25px auto 0;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.35s ease;
    pointer-events: none;
}

.smart-funnel.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.smart-funnel.hidden {
    display: none;
}

.funnel-header {
    margin-bottom: 12px;
}

.funnel-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.funnel-header p {
    font-size: 14px;
    color: var(--text-light);
    margin: 6px 0 0;
}

.funnel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.funnel-card {
    flex: 1 1 0;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
}

.funnel-card:hover {
    border-color: #6366f1;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.funnel-card:first-child {
    border: 2px solid #6366f1;
    background: linear-gradient(135deg, #eef2ff, var(--bg-white));
}

.funnel-icon {
    font-size: 18px;
}

.funnel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* =====================================================
   13. Toast Notification
   ===================================================== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1f2937;
    color: var(--text-white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-success {
    background: var(--success);
}

.toast-error {
    background: var(--danger);
}

/* =====================================================
   14. Use Cases & FAQ
   ===================================================== */
.tool-text-block {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 60px 24px;
    box-sizing: border-box;
}

.tool-block-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: #1a1a2e;
    margin: 0 auto 20px;
    max-width: 1000px;
}

.tool-block-desc {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    color: #64748b;
    max-width: 900px;
    margin: 0 auto 50px;
}

.tool-usecases {
    margin-bottom: 40px;
}

.tool-usecase-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-usecase-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.tool-usecase-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.4;
    border-left: 4px solid var(--primary);
    padding-left: 16px;
}

.tool-usecase-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 16px;
}

.tool-usecase-benefits {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-usecase-benefits li {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #f0f7ff;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tool-usecase-benefits li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
}

/* Internal Links */
.internal-links-block {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    margin: 40px auto;
    text-align: center;
}

.internal-links-block .tool-block-title {
    font-size: 28px;
    margin-bottom: 16px;
}

.tool-block-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.tool-block-list a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 40px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.tool-block-list a:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* FAQ */
.faq-block {
    margin-top: 40px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.faq-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* =====================================================
   15. Utility Classes
   ===================================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* =====================================================
   16. RTL Support
   ===================================================== */
[dir="rtl"] .tool-usecase-item h3 {
    border-left: none;
    border-right: 4px solid var(--primary);
    padding-left: 0;
    padding-right: 16px;
    text-align: right;
}

[dir="rtl"] .info-note {
    border-left: none;
    border-right: 4px solid var(--primary);
}

[dir="rtl"] .file-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .remove-file {
    margin-right: auto;
}

[dir="rtl"] .tool-usecase-benefits li {
    flex-direction: row-reverse;
}

[dir="rtl"] .tool-usecase-benefits li::before {
    margin-left: 8px;
    margin-right: 0;
}

/* =====================================================
   17. Responsive Design
   ===================================================== */
@media (max-width: 768px) {
    .tool-wrapper {
        padding: 0 12px;
    }
    
    .upload-area {
        padding: 30px 16px;
        max-width: 100%;
    }
    
    .upload-text {
        font-size: 18px;
    }
    
    .upload-hint {
        font-size: 13px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .upload-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .info-note {
        font-size: 12px;
        padding: 12px 14px;
        max-width: 100%;
    }
    
    .file-box {
        max-width: 100%;
        padding: 14px 16px;
    }
    
    .file-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .file-name {
        font-size: 14px;
        width: 100%;
    }
    
    .remove-file {
        margin-left: auto;
    }
    
    .options-panel,
    .tool-settings {
        max-width: 100%;
        padding: 16px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .action-buttons {
        max-width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons .btn {
        justify-content: center;
        width: 100%;
    }
    
    .progress-container {
        max-width: 100%;
    }
    
    .message {
        max-width: 100%;
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .loading {
        max-width: 100%;
        font-size: 13px;
    }
    
    .output-section {
        max-width: 100%;
    }
    
    .output-preview {
        max-height: 300px;
        font-size: 11px;
        padding: 12px;
    }
    
    .smart-funnel {
        max-width: 100%;
        padding: 16px;
    }
    
    .funnel-grid {
        flex-direction: column;
    }
    
    .funnel-card {
        min-width: unset;
        width: 100%;
    }
    
    .tool-text-block {
        padding: 20px 12px;
    }
    
    .tool-block-title {
        font-size: 22px;
    }
    
    .tool-block-desc {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .tool-usecase-item {
        padding: 16px;
    }
    
    .tool-usecase-item h3 {
        font-size: 18px;
        padding-left: 12px;
    }
    
    .tool-usecase-item p {
        font-size: 14px;
    }
    
    .tool-usecase-benefits li {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .internal-links-block {
        padding: 20px 16px;
    }
    
    .internal-links-block .tool-block-title {
        font-size: 22px;
    }
    
    .tool-block-list {
        flex-direction: column;
        align-items: center;
    }
    
    .tool-block-list a {
        width: 100%;
        text-align: center;
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .faq-item {
        padding: 16px;
    }
    
    .faq-item h3 {
        font-size: 16px;
    }
    
    .faq-item p {
        font-size: 13px;
    }
    
    .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        padding: 10px 16px;
        font-size: 13px;
        text-align: center;
    }
    
    /* منع التكبير والنسخ في الموبايل */
    body {
        touch-action: pan-y pinch-zoom;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    input, 
    textarea,
    .allow-copy {
        -webkit-user-select: text;
        user-select: text;
    }
}

@media (max-width: 480px) {
    .upload-text {
        font-size: 16px;
    }
    
    .upload-icon {
        font-size: 32px;
    }
    
    .tool-block-title {
        font-size: 20px;
    }
    
    .options-panel,
    .tool-settings {
        padding: 12px;
    }
    
    .options-panel h3,
    .tool-settings h3 {
        font-size: 16px;
    }
}

@media (min-width: 769px) {
    body {
        -webkit-user-select: auto;
        user-select: auto;
    }
}

/* =====================================================
   18. Print Styles
   ===================================================== */
@media print {
    .upload-area,
    .action-buttons,
    .smart-funnel,
    .toast {
        display: none !important;
    }
    
    .tool-wrapper {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .output-preview {
        max-height: none !important;
        overflow: visible !important;
    }
}