/* assets/css/offline-status.css */

.offline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.offline-overlay.active {
    display: flex;
    opacity: 1;
}

.offline-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.offline-overlay.active .offline-card {
    transform: translateY(0);
}

.offline-icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(238, 82, 83, 0.4);
    position: relative;
}

.offline-icon-wrapper i {
    font-size: 42px;
    color: #ffffff !important;
    z-index: 10;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Suble 3D-like animation for the icon */
.offline-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: rotate-radial 4s linear infinite;
    z-index: 1;
}

@keyframes rotate-radial {
    0% {
        transform: translate(-10%, -10%);
    }

    50% {
        transform: translate(10%, 10%);
    }

    100% {
        transform: translate(-10%, -10%);
    }
}

.offline-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #2d3436;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.offline-text {
    color: #636e72;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.check-connection-btn {
    background: #2d3436;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.check-connection-btn:hover {
    transform: translateY(-2px);
    background: #000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Floating animation */
.offline-card {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}