<?php $__env->startSection('title', 'Halaman Tidak Ditemukan - 404'); ?>

<?php $__env->startSection('content'); ?>

<style>
/* 1. WRAPPER UTAMA - Memaksa Layout Vertikal */
.error-page-wrapper {
width: 100%;
min-height: 85vh;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
justify-content: center !important;
background: radial-gradient(circle at center, #1a2035 0%, #0d1117 100%);
color: #fff;
position: relative;
overflow: hidden;
padding: 80px 20px;
text-align: center !important;
}

/* 2. BACKGROUND ANIMASI */
.bg-animated {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(76, 201, 240, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(67, 97, 238, 0.08), transparent 25%);
    z-index: 0;
}

/* 3. LOGO - Memastikan berada di tengah atas */
.logo-box {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo-box img {
    max-width: 180px;
    height: auto;
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0px); filter: drop-shadow(0 0 10px rgba(76, 201, 240, 0.2)); }
    50% { transform: translateY(-15px); filter: drop-shadow(0 0 20px rgba(76, 201, 240, 0.5)); }
}

/* 4. GLITCH 404 - Memastikan lebar auto &amp; center */
.glitch-wrapper {
    position: relative;
    display: inline-block;
    font-weight: 900;
    font-size: clamp(6rem, 18vw, 11rem);
    line-height: 1;
    color: #fff;
    text-shadow: 4px 4px 0px #4361ee;
    letter-spacing: -2px;
    margin: 0 auto 20px auto;
    z-index: 1;
}

.glitch-wrapper::before,
.glitch-wrapper::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.8;
}

.glitch-wrapper::before {
    left: 2px;
    text-shadow: -3px 0 #f72585;
    clip-path: inset(45% 0 44% 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-wrapper::after {
    left: -2px;
    text-shadow: -3px 0 #4cc9f0;
    clip-path: inset(50% 0 30% 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip-path: inset(10% 0 80% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 60% 0); }
    100% { clip-path: inset(30% 0 30% 0); }
}

/* 5. TEXT CONTENT - Memaksa blok teks tetap di tengah */
.text-content-box {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.error-title {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 800;
    color: #f1f5f9;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.error-desc {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
    text-align: center;
}

/* 6. TOMBOL */
.btn-glow {
    background: linear-gradient(45deg, #4361ee, #4cc9f0);
    border: none;
    color: white !important;
    padding: 14px 35px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 201, 240, 0.6);
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
    animation: rise 10s infinite linear;
}

@keyframes rise {
    0% { transform: translateY(110vh) scale(0); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}


</style>

<div class="error-page-wrapper">
<div class="bg-animated"></div>


<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php for($i = 0; $i < 20; $i++): ?>
    <div class="particle" 
         style="width: <?php echo e(rand(2, 5)); ?>px; height: <?php echo e(rand(2, 5)); ?>px; left: <?php echo e(rand(0, 100)); ?>%; 
                animation-duration: <?php echo e(rand(10, 20)); ?>s; animation-delay: <?php echo e(rand(0, 10)); ?>s;">
    </div>
<?php endfor; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

<!-- Box Logo -->
<div class="logo-box">
    <img src="<?php echo e(asset('img/logo-dino.png')); ?>" alt="Logo" 
         onerror="this.src='https://placehold.co/200x80/transparent/white?text=DINO+LOGISTICS'">
</div>

<!-- Box Konten Teks -->
<div class="text-content-box">
    <div class="glitch-wrapper" data-text="404">404</div>

    <h2 class="error-title">Rute Tidak Ditemukan</h2>

    <p class="error-desc">
        Mohon maaf, halaman yang Anda tuju tidak tersedia dalam sistem kami. 
        Silakan kembali ke dashboard untuk melanjutkan operasional logistik Anda.
    </p>

    <div class="d-flex flex-column flex-sm-row gap-3 justify-content-center w-100">
        <a href="<?php echo e(url('/')); ?>" class="btn btn-glow justify-content-center">
            <i class="bi bi-house-door me-2"></i> Dashboard
        </a>
        <a href="<?php echo e(url()->previous()); ?>" class="btn btn-outline-light rounded-pill px-4 py-2 d-flex align-items-center justify-content-center">
            <i class="bi bi-arrow-left me-2"></i> Kembali
        </a>
    </div>
</div>


</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('main', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/html/resources/views/errors/404.blade.php ENDPATH**/ ?>