/* Offline status indicators */
.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 1rem;
    background-color: var(--card-bg);
    /* Assuming variable exists */
    border: 1px solid var(--border-color);
    /* Assuming variable exists */
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background-color: #10b981;
    /* Success green */
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status-dot.offline {
    background-color: #ef4444;
    /* Danger red */
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.hidden {
    display: none !important;
}

#last-updated-info {
    display: inline-block;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9999;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: var(--card-bg, #1e1e24);
    border: 1px solid var(--border-color, #333);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: var(--text-color, #fff);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toast-in 0.3s ease-out forwards;
    min-width: 300px;
    max-width: 400px;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

.toast-icon {
    font-size: 1.2rem;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}