/* Mobile responsive fixes for Excel Tools - ONLY on Excel tools pages */
@media (max-width: 768px) {
    /* File item mobile layout - Excel tools only */
    body:has([data-page="excel-tool"]) .file-item,
    .excel-tool-page .file-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        position: relative !important;
        padding-right: 50px !important;
    }
    
    body:has([data-page="excel-tool"]) .file-item .file-info,
    .excel-tool-page .file-item .file-info {
        width: 100% !important;
    }
    
    body:has([data-page="excel-tool"]) .file-item button,
    body:has([data-page="excel-tool"]) .file-item .btn,
    .excel-tool-page .file-item button,
    .excel-tool-page .file-item .btn {
        position: absolute !important;
        right: 12px !important;
        top: 12px !important;
        align-self: unset !important;
        margin: 0 !important;
    }
    
    /* Result area button layout - Excel tools only */
    body:has([data-page="excel-tool"]) #resultArea .text-center,
    body:has([data-page="excel-tool"]) .result-buttons,
    .excel-tool-page #resultArea .text-center,
    .excel-tool-page .result-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    body:has([data-page="excel-tool"]) #resultArea .btn,
    body:has([data-page="excel-tool"]) .result-buttons .btn,
    .excel-tool-page #resultArea .btn,
    .excel-tool-page .result-buttons .btn {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Process button area - Excel tools only */
    body:has([data-page="excel-tool"]) .text-center .btn + .btn,
    .excel-tool-page .text-center .btn + .btn {
        margin-left: 0 !important;
        margin-top: 10px !important;
    }
}