/* Overlay styling */
#offline-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(.5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: fadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    color: #ffffff;
    backdrop-filter: blur(2px);
}

/* Card design */
#offline-message {
    background: rgba(0, 0, 0, 0.9);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 480px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Status icon animation */
.status-icon {
    margin-bottom: 24px;
    animation: pulse 2s infinite;

    i {
        font-size: 64px;
        color: white;
    }

}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Typography */
#offline-message h2 {
    margin: 0 0 16px;
    font-size: 1.8em;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

#offline-message p {
    margin: 0 0 24px;
    font-size: 1.1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Troubleshooting list */
#offline-message ul {
    text-align: left;
    margin: 0 0 28px;
    padding-left: 24px;
    font-size: 0.95em;
    list-style-type: none;
}

#offline-message ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
    line-height: 1.5;
    font-size: .8rem;
    color: rgba(255, 255, 255, 0.8);
}

#offline-message ul li:before {
    content: "•";
    color: #cf6d17;
    font-size: 24px;
    position: absolute;
    left: 0;
    top: -4px;
}

/* Button styling */
.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

#offline-message button {
    background: linear-gradient(to right, #d35400, #e67e22, #f39c12);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: .8em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(230, 168, 34, 0.3);
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    i {
        color: white;
    }
}

#offline-message button:hover {
    box-shadow: 0 6px 16px rgba(230, 155, 34, 0.4);
}

#offline-message button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

#offline-message button:active {
    transform: translateY(0);
}

#offline-message button.secondary {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

#offline-message button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Connection status indicator */
.connection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.status-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ff6b6b;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Saved content info */
.saved-content-info {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    i {
        display: flex;
    }
}

/* Responsive design */
@media (max-width: 600px) {
    #offline-message {
        width: 90%;
        padding: 24px 16px;
    }

    .status-icon {
        font-size: 48px;
    }

    #offline-message h2 {
        font-size: 1.4em;
    }

    #offline-message p {
        font-size: 1em;
    }

    .action-buttons {
        flex-direction: column;
    }

    #offline-message button {
        width: 100%;
    }
}

@media (max-width: 400px) {
    #offline-message {
        padding: 20px 12px;
    }

    #offline-message h2 {
        font-size: 1.2em;
    }

    #offline-message p {
        font-size: 0.9em;
    }

    .status-icon {
        font-size: 40px;
    }
}