/* Loading System Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    overflow: hidden;
}

.loading-overlay.active {
    display: block;
}

/* Falling Pofila Animation */
.pofila {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url('https://web.cinemaonlineapp.ir/img/pofila.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    animation: fall linear infinite;
    pointer-events: none;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(720deg);
        opacity: 0.3;
    }
}

/* Loading Box */
.loading-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 15px;
    padding: 40px 60px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    z-index: 10001;
    min-width: 300px;
}

/* Loading Image Container */
.loading-image-container {
    margin-bottom: 20px;
}

.loading-image {
    width: 100px;
    height: 100px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* Loading Text */
.loading-text {
    color: #000000;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

/* Error State */
.error-container {
    display: none;
}

.error-container.active {
    display: block;
}

.retry-button {
    width: 80px;
    height: 80px;
    background-color: #dc3545;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.retry-button:hover {
    background-color: #c82333;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.5);
}

.retry-button i {
    color: white;
    font-size: 36px;
}

.error-text {
    color: #000000;
    font-size: 18px;
    font-weight: bold;
}

/* Hidden State */
.hidden {
    display: none !important;
}