<!DOCTYPE html>
<html lang="it">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Anteprima non disponibile</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            margin: 0;
            background-color: #f4f6f9;
            color: #333;
        }
        .fallback-container {
            text-align: center;
            padding: 40px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            max-width: 400px;
        }
        .fallback-icon {
            font-size: 64px;
            color: #6c757d;
            margin-bottom: 16px;
        }
        .fallback-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
        }
        .fallback-message {
            font-size: 14px;
            color: #666;
            margin-bottom: 24px;
        }
        .fallback-file-info {
            background: #f8f9fa;
            padding: 12px;
            border-radius: 4px;
            margin-bottom: 24px;
            font-size: 13px;
        }
        .fallback-file-info strong {
            display: block;
            margin-bottom: 4px;
        }
        .download-btn {
            display: inline-block;
            padding: 10px 24px;
            background-color: #007bff;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-weight: 500;
            transition: background-color 0.2s;
        }
        .download-btn:hover {
            background-color: #0056b3;
            color: white;
        }
    </style>
</head>
<body>
    <div class="fallback-container">
        <div class="fallback-icon">📄</div>
        <div class="fallback-title">Anteprima non disponibile</div>
        <div class="fallback-message">
            Questo tipo di file non può essere visualizzato nell'anteprima.
            Scarica il file per visualizzarlo con l'applicazione appropriata.
        </div>
        <div class="fallback-file-info">
            <strong><?php echo e($documento->nome_file); ?></strong>
            <?php echo e(strtoupper(pathinfo($documento->file_path, PATHINFO_EXTENSION))); ?> &middot;
            <?php echo e(number_format($documento->dimensione / 1024, 1)); ?> KB
        </div>
        <a href="/documenti/<?php echo e($documento->id); ?>/download" class="download-btn">
            ⬇️ Scarica File
        </a>
    </div>
</body>
</html>
<?php /**PATH /var/www/html/glastree/resources/views/documenti/preview-fallback.blade.php ENDPATH**/ ?>