﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /*background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    color: #000;*/
    /*height: 100vh;
    display: flex;*/
  
}

.loader-container {
    text-align: center;
    position: relative;
    width: 100%;
    /*background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);*/
    overflow: hidden;
    justify-content: center;
    align-items: center;
    margin-top: 2%;
}

.logo {
    margin-bottom: 40px;
}


    .logo h1 {
        font-size: 2.8rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #000;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }


    .logo span {
        color: #FF6B00;
        margin-left: 20px !important;
    }

    .logo p {
        font-size: 1.2rem;
        margin-top: 10px;
        opacity: 0.9;
        font-weight: 300;
    }

.loader-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 20px 35px 70px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px;
}

/* Animated truck loader */
.truck-loader {
    position: relative;
    width: 240px;
    height: 120px;
    margin: 0 auto 30px;
}

.truck {
    position: absolute;
    width: 200px;
    height: 80px;
    background: #ff9800;
    border-radius: 10px;
    left: 0;
    bottom: 0;
    animation: moveTruck 3.5s infinite ease-in-out;
}

    .truck:before {
        content: '';
        position: absolute;
        width: 60px;
        height: 50px;
        background: #ff9800;
        border-radius: 8px;
        top: -50px;
        left: 20px;
    }

    .truck:after {
        content: '';
        position: absolute;
        width: 30px;
        height: 30px;
        /*background: rgba(0, 0, 0, 0.3);*/
        border-radius: 50%;
        bottom: 10px;
        right: 30px;
    }

.wheel1, .wheel2 {
    position: absolute;
    width: 52px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    bottom: -10px;
    border: 5px solid #FF6B00;
    animation: rotateWheel 1.5s infinite linear;
}

.wheel1 {
    left: 30px;
}

.wheel2 {
    right: 30px;
}

.package {
    position: absolute;
    width: 50px;
    height: 40px;
    background: brown;
    right: 70px;
    bottom: 50px;
    border-radius: 5px;
    animation: movePackage 3.5s infinite ease-in-out;
    box-shadow: 0 0 10px #FF6B00;
}

    .package:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        top: 15px;
        left: 0;
    }

/* Progress bar */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 30px 0 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 45%;
    background: #FF6B00;
    border-radius: 10px;
    animation: progressAnimation 3s infinite ease-in-out;
}

.loading-text {
    font-size: 1.2rem;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

    .loading-text span {
        color: #000;
    }

.dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #ff9800;
    border-radius: 50%;
    animation: bounce 1.5s infinite ease-in-out;
}

    .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.4s;
    }

.status {
    margin-top: 15px;
    font-size: 1rem;
    color: #000;
    font-style: italic;
}

/* Animations */
@keyframes moveTruck {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(40px);
    }

    75% {
        transform: translateX(-40px);
    }
}

@keyframes rotateWheel {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes movePackage {
    0%, 100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-40px);
    }

    50% {
        transform: translateY(-70px);
    }

    75% {
        transform: translateY(-40px);
    }
}

@keyframes progressAnimation {
    0% {
        width: 10%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 90%;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .loader-content {
        padding: 30px 20px;
        margin: 15px 15px;
    }

    .logo h1 {
        font-size: 2.2rem;
    }

    .truck-loader {
        transform: scale(0.8);
    }
}
